mattrglobal / pairing_crypto

A library for pairing based cryptography
Apache License 2.0
14 stars 7 forks source link

fix(wasm-fixture-gen): wrong-public-key case and hex conversion #66

Closed dev0x1 closed 2 years ago

dev0x1 commented 2 years ago

There was a bug in wrong-public-key fixture generation. To fix this, original message ordering is restored which was reversed in the previous step. The corresponding test case was still passing expecting signature validation failure but it was due to wrong-message-ordering, not because of wrong-public-key.

Another bug was the spare-key-pair public-key was same as original public-key.

Added the hex-encoding for all message buffers.

tplooker commented 2 years ago

Nice catch!