Elixium Core v0.2.9 Elixium.KeyPair View Source

All the functions responsible for creating keypairs and using them to sign data / verify signatures

Link to this section Summary

Functions

Creates a new keypair and stores the private key in a keyfile. Returns the public and private key

Reads in a private key from the given file, and returns a tuple with the public and private key

Link to this section Functions

Link to this function create_keypair() View Source
create_keypair() :: {binary(), binary()}

Creates a new keypair and stores the private key in a keyfile. Returns the public and private key

Link to this function get_from_file(path) View Source
get_from_file(String.t()) :: {binary(), binary()}

Reads in a private key from the given file, and returns a tuple with the public and private key

Link to this function sign(private_key, data) View Source
sign(binary(), String.t()) :: String.t()
Link to this function verify_signature(public_key, signature, data) View Source
verify_signature(binary(), binary(), String.t()) :: boolean()