Closed guipublic closed 6 days ago
Generated at commit: a961c427c04f8c612d00434982620d612b6c3c54, compared to commit: 42d727feb5ce38f50da7daaf4279ae88edde61b4
Program | ACIR opcodes (+/-) | % | Circuit size (+/-) | % |
---|---|---|---|---|
pedersen_commitment | -25 โ | -69.44% | +24,623 โ | +596.34% |
pedersen_hash | -40 โ | -95.24% | +23,352 โ | +432.44% |
The test case is fixed by this commit https://github.com/AztecProtocol/aztec-packages/pull/7134/commits/b77204a75c0bbe0850994e37e6f6ab21c9478446
@guipublic can you copy that across into this PR?
Ah, I forgot that the separator needs to be a comptime thing. We'll have to remove that argument but can you add another instance with a non-zero separator?
Description
Problem*
This PR adds (back) the blackbox functions for Pedersen hash/commitment, until we get a similar circuit (in term of number of gates) with the Noir implementation.
Summary*
The Noir version is kept and assert to ouput the same value in a test.
Additional Context
This PR reverts the PR #5221
Documentation*
Check one:
PR Checklist*
cargo fmt
on default settings.