package tezos-sapling

  1. Overview
  2. Docs

Necessary information to create tokens. *

type t = {
  1. address : Viewing_key.address;
  2. amount : int64;
  3. memo : Bytes.t;
}
val to_ciphertext : t -> CV.t -> Viewing_key.t -> Rcm.t -> DH.esk -> Ciphertext.t * Commitment.t

Creates a ciphertext that the recipient can use to spend his tokens, and our ovk can see as spent tokens. *

val to_ciphertext_without_ovk : t -> Rcm.t -> DH.esk -> CV.t -> Ciphertext.t * Commitment.t

Same as to_ciphertext but does not allow the ovk to decrypt (ie. of_ciphertext_out will return None). *