crypto.ed25519_sign

crypto

ed25519_sign(key, msg) -> sig, err

Sign a message using an Ed25519 private key

key is the 32-byte seed, as ed25519_generate_key returns it. Returns the 64-byte signature. The same seed and message always give the same bytes.

Returns nil and a reason for a seed that is not a 32-byte string, and for a message that is no string.