package tezos-sapling

  1. Overview
  2. Docs
type ask = R.ask

Authorisation spending key: secret key used to sign once randomized.

type nsk = R.nsk

Nullifier secret key. Used to compute nullifier.

type ovk = R.ovk
type expanded_spending_key = R.expanded_spending_key = {
  1. ask : ask;
  2. nsk : nsk;
  3. ovk : ovk;
}
val _to_expanded_spending_key : Stdlib.Bytes.t -> R.expanded_spending_key
type t = R.zip32_expanded_spending_key = {
  1. depth : Stdlib.Bytes.t;
  2. parent_fvk_tag : Stdlib.Bytes.t;
  3. child_index : Stdlib.Bytes.t;
  4. chain_code : Stdlib.Bytes.t;
  5. expsk : expanded_spending_key;
  6. dk : Stdlib.Bytes.t;
}

Type t contains ask, nsk, ovk and zip-32 related info.

val of_bytes : Stdlib.Bytes.t -> R.zip32_expanded_spending_key option
val to_bytes : R.zip32_expanded_spending_key -> Stdlib.Bytes.t
val encoding : t Data_encoding.encoding
type Tezos_crypto.Base58.data +=
  1. | Data of t
val of_seed : Stdlib.Bytes.t -> R.zip32_expanded_spending_key
val derive_key : R.zip32_expanded_spending_key -> Stdlib.Int32.t -> R.zip32_expanded_spending_key
val child_index : t -> int32
OCaml

Innovation. Community. Security.