package octez-libs

  1. Overview
  2. Docs
A package that contains multiple base libraries used by the Octez suite

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.1.tar.gz
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a

doc/octez-libs.tezos-sapling/Tezos_sapling/Core/Wallet/Viewing_key/index.html

Module Wallet.Viewing_keySource

Sourceval of_bytes : bytes -> t option
Sourceval to_bytes : t -> bytes
Sourceval of_sk : Spending_key.t -> t
Sourcetype index

Indexes to derive addresses. Starting from default_index, the following addresses can be derived with index_succ *

Sourceval compare_index : index -> index -> int
Sourceval default_index : index
Sourceval index_succ : index -> index
Sourceval index_to_int64 : index -> int64
Sourceval index_of_int64 : int64 -> index
Sourceval index_encoding : index Data_encoding.t

To be given to the payer. Does not appear on the blockchain. Different addresses can be derived from one key which is necessary to prevent a loss of anonymity because of several payers colluding. e.g. two payers can conclude that they are paying the same person if they send money to the same address. *

Sourceval address_encoding : address Data_encoding.t
Sourceval address_b58check_encoding : address Tezos_crypto.Base58.encoding
Sourceval new_address : t -> index -> index * address

Returns a new address and a new index to be used for the next address generation. *

Sourceval dummy_address : unit -> address

A dummy address can be generated to create dummy inputs or outputs of value 0. Note that tokens sent to dummy addresses are lost! *

Sourcetype ivk

Incoming viewing keys can be used to see transactions received to any address generated from this key. This feature is not enforced by the protocol, a payer could spend tokens on-chain and transmit to the recipient invalid information. The recipient should always check the received transactions with its ivk. *

Sourceval to_ivk : t -> ivk
Sourcetype ovk
Sourceval ovk_of_xfvk : t -> ovk
OCaml

Innovation. Community. Security.