[det]ed25519_sign(+KeyPair,
+Data, -Signature, +Options)Options:
- encoding(+Encoding)
- Encoding to use for Data. Default is
utf8. Alternatives areoctet,textandhex. Note that this differs from ecdsa_sign/4 and rsa_sign/4, which default tohexbecause they are typically applied to a hash of the data. Ed25519 signs the data itself.