@@ -90,7 +90,7 @@ the command line in case `bitcoin-cli` is used.
90
90
Setup:
91
91
- All three call ` getnewaddress ` to create a new address; call these addresses
92
92
* Aalice* , * Abob* , and * Acarol* .
93
- - All three call ` getaddressinfo X ` , with * X* their respective address, and
93
+ - All three call ` getaddressinfo "X" ` , with * X* their respective address, and
94
94
remember the corresponding public keys. Call these public keys * Kalice* ,
95
95
* Kbob* , and * Kcarol* .
96
96
- All three now run ` addmultisigaddress 2 ["Kalice","Kbob","Kcarol"] ` to teach
@@ -105,28 +105,28 @@ Setup:
105
105
output. Again, it may be necessary to explicitly specify the addresstype
106
106
in order to get a result that matches. This command won't enable them to
107
107
initiate transactions later, however.
108
- - They can now give out * D * as address others can pay to.
108
+ - They can now give out * Amulti * as address others can pay to.
109
109
110
110
Later, when * V* BTC has been received on * Amulti* , and Bob and Carol want to
111
111
move the coins in their entirety to address * Asend* , with no change. Alice
112
112
does not need to be involved.
113
113
- One of them - let's assume Carol here - initiates the creation. She runs
114
- ` walletcreatefundedpsbt [] {"Asend":V} 0 false {"subtractFeeFromOutputs":[0], "includeWatching":true} ` .
115
- We call the resulting PSBT * P* . P does not contain any signatures.
114
+ ` walletcreatefundedpsbt [] {"Asend":V} 0 {"subtractFeeFromOutputs":[0], "includeWatching":true} ` .
115
+ We call the resulting PSBT * P* . * P * does not contain any signatures.
116
116
- Carol needs to sign the transaction herself. In order to do so, she runs
117
- ` walletprocesspsbt P ` , and gives the resulting PSBT * P2* to Bob.
117
+ ` walletprocesspsbt "P" ` , and gives the resulting PSBT * P2* to Bob.
118
118
- Bob inspects the PSBT using ` decodepsbt "P2" ` to determine if the transaction
119
119
has indeed just the expected input, and an output to * Asend* , and the fee is
120
120
reasonable. If he agrees, he calls ` walletprocesspsbt "P2" ` to sign. The
121
121
resulting PSBT * P3* contains both Carol's and Bob's signature.
122
- - Now anyone can call ` finalizepsbt "P2 " ` to extract a fully signed transaction
122
+ - Now anyone can call ` finalizepsbt "P3 " ` to extract a fully signed transaction
123
123
* T* .
124
124
- Finally anyone can broadcast the transaction using ` sendrawtransaction "T" ` .
125
125
126
126
In case there are more signers, it may be advantageous to let them all sign in
127
127
parallel, rather passing the PSBT from one signer to the next one. In the
128
128
above example this would translate to Carol handing a copy of * P* to each signer
129
- separately. They can then all invoke ` walletprocesspsbt P ` , and end up with
129
+ separately. They can then all invoke ` walletprocesspsbt "P" ` , and end up with
130
130
their individually-signed PSBT structures. They then all send those back to
131
131
Carol (or anyone) who can combine them using ` combinepsbt ` . The last two steps
132
132
(` finalizepsbt ` and ` sendrawtransaction ` ) remain unchanged.
0 commit comments