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: Function<V, Bytes>, valueDeserializer: Function<Bytes, V>)
StoredMerklePatriciaTrie(storage: MerkleStorage, valueSerializer: (V) -> Bytes, valueDeserializer: (Bytes) -> V)
StoredMerklePatriciaTrie(storage: MerkleStorage, rootHash: Bytes32, valueSerializer: Function<V, Bytes>, valueDeserializer: Function<Bytes, V>)
StoredMerklePatriciaTrie(storage: MerkleStorage, rootHash: Bytes32, valueSerializer: (V) -> Bytes, valueDeserializer: (Bytes) -> V)
fun clearCache(): Unit
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 net.consensys.cava.trie
package net.consensys.cava.trie.experimental
Module Contents
abstract class AsyncMerkleStorage : MerkleStorage
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: Function<V, Bytes>, valueDeserializer: Function<Bytes, V>)
StoredMerklePatriciaTrie(storage: MerkleStorage, valueSerializer: (V) -> Bytes, valueDeserializer: (Bytes) -> V)
StoredMerklePatriciaTrie(storage: MerkleStorage, rootHash: Bytes32, valueSerializer: Function<V, Bytes>, valueDeserializer: Function<Bytes, V>)
StoredMerklePatriciaTrie(storage: MerkleStorage, rootHash: Bytes32, valueSerializer: (V) -> Bytes, valueDeserializer: (Bytes) -> V)
fun clearCache(): Unit
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