CommitmentTree.Spec (Anoma v0.34.0)
A specification for a commitment tree.
Summary
Functions
I take an atom representation of the hash function used for the merkle tree and turn it into the appropriate function.
Types
Functions
@spec cairo_poseidon_cm_tree_spec() :: t()
@spec cairo_poseidon_resource_tree_spec() :: t()
@spec cm_tree_spec() :: t()
@spec hash_ref_to_hash(accumulator_hash()) :: function()
I take an atom representation of the hash function used for the merkle tree and turn it into the appropriate function.
@spec new(integer(), integer(), integer(), accumulator_hash()) :: t()