Skip to content

feat: store accumulators in SNARKs to optimize aggregation performance - #68

Open
DeVikingMark wants to merge 3 commits into
privacy-ethereum:mainfrom
DeVikingMark:а

Hidden character warning

The head ref may contain hidden characters: "\u0430"
Open

feat: store accumulators in SNARKs to optimize aggregation performance#68
DeVikingMark wants to merge 3 commits into
privacy-ethereum:mainfrom
DeVikingMark:а

Conversation

@DeVikingMark

Copy link
Copy Markdown

Summary

Resolves TODO comment by implementing accumulator storage in SNARK structures, eliminating redundant recomputation during aggregation.

Changes

  • Add optional accumulator field to Snark and SnarkWitness structs
  • Modify AggregationCircuit::new() to use cached accumulators when available
  • Add gen_snark_*_with_accumulator() functions for pre-computation
  • Add new_with_cached_accumulators() method for optimal performance

Testing

  • cargo check passes
  • cargo clippy clean
  • cargo build --release successful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant