abstract class Fremkit::Trees::MerkleTree(K, V, H)

Overview

A generic (key, value) store in which items are stored in a Merkle tree

Direct Known Subclasses

Defined in:

common/trie.cr

Instance Method Summary

Instance methods inherited from class Object

from_rlp(rlp : Bytes) : Tuple(self, UInt32) from_rlp, to_rlp : Bytes to_rlp

Class methods inherited from class Object

from_rlp(rlp : Bytes) : Tuple(self, UInt32) from_rlp

Instance Method Detail

abstract def get!(key : K) : V #

[View source]
abstract def get?(key : K) : V | Nil #

[View source]
abstract def insert(key : K, value : V) #

[View source]
abstract def root_hash : H #

[View source]