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

A fix for a verification error caused by different chunk_size in pre-processing and proving #35

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lydiagarms
Copy link

This PR fixes an error in plonkish_backend/src/backend/hyperplonk/prover.rs that causes the verification of proofs to fail.

The permutation argument is split into chunks because the number of columns might be greater than the max degree. In preprocessing, chunk_size is defined as max_degree -1. The number of chunks is set as the ceiling of the number of permutation polys divided by the chunk size. However, in proving the chunk_size is set as the ceiling of the number of permutation polys divided by the number of chunks. In some cases, this leads to the chunk_size being different in pre-processing to in proving, which causes a verification error for the resulting proof. For example say the pre-processing chunk size was 3, and the number of permutation polys is 4, then the number of chunks is 2. However in proving, the chunksize would be 4/2 = 2.

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