ZIP 244: Write transparent scripts in their consensus encoding

This commit is contained in:
Jack Grigg 2021-06-08 18:47:34 +01:00
parent 31ea91ced8
commit 684fd504a8
1 changed files with 1 additions and 1 deletions

View File

@ -504,7 +504,7 @@ impl TransactionDigest<Authorized> for BlockTxCommitmentDigester {
let mut h = hasher(ZCASH_TRANSPARENT_SCRIPTS_HASH_PERSONALIZATION);
if let Some(bundle) = transparent_bundle {
for txin in &bundle.vin {
h.write_all(&txin.script_sig.0).unwrap();
txin.script_sig.write(&mut h).unwrap();
}
}
h.finalize()