Anoma.Crypto.Sign (Anoma v0.25.0)

Summary

Types

Link to this type

ed25519_public()

@type ed25519_public() :: <<_::256>>
Link to this type

ed25519_secret()

@type ed25519_secret() :: <<_::512>>
@type public() :: ed25519_public()
@type secret() :: ed25519_secret()

Functions

@spec new_keypair() :: %{public: ed25519_public(), secret: ed25519_secret()}
Link to this function

sign(message, secret)

@spec sign(binary(), ed25519_secret()) :: binary()
Link to this function

sign_detached(message, secret)

@spec sign_detached(binary(), ed25519_secret()) :: binary()
Link to this function

verify(signed_message, public)

@spec verify(binary(), ed25519_public()) :: {:ok, binary()} | {:error, term()}
Link to this function

verify_detached(signature, message, public)

@spec verify_detached(binary(), binary(), ed25519_public()) :: boolean()