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

feat: brainfuck prover backbone #23

Merged
merged 5 commits into from
Nov 7, 2024
Merged

Conversation

zmalatrax
Copy link
Collaborator

Closes #22

Still needs to add the verify_brainfuck function.

The constant MAX_LOG_ROWS is arbitrarily set to 20, taken from stwo-cairo (it means we prove execution of max $2^{20} \approx 10^6$ steps.

Is adding a sanity check on the lookup sum during the proof generation a best practice ? (This check is made by the verifier, verifying it during the proof generation allows to be sure that this check will pass for the proof generated by prove_brainfuck)

crates/brainfuck_prover/src/brainfuck_air/mod.rs Outdated Show resolved Hide resolved
crates/brainfuck_prover/src/brainfuck_air/mod.rs Outdated Show resolved Hide resolved
crates/brainfuck_prover/src/brainfuck_air/mod.rs Outdated Show resolved Hide resolved
crates/brainfuck_prover/src/brainfuck_air/mod.rs Outdated Show resolved Hide resolved
@zmalatrax zmalatrax marked this pull request as ready for review November 7, 2024 15:53
@zmalatrax zmalatrax merged commit 027540e into main Nov 7, 2024
6 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.

feat: brainfuck_prover backbone
2 participants