Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chunk proving pattern #33

Merged

Conversation

tchataigner
Copy link
Member

@tchataigner tchataigner commented Feb 19, 2024

Goal of this PR

The goal of this PR is to create a bellpepper utility that could help us handle the loop + accumulator pattern in a circuit more efficiently.

This implementation will be able to generate a number N of circuits based on the number of intermediate accumulator values Nav and a desired number of accumulator updates per circuit Nau (N = Nav / Nau).

There is an example for a simple additive accumulator integrated in Supernova.

Usage

The current implementation only implements some chunking at the gadget level. This means that there is no actual generation of some folding steps, which would require a dependency on arecibo

From bellpepper-chunk, the user will have to implement the inner ChunkStepCircuit that will be synthesize at each fold of our RecursiveNova.

Finally, the user will also have to develop the plumbing for StepCircuit and NonUniformCircuit from arecibo. Some of the methods implementation functions can be used through the use of the API of FoldStep and InnerCircuit (see example).

Open discussion

As you may know, there was some design discussions around adding arecibo as a dependency to abstract more of the implementation load from the user.

For now we do not rely on arecibo but it could be added quite easily if we wish to do so.

@tchataigner tchataigner marked this pull request as ready for review February 19, 2024 22:47
huitseeker
huitseeker previously approved these changes Feb 20, 2024
Copy link
Member

@huitseeker huitseeker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thanks a lot!

Cargo.toml Outdated
Comment on lines 36 to 37
[patch.crates-io]
pasta_curves = { git = "https://github.com/lurk-lab/pasta_curves", branch = "dev" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should no longer be necessary after argumentcomputer/arecibo#333

@tchataigner tchataigner merged commit f2cfe31 into argumentcomputer:main Feb 20, 2024
11 checks passed
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.

2 participants