From bcba4924ca6d8e3074e24792964c36cb83b7dac6 Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Tue, 17 Jul 2018 17:01:04 -0600 Subject: [PATCH] Fix negation bug in librustzcash_sapling_check_output --- src/rustzcash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rustzcash.rs b/src/rustzcash.rs index 537fb13..dbe9b1b 100644 --- a/src/rustzcash.rs +++ b/src/rustzcash.rs @@ -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