Skip to content

Commit

Permalink
Validate backup transaction signatures using SIGHASH_ALL
Browse files Browse the repository at this point in the history
  • Loading branch information
ssantos21 committed Sep 2, 2024
1 parent 045c697 commit e0a0857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/transfer/receiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ pub fn verify_transaction_signature(tx_n_hex: &str, tx0_hex: &str, fee_rate_tole

let xonly_pubkey = XOnlyPublicKey::from_slice(tx0_output.script_pubkey[2..].as_bytes()).unwrap();

let sighash_type = TapSighashType::from_consensus_u8(witness_data.last().unwrap().to_owned()).unwrap();
let sighash_type = TapSighashType::All;

let hash = SighashCache::new(tx_n.clone()).taproot_key_spend_signature_hash(
0,
Expand Down

0 comments on commit e0a0857

Please sign in to comment.