Salty.Sign behaviour (libsalty2 v0.3.0) View Source

Link to this section Summary

Link to this section Callbacks

Specs

bytes() :: non_neg_integer()

Specs

init() :: {:ok, binary()} | {:error, atom()}

Specs

keypair() :: {:ok, binary(), binary()} | {:error, atom()}

Specs

open(binary(), binary()) :: {:ok, binary()} | {:error, atom()}

Specs

publickeybytes() :: non_neg_integer()

Specs

secretkeybytes() :: non_neg_integer()

Specs

seed_keypair(binary()) :: {:ok, binary(), binary()} | {:error, atom()}

Specs

seedbytes() :: non_neg_integer()

Specs

sign(binary(), binary()) :: {:ok, binary()} | {:error, atom()}
Link to this callback

sign_detached(binary, binary)

View Source

Specs

sign_detached(binary(), binary()) :: {:ok, binary()} | {:error, atom()}

Specs

sk_to_pk(binary()) :: binary()

Specs

sk_to_seed(binary()) :: binary()
Link to this callback

verify_detached(binary, binary, binary)

View Source

Specs

verify_detached(binary(), binary(), binary()) :: :ok | {:error, atom()}

Link to this section Functions