feat(leaf_prover): pad leaf circuit to fixed component sizes#406
feat(leaf_prover): pad leaf circuit to fixed component sizes#406ilyalesokhin-starkware wants to merge 1 commit into
Conversation
PR SummaryMedium Risk Overview After Reviewed by Cursor Bugbot for commit aa83ee4. Bugbot is set up for automated code reviews on this repo. Configure here. |
24bffec to
c798914
Compare
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
c798914 to
aa83ee4
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #406 +/- ##
=======================================
Coverage 67.85% 67.85%
=======================================
Files 42 42
Lines 5456 5457 +1
=======================================
+ Hits 3702 3703 +1
Misses 1754 1754
🚀 New features to boost your workflow:
|
|
Small PR in case #407 generates a long discussion. |
Replace the padding TODO in
prove_leafwith apad_to_targetscall that pads each witness component of the leaf circuit up to a fixed power-of-two target, so every leaf proof has identical component sizes regardless of the program being proven.The targets live in
COMPONENT_SIZES— the next power of two of the leaf circuit's observed component sizes:eqqm31_opsm31_to_u32triple_xorblake_g_gateThese are hardcoded for now (TODO: load from file).
This change is