merkle-trie
Module Contents
alltypes
Module Contents
abstract class AsyncMerkleStorage : MerkleStorage
class CompactEncoding
class MerklePatriciaTrie<V> : MerkleTrie<Bytes, V>
interface MerkleStorage
class MerkleStorageException : RuntimeException
interface MerkleTrie<in K, V>
class StoredMerklePatriciaTrie<V> : MerkleTrie<Bytes, V>
Module Contents
StoredMerklePatriciaTrie(storage: MerkleStorage, valueSerializer: (V) -> Bytes, valueDeserializer: (Bytes) -> V)
StoredMerklePatriciaTrie(storage: MerkleStorage, rootHash: Bytes32, valueSerializer: (V) -> Bytes, valueDeserializer: (Bytes) -> V)
fun clearCache(): Unit
@JvmStatic fun <V> create(storage: MerkleStorage, valueSerializer: Function<V, Bytes>, valueDeserializer: Function<Bytes, V>): StoredMerklePatriciaTrie<V>
@JvmStatic fun <V> create(storage: MerkleStorage, rootHash: Bytes32, valueSerializer: Function<V, Bytes>, valueDeserializer: Function<Bytes, V>): StoredMerklePatriciaTrie<V>
suspend fun get(key: Bytes): V?
suspend fun put(key: Bytes, value: V?): Unit
suspend fun remove(key: Bytes): Unit
fun rootHash(): Bytes32
@JvmStatic fun storingBytes(storage: MerkleStorage): StoredMerklePatriciaTrie<Bytes>
@JvmStatic fun storingBytes(storage: MerkleStorage, rootHash: Bytes32): StoredMerklePatriciaTrie<Bytes>
@JvmStatic fun storingStrings(storage: MerkleStorage): StoredMerklePatriciaTrie<String>
@JvmStatic fun storingStrings(storage: MerkleStorage, rootHash: Bytes32): StoredMerklePatriciaTrie<String>
fun toString(): String
package org.apache.tuweni.trie
Module Contents
abstract class AsyncMerkleStorage : MerkleStorage
class CompactEncoding
class MerklePatriciaTrie<V> : MerkleTrie<Bytes, V>
interface MerkleStorage
class MerkleStorageException : RuntimeException
interface MerkleTrie<in K, V>
class StoredMerklePatriciaTrie<V> : MerkleTrie<Bytes, V>
Module Contents
StoredMerklePatriciaTrie(storage: MerkleStorage, valueSerializer: (V) -> Bytes, valueDeserializer: (Bytes) -> V)
StoredMerklePatriciaTrie(storage: MerkleStorage, rootHash: Bytes32, valueSerializer: (V) -> Bytes, valueDeserializer: (Bytes) -> V)
fun clearCache(): Unit
@JvmStatic fun <V> create(storage: MerkleStorage, valueSerializer: Function<V, Bytes>, valueDeserializer: Function<Bytes, V>): StoredMerklePatriciaTrie<V>
@JvmStatic fun <V> create(storage: MerkleStorage, rootHash: Bytes32, valueSerializer: Function<V, Bytes>, valueDeserializer: Function<Bytes, V>): StoredMerklePatriciaTrie<V>
suspend fun get(key: Bytes): V?
suspend fun put(key: Bytes, value: V?): Unit
suspend fun remove(key: Bytes): Unit
fun rootHash(): Bytes32
@JvmStatic fun storingBytes(storage: MerkleStorage): StoredMerklePatriciaTrie<Bytes>
@JvmStatic fun storingBytes(storage: MerkleStorage, rootHash: Bytes32): StoredMerklePatriciaTrie<Bytes>
@JvmStatic fun storingStrings(storage: MerkleStorage): StoredMerklePatriciaTrie<String>
@JvmStatic fun storingStrings(storage: MerkleStorage, rootHash: Bytes32): StoredMerklePatriciaTrie<String>
fun toString(): String