Anoma.CairoResource.Tree (Anoma v0.29.0)
I represent a resource merkle tree. The resource tree should be quite small, such as with a depth of 4
Summary
Types
@type t() :: %Anoma.CairoResource.Tree{ leaves: [<<_::256>>], root: <<_::256>>, tree: CommitmentTree.t() }
Functions
Link to this function
construct(spec, leaves)
@spec construct(CommitmentTree.Spec.t(), [binary()]) :: t()
Link to this function
prove(rt, leaf)
Link to this function