gnosis / dex-zksnarks

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

Extracting pedersen hashing into separate function and adding unit test #10

Closed fleupold closed 5 years ago

fleupold commented 5 years ago

Since we will create chains of pedersen hashes in the main snark as well, it makes sense to pull it into its own method (separate file which will host a similar method for SHA chaining and SHA merkle tree as well).

Made sure we are not increasing total amount of constraints and added a unit test.