Alpha_context.Sapling
This module re-exports definitions from Sapling_repr
, Sapling_storage
and Sapling_validator
.
module Id : sig ... end
See 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.t
Create 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.t
module Memo_size : sig ... end
val empty_state : ?id:Id.t -> memo_size:Memo_size.t -> unit -> state
Returns 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.transaction
val transaction_encoding :
transaction Mavryk_protocol_environment_001_PtAtLas.Data_encoding.t
val transaction_get_memo_size : transaction -> Memo_size.t option
val state_from_id :
context ->
Id.t ->
(state * context)
Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
Tries to fetch a state from the storage.
val rpc_arg : Id.t Mavryk_protocol_environment_001_PtAtLas.RPC_arg.t
val root_encoding :
root Mavryk_protocol_environment_001_PtAtLas.Data_encoding.t
val 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.t
val 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.t
type updates = diff
val transaction_in_memory_size : transaction -> Cache_memory_helpers.sint
val diff_in_memory_size : diff -> Cache_memory_helpers.sint
module Legacy : sig ... end