Alpha_context.SaplingThis module re-exports definitions from Sapling_repr, Sapling_storage and Sapling_validator.
module Id : sig ... endSee Sapling_state.Id.
val fresh :
temporary:bool ->
context ->
(context * Id.t) Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.tCreate a fresh sapling state in the context.
type diff = private {commitments_and_ciphertexts : (Mavryk_protocol_environment_001_PtAtLas.Sapling.Commitment.t
* Mavryk_protocol_environment_001_PtAtLas.Sapling.Ciphertext.t)
list;nullifiers : Mavryk_protocol_environment_001_PtAtLas.Sapling.Nullifier.t list;}val diff_encoding :
diff Mavryk_protocol_environment_001_PtAtLas.Data_encoding.tmodule Memo_size : sig ... endval empty_state : ?id:Id.t -> memo_size:Memo_size.t -> unit -> stateReturns a state with fields filled accordingly. id should only be used by extract_lazy_storage_updates.
type transaction =
Mavryk_protocol_environment_001_PtAtLas.Sapling.UTXO.transactionval transaction_encoding :
transaction Mavryk_protocol_environment_001_PtAtLas.Data_encoding.tval transaction_get_memo_size : transaction -> Memo_size.t optionval state_from_id :
context ->
Id.t ->
(state * context)
Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.tTries to fetch a state from the storage.
val rpc_arg : Id.t Mavryk_protocol_environment_001_PtAtLas.RPC_arg.tval root_encoding :
root Mavryk_protocol_environment_001_PtAtLas.Data_encoding.tval get_diff :
context ->
Id.t ->
?offset_commitment:Mavryk_protocol_environment_001_PtAtLas.Int64.t ->
?offset_nullifier:Mavryk_protocol_environment_001_PtAtLas.Int64.t ->
unit ->
(root * diff) Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.tval verify_update :
context ->
state ->
transaction ->
string ->
(context * (Mavryk_protocol_environment_001_PtAtLas.Int64.t * state) option)
Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.ttype updates = diffval transaction_in_memory_size : transaction -> Cache_memory_helpers.sintval diff_in_memory_size : diff -> Cache_memory_helpers.sintmodule Legacy : sig ... end