Ed25519 v0.2.3 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 :: binary

public or secret key

signature :: binary

computed signature

Functions

derive_public_key(sk)

Specs

derive_public_key(key) :: key

derive the public signing key from the secret key

generate_key_pair()

Specs

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)

Specs

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)

Specs

valid_signature?(signature, binary, key) :: boolean

validate a signed message