I am utilizing the bitcoin rust crate to construct my very own CLI pockets.
In my operate the place I am setting up the TxIn‘s for my Transaction, is the precise script_sig required on the under step? Or does it populate after I go and signal the transaction in a later step?
let txins: Vec = selected_utxos
.iter()
.map(|utxo| TxIn {
previous_output: bitcoin::OutPoint {
txid: bitcoin::Txid::from_str(&utxo.txid).anticipate("Invalid txid format"),
vout: utxo.vout,
},
script_sig: ScriptBuf::new(),
sequence: Sequence::MAX,
witness: Witness::new(),
})
.gather();
Is it alright to put ScriptBuf::new() as a placeholder?
I am utilizing the bitcoin rust crate to construct my very own CLI pockets.
In my operate the place I am setting up the TxIn‘s for my Transaction, is the precise script_sig required on the under step? Or does it populate after I go and signal the transaction in a later step?
let txins: Vec = selected_utxos
.iter()
.map(|utxo| TxIn {
previous_output: bitcoin::OutPoint {
txid: bitcoin::Txid::from_str(&utxo.txid).anticipate("Invalid txid format"),
vout: utxo.vout,
},
script_sig: ScriptBuf::new(),
sequence: Sequence::MAX,
witness: Witness::new(),
})
.gather();
Is it alright to put ScriptBuf::new() as a placeholder?
















