tuweni / org.apache.tuweni.trie / MerkleStorage

MerkleStorage

interface MerkleStorage (source)

Storage for use in a StoredMerklePatriciaTrie.

Functions

get

Get the stored content under the given hash.

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

put

Store content with a given hash.

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

Inheritors

AsyncMerkleStorage

A MerkleStorage implementation using AsyncResult's.

abstract class AsyncMerkleStorage : MerkleStorage