Fix negation bug in librustzcash_sapling_check_output

This commit is contained in:
Sean Bowe
2018-07-17 17:01:04 -06:00
parent 0800976a57
commit bcba4924ca

View File

@@ -695,7 +695,7 @@ pub extern "system" fn librustzcash_sapling_check_output(
// Accumulate the value commitment in the context
{
let mut tmp = cv.clone();
tmp.negate(); // Outputs subtract from the total.
tmp = tmp.negate(); // Outputs subtract from the total.
tmp = tmp.add(&unsafe { &*ctx }.bvk, &JUBJUB);
// Update the context