elliptic icon indicating copy to clipboard operation
elliptic copied to clipboard

Invalid hashed data sign with EDDSA

Open ghost opened this issue 3 years ago • 0 comments

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.

ghost avatar Jul 06 '21 23:07 ghost