refactor: add pk_aggregation circuit#1270
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughAdds a new threshold public-key-aggregation circuit (PkAggregationCircuit) with computation, codegen, and sample modules to zk-helpers; updates Noir config constants; adds CrtPolynomial::scalar_mul; renames pk_share → pk0_share across pk_generation code; registers the new circuit in the CLI; and adds BigInt JSON helper utilities. Changes
Sequence Diagram(s)sequenceDiagram
participant User as User/CLI
participant CLI as zk_cli
participant Registry as CircuitRegistry
participant Sample as SampleGen
participant Compute as Computation
participant Codegen as Codegen
User->>CLI: request pk-aggregation artifacts
CLI->>Registry: lookup/register PkAggregationCircuit
CLI->>Sample: PkAggregationCircuitInput::generate_sample(preset, committee)
Sample-->>CLI: PkAggregationCircuitInput
CLI->>Compute: CircuitComputation::compute(preset, input)
Compute-->>CLI: PkAggregationComputationOutput (Configs, Bits, Witness)
CLI->>Codegen: CircuitCodegen::codegen(preset, input)
Codegen-->>CLI: Artifacts (TOML + configs)
CLI-->>User: deliver artifacts
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
e63c774 to
a8109c9
Compare
Re #1259
Summary by CodeRabbit
New Features
Improvements
Configuration Changes