Anoma.ShieldedResource (Anoma v0.25.0)

I am a shielded resource.

Summary

Functions

A commitment to the given resource.

Generate the nullifier public key from the nulliffier (private)key.

The nullifier of the given resource.

Randomizes the rseed 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.ShieldedResource{
  data: binary(),
  eph: bool(),
  label: binary(),
  logic: binary(),
  nonce: binary(),
  npk: binary(),
  quantity: binary(),
  rseed: binary()
}

Functions

Link to this function

commitment(resource)

@spec commitment(t()) :: binary()

A commitment to the given resource.

@spec get_npk(binary()) :: binary()

Generate the nullifier public key from the nulliffier (private)key.

Link to this function

nullifier(resource)

@spec nullifier(t()) :: binary()

The nullifier of the given resource.

Randomizes the rseed 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)

@spec to_bytes(t()) :: [byte()]