gnosis / dex-zksnarks

Code to generate snark proofs for batch auction result validation of the Gnosis d.exchange
46 stars 7 forks source link

Handle negative values correctly in decompose #30

Closed fleupold closed 5 years ago

fleupold commented 5 years ago

Simple fix that makes sure we always take the positive representation (mod p) of the field element we are trying to decompose.