Fix bug in Orchard witness calculation #80

Merged
pitmutt merged 1 commit from rav001 into dev040 2024-05-07 20:21:20 +00:00
Showing only changes of commit 37b485288d - Show all commits

View file

@ -1562,6 +1562,7 @@ pub extern "C" fn rust_wrapper_update_orchard_witness(
let n = MerkleHashOrchard::from_cmx(&orchard_note_comm.unwrap()); let n = MerkleHashOrchard::from_cmx(&orchard_note_comm.unwrap());
iw.append(n); iw.append(n);
} }
}
let mut out_bytes: Vec<u8> = Vec::new(); let mut out_bytes: Vec<u8> = Vec::new();
let result = write_incremental_witness(&iw, &mut out_bytes); let result = write_incremental_witness(&iw, &mut out_bytes);
match result { match result {
@ -1574,7 +1575,6 @@ pub extern "C" fn rust_wrapper_update_orchard_witness(
marshall_to_haskell_var(&h0, out, out_len, RW); marshall_to_haskell_var(&h0, out, out_len, RW);
} }
} }
}
} }
#[no_mangle] #[no_mangle]