pub trait MerkleRootStorage<Key, StorageType>: StorageMutate<StorageType>where
StorageType: Mappable,{
// Required method
fn root(&self, key: &Key) -> Result<[u8; 32], Self::Error>;
}
Expand description
Returns the merkle root for the StorageType
per merkle Key
. The type should implement the
StorageMutate
for the StorageType
. Per one storage, it is possible to have several merkle trees
under different Key
.