Alpha_context.SaplingSourceThis module re-exports definitions from Sapling_repr, Sapling_storage and Sapling_validator.
val fresh :
temporary:bool ->
context ->
(context * Id.t) Tezos_protocol_environment_alpha.Error_monad.tzresult
Tezos_protocol_environment_alpha.Lwt.tCreate a fresh sapling state in the context.
type diff = private {commitments_and_ciphertexts : (Tezos_protocol_environment_alpha.Sapling.Commitment.t
* Tezos_protocol_environment_alpha.Sapling.Ciphertext.t)
list;nullifiers : Tezos_protocol_environment_alpha.Sapling.Nullifier.t list;}Returns a state with fields filled accordingly. id should only be used by extract_lazy_storage_updates.
val state_from_id :
context ->
Id.t ->
(state * context) Tezos_protocol_environment_alpha.Error_monad.tzresult
Tezos_protocol_environment_alpha.Lwt.tTries to fetch a state from the storage.
val get_diff :
context ->
Id.t ->
?offset_commitment:Tezos_protocol_environment_alpha.Int64.t ->
?offset_nullifier:Tezos_protocol_environment_alpha.Int64.t ->
unit ->
(root * diff) Tezos_protocol_environment_alpha.Error_monad.tzresult
Tezos_protocol_environment_alpha.Lwt.tval verify_update :
context ->
state ->
transaction ->
string ->
(context * (Tezos_protocol_environment_alpha.Int64.t * state) option)
Tezos_protocol_environment_alpha.Error_monad.tzresult
Tezos_protocol_environment_alpha.Lwt.t