ingonyama-zk / icicle

A hardware acceleration library for compute intensive cryptography :ice_cube:
https://dev.ingonyama.com/icicle/overview
MIT License
329 stars 97 forks source link

Plonky3 babybear consistency #490

Closed DmytroTym closed 5 months ago

DmytroTym commented 5 months ago

This PR adds a test that shows the consistency of our baby bear implementation with both plonky3 and risc0. Initially I assumed that the difference in non-residues (-11 vs. 11) will affect the correctness but actually they are equivalent.