Ed25519 v0.2.5 Ed25519

Ed25519 signature functions

This is mostly suitable as part of a pure Elixir solution.

Summary

Types

public or secret key

computed signature

Functions

derive the public signing key from the secret key

Generate a secret/public key pair

validate a signed message

Types

key()
key() :: binary

public or secret key

signature()
signature() :: binary

computed signature

Functions

derive_public_key(sk)
derive_public_key(key) :: key

derive the public signing key from the secret key

generate_key_pair()
generate_key_pair() :: {key, key}

Generate a secret/public key pair

Returned tuple contains {random_secret_key, derived_public_key}

signature(m, sk, pk \\ nil)
signature(binary, key, key) :: signature

Sign a message

If only the secret key is provided, the public key will be derived therefrom. This adds significant overhead.

valid_signature?(s, m, pk)
valid_signature?(signature, binary, key) :: boolean

validate a signed message