- ed25519_sign(+KeyPair, +Data, -Signature, +Options) is det
- Create an Ed25519 (RFC 8032) signature for Data with the private
key of KeyPair, as created by ed25519_new_keypair/1 or obtained
with load_private_key/3. Signature is a hexadecimal atom.
Options:
- encoding(+Encoding)
- Encoding to use for Data. Default is
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.