zcash / sapling-crypto

Zcash "Sapling" cryptography
Other
79 stars 65 forks source link

Bring in QED-it Tests #101

Closed defuse closed 5 years ago

defuse commented 5 years ago

This pulls in a bunch of tests QED-it wrote during their audit that were spread across many branches in their sapling-crypto-internal repository. I've left their history intact so the best way to review it is to just look at the final diff, except for...

I have not reviewed the actual test code myself.

I did not bring in this change to the circuit code, because I don't understand it. I also did not bring in a bunch of changes to comments and variable renamings in the aurel_comments branch and the sum_bug branch, but I did bring in the new tests from those branches.

daira commented 5 years ago

@defuse wrote:

I did not bring in this change to the circuit code, because I don't understand it.

That change looks correct to me, but it should not be in this PR. (The change does not alter the behaviour of the circuit. It addresses the "Pedersen hash circuit implementation can not calculate inputs larger than 63*3*4" issue in the QED-it report.)

defuse commented 5 years ago

Just added a commit to fix the build warnings.

str4d commented 5 years ago

Replaced by zcash/librustzcash#93