Anoma.CairoResource.Transaction (Anoma v0.29.0)

I am a shielded resource machine transaction.

Summary

Types

@type t() :: %Anoma.CairoResource.Transaction{
  actions: [Anoma.CairoResource.Action.t()],
  commitments: [<<_::256>>],
  delta: binary(),
  nullifiers: [<<_::256>>],
  roots: [<<_::256>>]
}

Functions

Link to this function

create_from_compliance_units(compliance_units, input_logics, input_witnesses, output_logics, output_witnesses)

@spec create_from_compliance_units([binary()], [binary()], [binary()], [binary()], [
  binary()
]) ::
  {:ok, t()} | {:error, term()}

The arguments are JSON strings of compliance units, input logics, input witnesses, output logics, and output witnesses.

@spec finalize(t()) :: t()
Link to this function

from_noun(list)

@spec from_noun(Noun.t()) :: {:ok, t()}

Callback implementation for Noun.Nounable.Kind.from_noun/1.

Link to this function

get_binding_messages(tx)

@spec get_binding_messages(t()) :: [[byte()]]
Link to this function

get_compliance_instances(transaction)

@spec get_compliance_instances(t()) :: [Anoma.CairoResource.ComplianceInstance.t()]