Module edcert::ed25519
[−]
[src]
This module contains a wrapper around the libsodium implementation of ed25519. It reduces the size of signatures to 64 byte.
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. |
SIGNATURE_LEN |
This is the length of a ed25519 signature. |
Functions
generate_keypair |
This method generates a random ed25519 keypair from a cryptographically secure source
(on unix this is /dev/urandom). Returns ( |
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. |