Examples.ECommitmentTree (Anoma v0.25.0)

Summary

Functions

Link to this function

babylon_mnesia_ct(spec \\ sha256_32_spec())

@spec babylon_mnesia_ct(CommitmentTree.Spec.t()) :: CommitmentTree.t()
Link to this function

cairo_poseidon_spec()

@spec cairo_poseidon_spec() :: CommitmentTree.Spec.t()
Link to this function

current_tree_mnesia_ct(spec \\ sha256_32_spec())

@spec current_tree_mnesia_ct(CommitmentTree.Spec.t()) :: CommitmentTree.t()

This fetches the current mnesia tree storage

This value is expected to differ, and will be a fixture for other tests to assert about.

Link to this function

empty_mnesia_backed_ct(spec \\ sha256_32_spec())

@spec empty_mnesia_backed_ct(CommitmentTree.Spec.t()) :: CommitmentTree.t()
Link to this function

lots_of_inserts_ct(spec \\ sha256_32_spec())

@spec lots_of_inserts_ct(CommitmentTree.Spec.t()) :: CommitmentTree.t()
Link to this function

memory_backed_ct(spec \\ sha256_32_spec())

@spec memory_backed_ct(CommitmentTree.Spec.t()) :: CommitmentTree.t()
Link to this function

sha256_32_spec()

@spec sha256_32_spec() :: CommitmentTree.Spec.t()