Expand description
Api for querying merklized state
The state API provides an interface for serving queries against arbitrarily old snapshots of the state. This allows a full Merkle tree to be reconstructed from storage. If any parent state is missing then the partial snapshot can not be queried.
Modulesยง
- data_
source ๐ - Data for the
merklized_state
API.
Structsยง
- Custom
Snafu ๐ - SNAFU context selector for the
Error::Custom
variant - Options
- Query
Snafu ๐ - SNAFU context selector for the
Error::Query
variant - Request
Snafu ๐ - SNAFU context selector for the
Error::Request
variant
Enumsยง
Traitsยง
- Merklized
State - This trait should be implemented by the MerkleTree that the module is initialized for. It defines methods utilized by the module.
- Merklized
State Data Source - This trait defines methods that a data source should implement It enables retrieval of the membership path for a leaf node, which can be used to reconstruct the Merkle tree state.
- Merklized
State Height Persistence - Update
State Data - This trait defines methods for updating the storage with the merkle tree state.