Anoma.Crypto.Sign (Anoma v0.29.0)
Summary
Types
Link to this type
ed25519_public()
@type ed25519_public() :: <<_::256>>
Link to this type
ed25519_secret()
@type ed25519_secret() :: <<_::512>>
Link to this type
public()
@type public() :: ed25519_public()
Link to this type
secret()
@type secret() :: ed25519_secret()
Functions
Link to this function
new_keypair()
@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()