Skip to content

Commit

Permalink
add psbt finalize call in big executable
Browse files Browse the repository at this point in the history
  • Loading branch information
RCasatta committed Mar 3, 2024
1 parent 883132e commit 959546b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/big.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ fn main() {
println!("{:?}", h.lift());
println!("{:?}", h.script_pubkey());
println!("{:?}", h.address(bitcoin::Network::Bitcoin));

let psbt: bitcoin::Psbt = i.parse().unwrap();
let psbt = psbt.finalize(&secp).unwrap();
let tx = psbt.extract_tx().unwrap();
println!("{:?}", tx);
}

fn use_descriptor<K: MiniscriptKey>(d: Descriptor<K>) {
Expand Down

0 comments on commit 959546b

Please sign in to comment.