salty v0.1.2 Salty.Sign behaviour View Source

Link to this section Summary

Link to this section Functions

Link to this section Callbacks

Link to this callback bytes() View Source
bytes() :: non_neg_integer
Link to this callback init() View Source
init() :: {:ok, binary} | {:error, atom}
Link to this callback keypair() View Source
keypair() :: {:ok, binary, binary} | {:error, atom}
Link to this callback open(binary, binary) View Source
open(binary, binary) :: {:ok, binary} | {:error, atom}
Link to this callback publickeybytes() View Source
publickeybytes() :: non_neg_integer
Link to this callback secretkeybytes() View Source
secretkeybytes() :: non_neg_integer
Link to this callback seed_keypair(binary) View Source
seed_keypair(binary) :: {:ok, binary, binary} | {:error, atom}
Link to this callback seedbytes() View Source
seedbytes() :: non_neg_integer
Link to this callback sign(binary, binary) View Source
sign(binary, binary) :: {:ok, binary} | {:error, atom}
Link to this callback sign_detached(binary, binary) View Source
sign_detached(binary, binary) ::
  {:ok, binary} |
  {:error, atom}
Link to this callback sk_to_pk(binary) View Source
sk_to_pk(binary) :: binary
Link to this callback sk_to_seed(binary) View Source
sk_to_seed(binary) :: binary
Link to this callback verify_detached(binary, binary, binary) View Source
verify_detached(binary, binary, binary) ::
  :ok |
  {:error, atom}