Anoma.CairoResource.Resource (Anoma v0.32.0)
I am a shielded resource.
Summary
Functions
A commitment to the given resource.
Generate the nullifier key commitment from the nulliffier key.
The nullifier of the given resource.
Randomizes the rand_seed of a resource.
Set the nonce of a resource, the nonce of output resource comes from the nullifer of input recource in the compliance proof.
Types
@type t() :: %Anoma.CairoResource.Resource{
is_ephemeral: bool(),
label_ref: <<_::256>>,
logic_ref: <<_::256>>,
nk_commitment: <<_::256>>,
nonce: <<_::256>>,
quantity: <<_::256>>,
rand_seed: <<_::256>>,
value_ref: <<_::256>>
}
Functions
Link to this function
a_padding_resource()
@spec a_padding_resource() :: t()
Link to this function
commitment(resource)
A commitment to the given resource.
Link to this function
from_json_object(mp)
@spec from_json_object(Jason.OrderedObject.t()) :: {:ok, t()} | {:error, term()}
Link to this function
from_noun(list)
Link to this function
get_nk_commitment(nk)
Generate the nullifier key commitment from the nulliffier key.
Link to this function
nullifier(resource, nk)
The nullifier of the given resource.
Link to this function
random(r)
Randomizes the rand_seed of a resource.
Link to this function
set_nonce(r, nonce)
Set the nonce of a resource, the nonce of output resource comes from the nullifer of input recource in the compliance proof.
Link to this function
to_bytes(resource)
Link to this function
to_json_object(resource)
@spec to_json_object(t()) :: Jason.OrderedObject.t()