package tezos-client-014-PtKathma

  1. Overview
  2. Docs
Tezos/Protocol: protocol specific library for `tezos-client`

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-16.1.tar.gz
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f

doc/tezos-client-014-PtKathma.sapling/Tezos_client_sapling_014_PtKathma/Wallet/index.html

Module Tezos_client_sapling_014_PtKathma.WalletSource

Sourceval register : Tezos_client_base.Client_context.full -> ?force:bool -> ?unencrypted:bool -> Tezos_client_base.Bip39.t -> string -> Tezos_sapling.Core.Client.Viewing_key.t Tezos_base.TzPervasives.tzresult Lwt.t

Add to the wallet a new spending key derived from a mnemonic and identified by an alias. The wallet is updated and the corresponding viewing key is returned. If force it will overwrite an existing alias.

Sourceval derive : Tezos_client_base.Client_context.full -> ?force:bool -> ?unencrypted:bool -> string -> string -> int -> (string * Tezos_sapling.Core.Client.Viewing_key.t) Tezos_base.TzPervasives.tzresult Lwt.t

derive parent child index derives a key with alias child from an existing key with alias parent at index using ZIP32. If a new index is required the state of the wallet is updated. The path and viewing key corresponding to the generated key are returned.

Sourceval find_vk : Tezos_client_base.Client_context.full -> string -> Tezos_sapling.Core.Client.Viewing_key.t Tezos_base.TzPervasives.tzresult Lwt.t
Sourceval new_address : Tezos_client_base.Client_context.full -> string -> int option -> (Tezos_sapling.Core.Client.Spending_key.t * Tezos_sapling.Core.Client.Viewing_key.index * Tezos_sapling.Core.Client.Viewing_key.address) Tezos_base.TzPervasives.tzresult Lwt.t

Generate a new address. If an optional index is provided, try to derive the address at this index, otherwise use the first viable one. Not all indexes correspond to a valid address so successive ones are tried. Once a valid index is found it is recorded in the wallet. Return also the corresponding sk and vk to avoid asking the user multiple times for the description password.

Sourceval export_vk : Tezos_client_base.Client_context.full -> string -> Tezos_base.TzPervasives.Data_encoding.Json.json Tezos_base.TzPervasives.tzresult Lwt.t
OCaml

Innovation. Community. Security.