interface MerkleStorage
(source)
Storage for use in a StoredMerklePatriciaTrie.
abstract suspend fun get(hash: Bytes32): Bytes?
Get the stored content under the given hash. |
|
abstract suspend fun put(hash: Bytes32, content: Bytes): Unit
Store content with a given hash. |
abstract class AsyncMerkleStorage : MerkleStorage
A MerkleStorage implementation using AsyncResult's. |