[det]ed25519_sign(+KeyPair,
+Data, -Signature, +Options)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.