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
Looking at https://github.com/iden3/circomlib/tree/master we can see that they expose multiple different flavours of EDDSA with different hash functions used. If Noir users wish to use a different hash function in their EDDSA algorithm however they would need to vendor the entire EDDSA verification algorithm.
Happy Case
We should expose a generic EDDSA verification function from the stdlib which allows a custom hash function to be used, eddsa_verify.
We can also provide some functions similar to the current eddsa_poseidon_verify which specify common hash functions is to be used.
Alternatives Considered
We could accept this limitation and perform these changes in an external library in pursuit of #1258
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered:
# Description
## Problem\*
Resolves#3642
## Summary\*
Eddsa verification takes now a hasher so that it can be used with
anything having the Hasher trait.
I added this trait to the stdlib implementations of mimc, poseidon and
poseidon2.
## Additional Context
## Documentation\*
Check one:
- [ ] No documentation needed.
- [X] Documentation included in this PR.
- [ ] **[Exceptional Case]** Documentation to be submitted in a separate
PR.
# PR Checklist\*
- [X] I have tested the changes locally.
- [X] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
---------
Co-authored-by: Tom French <[email protected]>
Problem
Looking at https://github.com/iden3/circomlib/tree/master we can see that they expose multiple different flavours of EDDSA with different hash functions used. If Noir users wish to use a different hash function in their EDDSA algorithm however they would need to vendor the entire EDDSA verification algorithm.
Happy Case
We should expose a generic EDDSA verification function from the stdlib which allows a custom hash function to be used,
eddsa_verify
.We can also provide some functions similar to the current
eddsa_poseidon_verify
which specify common hash functions is to be used.Alternatives Considered
We could accept this limitation and perform these changes in an external library in pursuit of #1258
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: