Anoma.TransparentResource.Resource (Anoma v0.29.0)

resource struct

Summary

Types

Link to this type

commitment()

@type commitment() :: binary()
@type nullifier() :: binary()
@type t() :: %Anoma.TransparentResource.Resource{
  data: binary(),
  ephemeral: bool(),
  label: binary(),
  logic: Noun.t(),
  nonce: <<_::256>>,
  nullifier_key: Anoma.Crypto.Sign.public(),
  quantity: non_neg_integer(),
  rseed: <<_::0>>
}

Functions

Link to this function

bool_to_noun(bool)

@spec bool_to_noun(true) :: 0
@spec bool_to_noun(false) :: 1
Link to this function

commitment(resource)

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

commits?(self, commitment)

@spec commits?(t(), Noun.noun_atom()) :: boolean()
Link to this function

delta(resource)

@spec delta(t()) :: Anoma.TransparentResource.Delta.t()
Link to this function

from_noun(arg1)

@spec from_noun(Noun.t()) :: :error | {:ok, t()}
@spec from_noun(Noun.t()) :: t()
Link to this function

from_noun!(noun)

@spec kind(t()) :: binary()
Link to this function

noun_to_bool(zero)

@spec noun_to_bool(Noun.t()) :: boolean()
Link to this function

nullifier(resource)

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

nullifies?(self, nullifier)

@spec nullifies?(t(), Noun.noun_atom()) :: boolean()
Link to this function

to_noun(resource)

@spec to_noun(t()) :: Noun.t()