Zokrates / ZoKrates

A toolbox for zkSNARKs on Ethereum
https://zokrates.github.io
GNU Lesser General Public License v3.0
1.83k stars 361 forks source link

Fix bits cache panic due to different bitwidths #1129

Closed Schaeff closed 2 years ago

Schaeff commented 2 years ago

If we cached a representation of n bits, it can be turned into a representation of m >= n bits by left padding with zeroes. Currently we force n == m. Relax that constraint.