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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.