Anoma.CairoResource.Workflow (Anoma v0.34.0)
I am a bunch of workflow functions for creating a shielded transaction.
Summary
Functions
@spec create_action( [<<_::256>>], [<<_::256>>], [Anoma.CairoResource.ProofRecord.t()], [Anoma.CairoResource.ProofRecord.t()], [Anoma.CairoResource.ProofRecord.t()] ) :: Anoma.CairoResource.Action.t()
@spec create_compliance_inputs( [Jason.OrderedObject.t()], [Anoma.CairoResource.Resource.t()], [ Anoma.CairoResource.Resource.t() ] ) :: {:ok, [String.t()]} | {:error, term()}
@spec create_merkle_tree_paths([binary()], [binary()]) :: {:ok, [[Jason.OrderedObject.t()]], [[Jason.OrderedObject.t()]]} | {:error, term()}
@spec create_private_keys([Jason.OrderedObject.t()]) :: {:ok, binary()} | {:error, term()}
@spec generate_compliance_proofs([String.t()]) :: {:ok, [Anoma.CairoResource.ProofRecord.t()]} | {:error, term()}
@spec generate_resource_logic_proofs([binary()], [binary()]) :: {:ok, [Anoma.CairoResource.ProofRecord.t()]} | {:error, term()}
@spec get_input_resources([Jason.OrderedObject.t()], [binary()], [binary()]) :: {:ok, [Anoma.CairoResource.Resource.t()]} | {:error, term()}
@spec get_output_resources([Jason.OrderedObject.t()], [binary()], [binary()]) :: {:ok, [Anoma.CairoResource.Resource.t()]} | {:error, term()}
@spec update_witnesses( [Jason.OrderedObject.t()], [Anoma.CairoResource.Resource.t()], [boolean()], [binary()], [[Jason.OrderedObject.t()]] ) :: {:ok, [binary()]} | {:error, term()}