privacy-scaling-explorations / sonobe

Experimental folding schemes library
https://privacy-scaling-explorations.github.io/sonobe-docs/
MIT License
208 stars 55 forks source link

fix sumcheck verifier for when poly=0 #126

Closed arnaucube closed 4 months ago

arnaucube commented 4 months ago

@NiDimi reported (https://github.com/privacy-scaling-explorations/sonobe/issues/122) the sumcheck verification panicking when the poly is zero. This was due the verifier modified code was trying to access to poly.coeffs[0] and when the poly is zero this vec is empty.

This PR fixes it, and adds a test (which fails without this PR fix).

fixes #122