Anoma.RM.Transaction protocol (Anoma v0.25.0)

I am the Transaction protocol.

Use me when you want to write logic over transactions.

Transactions practically speaking be Noun.Nounable

Summary

Types

t()

All the types that implement this protocol.

Types

@type t() :: term()

All the types that implement this protocol.

Functions

Link to this function

cm_tree(transaction, storage)

@spec cm_tree(t(), term()) :: CommitmentTree.t()
Link to this function

commitments(transaction)

@spec commitments(t()) :: [binary()]
Link to this function

compose(tx1, tx2)

@spec compose(t(), t()) :: t()

I compose two transactions into a new transaction

Link to this function

nullifiers(transaction)

@spec nullifiers(t()) :: [binary()]
Link to this function

resource_existence_check(transaction, storage)

@spec resource_existence_check(t(), pid()) :: boolean()
Link to this function

storage_commitments(transaction)

@spec storage_commitments(t()) :: [binary()]
Link to this function

storage_nullifiers(transaction)

@spec storage_nullifiers(t()) :: [binary()]
Link to this function

verify(transaction)

@spec verify(t()) :: boolean()