You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #35: fix: missing example in psbt segwit example
b369269 fix: missing example in psbt segwit example (Carlos Garcia Ortiz karliatto)
Pull request description:
The example `cookbook/src/psbt/multiple_inputs_segwit-v0.md` had some missing imports and some unnecessary ones.
ACKs for top commit:
tcharding:
ACK b369269
Tree-SHA512: 83e29abdfb9b8e1bddab8a7f822e2f12fa874679e75cfc5bf64e088e3efc6b848f5f0e7bc9b5b5a6b98644d77eb69d921a84d429511626fc36ada183af5391fb
@@ -53,10 +50,9 @@ Here is the logic behind these imports:
53
50
-`bitcoin::bip32` is used to derive keys according to [BIP 32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki)
54
51
-`bitcoin::hashes::Hash` is used to hash data
55
52
-`bitcoin::locktime::absolute` is used to create a locktime
56
-
-`bitcoin::psbt` is used to construct and manipulate PSBTs
57
53
-`bitcoin::secp256k1` is used to sign transactions
58
-
-`bitcoin::sighash` is used to create SegWit V0 sighashes
59
54
-`bitcoin::consensus` is used to serialize the final signed transaction to a raw transaction
55
+
-`bitcoin::psbt` is used to construct and manipulate PSBTs
60
56
-`bitcoin::transaction` and `bitcoin::{Address, Network, OutPoint, ScriptBuf, Sequence, Transaction, TxIn, TxOut, Txid, Witness}` are used to construct transactions
61
57
-`bitcoin::WPubkeyHash` is used to construct SegWit V0 inputs
62
58
@@ -204,14 +200,13 @@ while also extracting a transaction that spends the `p2wpkh`s unspent outputs:
0 commit comments