| Did you know ... | Search Documentation: |
| Ed25519 |
Ed25519 (RFC 8032) is a signature scheme over a twisted Edwards curve
that is birationally equivalent to Curve25519. A key pair is
derived from 32 arbitrary bytes and is represented in PKCS#8 v2 format
(RFC 8410), the format also used by openssl genpkey -algorithm ed25519.
Unlike ECDSA and RSA above, Ed25519 signs the data itself rather than
a hash of it. The default encoding of Data is therefore utf8.
KeyPair is a hexadecimal atom denoting the key pair in
PKCS#8 v2 format (RFC 5958, RFC 8410), the format also used by
openssl genpkey -algorithm ed25519. It contains the private
key and must be kept absolutely secret. It can be used for signing with ed25519_sign/4,
and its public key is obtained with
ed25519_keypair_public_key/2.
Options:
utf8.
Alternatives are
octet, text and hex. Note that
this differs from
ecdsa_sign/4 and rsa_sign/4,
which default to hex because they are typically applied to
a hash of the data. Ed25519 signs the data itself.Options are as for ed25519_sign/4.