You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When compiling some circuits, we get the error TruncatedDegreeTooLarge. The error is catched from the function truncate() in src/commitment_scheme/kzg10/key.rs, but this bug comes from srs.rs, where the max_degree in setup() should be + 6. Also, the truncated degree used in trim() should be + 6.
The explanation is that adding the blinding factors requires some extra elements for the SRS: +1 per each wire (we have 4 wires), plus +2 for the permutation polynomial.
To Reproduce
Among others, the gadget schnorr crashes when executing the double key verification. It can be reproduced by cloning the repo, selecting the last version of plonk, and using cargo bench or cargo test.
Expected behaviour
Pass all the tests and circuits with no errors.
The text was updated successfully, but these errors were encountered:
Describe the bug
When compiling some circuits, we get the error
TruncatedDegreeTooLarge
. The error is catched from the functiontruncate()
insrc/commitment_scheme/kzg10/key.rs
, but this bug comes fromsrs.rs
, where themax_degree
insetup()
should be+ 6
. Also, the truncated degree used intrim()
should be+ 6
.The explanation is that adding the blinding factors requires some extra elements for the SRS: +1 per each wire (we have 4 wires), plus +2 for the permutation polynomial.
To Reproduce
Among others, the gadget schnorr crashes when executing the double key verification. It can be reproduced by cloning the repo, selecting the last version of plonk, and using
cargo bench
orcargo test
.Expected behaviour
Pass all the tests and circuits with no errors.
The text was updated successfully, but these errors were encountered: