Ed25519.NoallocVersions of these functions which write their output in a buffer passed in as an argument
Buffers have the following size constraints:
sk, pk: 32 bytessignature: 64 bytesNote: The verify function does not return a buffer so it has no been duplicated here.
secret_to_public sk pk takes a secret key sk and writes the corresponding public key in pk. Buffers pk and sk must be distinct.
sign sk msg signature takes secret key sk and message msg and writes the Ed25519 signature in signature.
The buffer ks containing the expanded secret key must be 96 bytes long.
expand_keys sk ks takes secret key sk and writes the expanded secret key in ks.