pub trait SupportsMerkle<Key, M, S>: BlueprintInspect<M, S>{
// Required method
fn root(storage: &S, key: &Key) -> StorageResult<MerkleRoot>;
}
Expand description
It is an extension of the blueprint that supporting creation of the Merkle tree over the storage.
Required Methods§
sourcefn root(storage: &S, key: &Key) -> StorageResult<MerkleRoot>
fn root(storage: &S, key: &Key) -> StorageResult<MerkleRoot>
Returns the root of the Merkle tree.
Object Safety§
This trait is not object safe.