Fix negation bug in librustzcash_sapling_check_output
This commit is contained in:
@@ -695,7 +695,7 @@ pub extern "system" fn librustzcash_sapling_check_output(
|
|||||||
// Accumulate the value commitment in the context
|
// Accumulate the value commitment in the context
|
||||||
{
|
{
|
||||||
let mut tmp = cv.clone();
|
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);
|
tmp = tmp.add(&unsafe { &*ctx }.bvk, &JUBJUB);
|
||||||
|
|
||||||
// Update the context
|
// Update the context
|
||||||
|
|||||||
Reference in New Issue
Block a user