Closed akhilles closed 1 year ago
FWIW, I'm actually using crypto_eddsa_sign
not crypto_ed25519_sign
. Just noticed this inconsistency.
Oh crap, I'm so sorry, I botched the sizes in the prototypes. Should be fixed now, thanks. Fortunately you can still use version 4.0.0, because the sizes indicated there do not affect the generated binary.
As for your question, the answer is: the manual is correct, EdDSA and Ed25519 secret keys are 64 bytes.
Expected usage is:
crypto_eddsa_key_pair(secret_key, public_key, seed)
crypto_eddsa_sign(signature, secret_key, message, message_size)
Such a facepalm. I shall release a patch soon.
The new API is:
but the docs on the website show:
Also,
crypto_ed25519_key_pair
expects the secret key to be 64 bytes. So, I'm not sure what the expected usage is.