View Source DiodeClient.HeapMerkleTree (Diode Client v1.0.0)
Link to this section Summary
Link to this section Types
Specs
hash_count() :: {[binary()], non_neg_integer()}
Specs
hash_type() :: <<_::256>>
Specs
item() :: {key_type(), value_type()}
Specs
Specs
Specs
proof_type() :: {proof_type(), proof_type()} | [any()]
Specs
Specs
tree_leaf() :: {:leaf, hash_count() | nil, binary(), map()}
Specs
tree_node() :: {:node, hash_count() | nil, binary(), tree(), tree()}
Specs
value_type() :: term()
Link to this section Functions
Specs
bucket_count(merkle()) :: pos_integer()
Specs
Specs
get(merkle(), key_type()) :: value_type()
Specs
get_proofs(merkle(), key_type()) :: proof_type()
Specs
insert(merkle(), key_type(), value_type()) :: merkle()
Specs
Specs
Specs
Specs
new() :: merkle()
Specs
Specs
Specs
size(merkle()) :: non_neg_integer()