silicon v0.1.0 Silicon.Ed25519 View Source

A wrapper of libdecaf

Link to this section Summary

Link to this section Types

Link to this type

public_key() View Source
public_key() :: binary()

Link to this type

secret_key() View Source
secret_key() :: binary()

Link to this type

signature() View Source
signature() :: binary()

Link to this section Functions

Link to this function

secret_key_to_public_key(secret_key) View Source
secret_key_to_public_key(secret_key()) :: {:ok, public_key()} | :error

Link to this function

secret_key_to_secret(secret_key) View Source
secret_key_to_secret(secret_key()) :: {:ok, secret()} | :error

Link to this function

secret_to_public_key(secret) View Source
secret_to_public_key(secret()) :: {:ok, public_key()} | :error

Link to this function

sign(data, secret_key) View Source
sign(binary(), secret_key()) :: {:ok, signature()} | :error

Link to this function

verify(signature, data, public_key) View Source
verify(binary(), binary(), public_key()) :: :ok | :error