pub trait MerkleRootStorage<Key, StorageType>: StorageMutate<StorageType>where
    StorageType: Mappable,
{ fn root(&mut self, key: &Key) -> Result<MerkleRoot, 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.

Required Methods

Return the merkle root of the stored Type in the storage.

The cryptographic primitive is an arbitrary choice of the implementor and this trait won’t impose any restrictions to that.

Implementations on Foreign Types

Implementors