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
The goal is to replace Noir Poseidon implementation by an implementation which uses the Poseidon2Permutation opcode, in order to improve the performance of Poseidon.
Happy Case
We should be able to just replace the permutation function by the opcode.
However, we should make sure to use the same parameters.
The state size is included in the opcode but it must be supported by the backend.
We may need a poseidon init opcode to initialise/validate the parameters
Alternatives Considered
No response
Additional Context
Following #4037, we have an opcode which would perform the poseidon2 permutation function. This allows us to implement this opcode in Barretenberg using lookup tables.
We can then re-write our Poseidon implementation into Poseidon2, by calling the opcode during the Poseidon rounds.
…4398)
and poseidon2 noir implementation
# Description
## Problem\*
Resolves#4170
## Summary\*
The PR implements Poseidon2 permutation for ACMV and Brillig, enabling
the use of the opcode.
Then it also includes a Noir implementation of Poseidon2 using the
opcode in the stdlib
## 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: kevaundray <kevtheappdev@gmail.com>
# Description
## Problem\*
Related to #4170, this PR address comments in PR #4398
## Summary\*
Add a comment and a sanity check.
## Additional Context
## Documentation\*
Check one:
- [X] No documentation needed.
- [ ] 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.
Problem
The goal is to replace Noir Poseidon implementation by an implementation which uses the Poseidon2Permutation opcode, in order to improve the performance of Poseidon.
Happy Case
We should be able to just replace the permutation function by the opcode.
However, we should make sure to use the same parameters.
The state size is included in the opcode but it must be supported by the backend.
We may need a poseidon init opcode to initialise/validate the parameters
Alternatives Considered
No response
Additional Context
Following #4037, we have an opcode which would perform the poseidon2 permutation function. This allows us to implement this opcode in Barretenberg using lookup tables.
We can then re-write our Poseidon implementation into Poseidon2, by calling the opcode during the Poseidon rounds.
Noir Poseidon implementation is available in noir_stdlib/src/hash./poseidon.nr
A Poseidon2 implementation in Noir is available here: https://github.com/TaceoLabs/noir-poseidon/tree/main/poseidon2
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: