Anoma.Client.Transactions (Anoma v0.34.0)

I contain logic to deal with transactions within the client.

I am concerned with verifying and composing transactions.

Summary

Functions

Given two transactions, I compose them into a new transaction.

Given a jammed transaction, I verify it.

Functions

compose(transactions)

@spec compose([binary()]) ::
  {:ok, binary()}
  | {:error, :invalid_input, term()}
  | {:error, :noun_not_a_valid_transaction}
  | {:error, :not_enough_transactions}

Given two transactions, I compose them into a new transaction.

verify(transaction)

@spec verify(binary()) ::
  {:ok, boolean()}
  | {:error, :noun_not_a_valid_transaction | :verify_failed}
  | {:error, :cue_failed, term()}

Given a jammed transaction, I verify it.