Module edcert::ed25519 [] [src]

Constants

PRIVATE_KEY_LEN

This is the length of a ed25519 private key.

PUBLIC_KEY_LEN

This is the length of a ed25519 public key.

Functions

generate_keypair

This method generates a random ed25519 keypair from a cryptographically secure source (on unix this is /dev/urandom).

sign

This method takes a data vector and a private key and computes the signature which can be verified using the public key.

verify

This method takes a data vector, a signature and a public key and returns true, if the signature has been created using the correct private key.