-
Notifications
You must be signed in to change notification settings - Fork 66
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
ark-r1cs-std interpolate_and_evaluate failing for n>11 #80
Comments
…oofs in Onchain Decider, refactor CommitmentScheme trait (#79) * Compute Decider's CM challenges in Groth16 circuit, link G16 & KZG proofs in Onchain Decider, refactor CommitmentScheme trait - Refactor commitment package - Refactor `Commitment` trait and the kzg, ipa, pedersen impls - Add methods to prove & verify given challenges (not computing them in-method) - Add KZG challenges computation in decider_eth_circuit - Add cmE & cmW KZG proving & verification in DeciderEth - Link Decider's Groth16 proof & KZG proofs data - Fix point to bytes arkworks inconsistency - Patch ark_curves to use a cherry-picked version with bn254::constraints & grumpkin for v0.4.0 (once arkworks v0.5.0 is released this will no longer be needed) * DeciderEthCircuit: Add check eval=p(c) for E & W The check is temporary disabled due #80, but the public inputs and logic are there, to be able to continue the other parts development while issue #80 is solved.
This PR should fix this issue :) |
@winderica I think this issue can be closed right? |
I guess no? Although arkworks-rs/r1cs-std#145 has already been merged, we need to depend on the latest I think for now we can cherry-pick the changes in arkworks-rs/r1cs-std#145 while preparing for the next release of arkworks at the same time. |
I was just working on this, made a cherrypick of your commit fixing the poly eval, and porting it to the I think that with this you (@winderica ) should be able to uncomment the current poly-evals in the various decider's circuits and open a PR in Sonobe with the fix, which would then include the fix you did in arkworks and would make the poly evals work ^^ |
Awesome! @winderica will you make a PR then tagging this such that we can close? |
Sure! I am now working on this, but it takes more time than expected because I ran into another issue with |
GL with this madness @winderica <3 |
In the
r1cs-std
lib, using thepoly/evaluations/univariate
:Let$n$ be such that the evaluation domain is of size $2^n$ . Then, when trying to use $n>11$ , while for $n<=11$ seems to work fine.$n$ values can be tried, getting $n>11$ .
EvaluationsVar::interpolate_and_evaluate
, it leads tostack overflow
whenA temporary isolated sample to illustrate the issue can be found at: https://github.com/arnaucube/r1cs-interpolate-poly-test/blob/main/src/lib.rs
where different
stack overflow
forThis$n>11$ is needed for interpolating and evaluating at the challenge the polynomials from the $W_{i+1}.W,~ W_{i+1}.E$ vectors in the
DeciderEthCircuit
.The text was updated successfully, but these errors were encountered: