tuweni / org.apache.tuweni.trie / MerkleStorage

MerkleStorage

interface MerkleStorage (source)

Storage for use in a StoredMerklePatriciaTrie.

Functions

get

abstract suspend fun get(hash: Bytes32): Bytes?

Get the stored content under the given hash.

put

abstract suspend fun put(hash: Bytes32, content: Bytes): Unit

Store content with a given hash.

Inheritors

AsyncMerkleStorage

abstract class AsyncMerkleStorage : MerkleStorage

A MerkleStorage implementation using AsyncResult's.