refactor: replacing remaining use of pedersen with poseidon - #7777
refactor: replacing remaining use of pedersen with poseidon#7777benesjan wants to merge 4 commits into
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Changes to circuit sizes
🧾 Summary (100% most significant diffs)
Full diff report 👇
|
02e4602 to
36d305d
Compare
806b864 to
f5d733e
Compare
36d305d to
2ebac2b
Compare
f5d733e to
67fb216
Compare
2ebac2b to
4eab954
Compare
| // by watching for new note hashes and them hashing them all with nsk_app to derive future nullifiers. | ||
| // (See 'nsk_app and contract address are enough to detect note nullification' test case in e2e_keys.test.ts). | ||
| // Note: If we would drop the siloing here we would save ~1.2k gates per still a very unoptimized token | ||
| // transfer so the savings would not be that great here. |
There was a problem hiding this comment.
Unrelated comment I sneaked in.
| @@ -1,5 +1,4 @@ | |||
| use dep::aztec::context::{PrivateContext, PublicContext}; | |||
| use dep::aztec::protocol_types::{address::AztecAddress, abis::function_selector::FunctionSelector, hash::pedersen_hash}; | |||
| use dep::aztec::context::PrivateContext; | |||
There was a problem hiding this comment.
Cleaned up plenty of imports in this PR.
67fb216 to
32b12df
Compare
28721b8 to
d4f6262
Compare
32b12df to
28299d5
Compare
d4f6262 to
ddb790e
Compare
Benchmark resultsMetrics with a significant change:
Detailed resultsAll benchmarks are run on txs on the This benchmark source data is available in JSON format on S3 here. Proof generationEach column represents the number of threads used in proof generation.
L2 block published to L1Each column represents the number of txs on an L2 block published to L1.
L2 chain processingEach column represents the number of blocks on the L2 chain where each block has 8 txs.
Circuits statsStats on running time and I/O sizes collected for every kernel circuit run across all benchmarks.
Stats on running time collected for app circuits
AVM SimulationTime to simulate various public functions in the AVM.
Public DB AccessTime to access various public DBs.
Tree insertion statsThe duration to insert a fixed batch of leaves into each tree type.
MiscellaneousTransaction sizes based on how many contract classes are registered in the tx.
Transaction size based on fee payment method | Metric | | |
ddb790e to
454a781
Compare

Replaced the use of pedersen with poseidon in this PR + cleaned up imports (pedersen was imported and unused in a ton of places).
setup_refund before: 52168
setup_refund after: 52324