You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to validate secp256k1 signatures using noir circuits , which I was generating from elliptic library of nodejs, the signature validations fail on certain inputs
Expected Behavior
All the signatures should be valid in the circuit also, they are valid while checking with the library
Bug
Some of the signatures are validated properly and some fail to be validated
To Reproduce
clone the repositroy https://github.com/d4n1sh404/noir-secp256k1-verify-repro
install dependencies yarn install or npm install
run start script or node index.js
cd to secp_verify directory and run nargo prove
repeat a couple of time to see the unexpected behavior
Project Impact
Blocker
Impact Context
I am building a merkle inclusion verifier for a project, the signatures are being used as merkle leaves and need to be validated if they are valid
Workaround
None
Workaround Description
No response
Additional Context
No response
Installation Method
None
Nargo Version
nargo version = 0.22.0 noirc version = 0.22.0+3fae4a03fded4e3f5065e7461c563f7e39745604 (git version hash: 3fae4a0, is dirty: false)
NoirJS Version
No response
Would you like to submit a PR for this Issue?
Maybe
Support Needs
Checking and verifying if this is a bug or a normalization or converting issue while passing inputs to the circuit
The text was updated successfully, but these errors were encountered:
I've made a PR to the reproduction repository with a fix so that it will generate signatures with the canonical values of s. We reject signatures with "high" values of s as this results in signature malleability issues.
I'm going to make some changes to our signature verifier however to surface better error data however to help diagnosing issues like this in future.
Aim
I want to validate secp256k1 signatures using noir circuits , which I was generating from elliptic library of nodejs, the signature validations fail on certain inputs
Expected Behavior
All the signatures should be valid in the circuit also, they are valid while checking with the library
Bug
Some of the signatures are validated properly and some fail to be validated
To Reproduce
https://github.com/d4n1sh404/noir-secp256k1-verify-repro
yarn install or npm install
node index.js
nargo prove
Project Impact
Blocker
Impact Context
I am building a merkle inclusion verifier for a project, the signatures are being used as merkle leaves and need to be validated if they are valid
Workaround
None
Workaround Description
No response
Additional Context
No response
Installation Method
None
Nargo Version
nargo version = 0.22.0 noirc version = 0.22.0+3fae4a03fded4e3f5065e7461c563f7e39745604 (git version hash: 3fae4a0, is dirty: false)
NoirJS Version
No response
Would you like to submit a PR for this Issue?
Maybe
Support Needs
Checking and verifying if this is a bug or a normalization or converting issue while passing inputs to the circuit
The text was updated successfully, but these errors were encountered: