elliptic
elliptic copied to clipboard
Invalid hashed data sign with EDDSA
Hello.
I'm experimenting the EdDSA but I'm facing a issue. In the documentation it's mentioned than the data should be a hash, but if so, the signature is incorrect. Because I think the sign function hash the data again (which turns out with double hashed data).
So you should either update the doc or update the sign function, as it's leading to invalid signatures.
PS: I tried with other languages on top of openssl and the signature produces by the library matches with a double hashed data.