mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-07-30 20:11:23 +00:00
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
|
||||
{
|
||||
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
|
||||
|
Reference in New Issue
Block a user