[wallet] getreceivedbyaddress should return error if address is not mine
[bitcoinplatinum.git] / test / util / data / bitcoin-util-test.json
blob89b28bba6ced9ccd0633221405bc27cfaeac23dd
2   { "exec": "./bitcoin-tx",
3     "args": ["-create", "nversion=1"],
4     "output_cmp": "blanktxv1.hex",
5     "description": "Creates a blank v1 transaction"
6   },
7   { "exec": "./bitcoin-tx",
8     "args": ["-json","-create", "nversion=1"],
9     "output_cmp": "blanktxv1.json",
10     "description": "Creates a blank v1 transaction (output in json)"
11   },
12   { "exec": "./bitcoin-tx",
13     "args": ["-"],
14     "input": "blanktxv2.hex",
15     "output_cmp": "blanktxv2.hex",
16     "description": "Creates a blank transaction when nothing is piped into bitcoin-tx"
17   },
18   { "exec": "./bitcoin-tx",
19     "args": ["-json","-create"],
20     "output_cmp": "blanktxv2.json",
21     "description": "Creates a blank transaction (output in json)"
22   },
23   { "exec": "./bitcoin-tx",
24     "args": ["-json","-"],
25     "input": "blanktxv2.hex",
26     "output_cmp": "blanktxv2.json",
27     "description": "Creates a blank transaction when nothing is piped into bitcoin-tx (output in json)"
28   },
29   { "exec": "./bitcoin-tx",
30     "args": ["-", "delin=1"],
31     "input": "tx394b54bb.hex",
32     "output_cmp": "tt-delin1-out.hex",
33     "description": "Deletes a single input from a transaction"
34   },
35   { "exec": "./bitcoin-tx",
36     "args": ["-json", "-", "delin=1"],
37     "input": "tx394b54bb.hex",
38     "output_cmp": "tt-delin1-out.json",
39     "description": "Deletes a single input from a transaction (output in json)"
40   },
41   { "exec": "./bitcoin-tx",
42     "args": ["-", "delin=31"],
43     "input": "tx394b54bb.hex",
44     "return_code": 1,
45     "error_txt": "error: Invalid TX input index '31'",
46     "description": "Attempts to delete an input with a bad index from a transaction. Expected to fail."
47   },
48   { "exec": "./bitcoin-tx",
49     "args": ["-", "delout=1"],
50     "input": "tx394b54bb.hex",
51     "output_cmp": "tt-delout1-out.hex",
52     "description": "Deletes a single output from a transaction"
53   },
54   { "exec": "./bitcoin-tx",
55     "args": ["-json", "-", "delout=1"],
56     "input": "tx394b54bb.hex",
57     "output_cmp": "tt-delout1-out.json",
58     "description": "Deletes a single output from a transaction (output in json)"
59   },
60   { "exec": "./bitcoin-tx",
61     "args": ["-", "delout=2"],
62     "input": "tx394b54bb.hex",
63     "return_code": 1,
64     "error_txt": "error: Invalid TX output index '2'",
65     "description": "Attempts to delete an output with a bad index from a transaction. Expected to fail."
66   },
67   { "exec": "./bitcoin-tx",
68     "args": ["-", "locktime=317000"],
69     "input": "tx394b54bb.hex",
70     "output_cmp": "tt-locktime317000-out.hex",
71     "description": "Adds an nlocktime to a transaction"
72   },
73   { "exec": "./bitcoin-tx",
74     "args": ["-json", "-", "locktime=317000"],
75     "input": "tx394b54bb.hex",
76     "output_cmp": "tt-locktime317000-out.json",
77     "description": "Adds an nlocktime to a transaction (output in json)"
78   },
79   { "exec": "./bitcoin-tx",
80     "args":
81     ["-create",
82      "outaddr=1"],
83     "return_code": 1,
84     "error_txt": "error: TX output missing or too many separators",
85     "description": "Malformed outaddr argument (no address specified). Expected to fail."
86   },
87   { "exec": "./bitcoin-tx",
88     "args":
89     ["-create",
90      "outaddr=1:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o:garbage"],
91     "return_code": 1,
92     "error_txt": "error: TX output missing or too many separators",
93     "description": "Malformed outaddr argument (too many separators). Expected to fail."
94   },
95   { "exec": "./bitcoin-tx",
96     "args":
97     ["-create",
98      "outpubkey=0"],
99     "return_code": 1,
100     "error_txt": "error: TX output missing or too many separators",
101     "description": "Malformed outpubkey argument (no pubkey specified). Expected to fail."
102   },
103   { "exec": "./bitcoin-tx",
104     "args":
105     ["-create",
106      "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:W:non53nse"],
107     "return_code": 1,
108     "error_txt": "error: TX output missing or too many separators",
109     "description": "Malformed outpubkey argument (too many separators). Expected to fail."
110   },
111   { "exec": "./bitcoin-tx",
112     "args":
113     ["-create",
114      "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
115      "in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18",
116      "in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",
117      "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
118      "outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"],
119     "output_cmp": "txcreate1.hex",
120     "description": "Creates a new transaction with three inputs and two outputs"
121   },
122   { "exec": "./bitcoin-tx",
123     "args":
124     ["-json",
125      "-create",
126      "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
127      "in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18",
128      "in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",
129      "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
130      "outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"],
131     "output_cmp": "txcreate1.json",
132     "description": "Creates a new transaction with three inputs and two outputs (output in json)"
133   },
134   { "exec": "./bitcoin-tx",
135     "args": ["-create", "outscript=0:"],
136     "output_cmp": "txcreate2.hex",
137     "description": "Creates a new transaction with a single empty output script"
138   },
139   { "exec": "./bitcoin-tx",
140     "args": ["-json", "-create", "outscript=0:"],
141     "output_cmp": "txcreate2.json",
142     "description": "Creates a new transaction with a single empty output script (output in json)"
143   },
144   { "exec": "./bitcoin-tx",
145     "args": ["02000000000100000000000000000000000000"],
146     "output_cmp": "txcreate2.hex",
147     "description": "Parses a transation with no inputs and a single output script"
148   },
149   { "exec": "./bitcoin-tx",
150     "args": ["-json", "02000000000100000000000000000000000000"],
151     "output_cmp": "txcreate2.json",
152     "description": "Parses a transation with no inputs and a single output script (output in json)"
153   },
154   { "exec": "./bitcoin-tx",
155     "args": ["-create", "outscript=0:OP_DROP", "nversion=1"],
156     "output_cmp": "txcreatescript1.hex",
157     "description": "Create a new transaction with a single output script (OP_DROP)"
158   },
159   { "exec": "./bitcoin-tx",
160     "args": ["-json", "-create", "outscript=0:OP_DROP", "nversion=1"],
161     "output_cmp": "txcreatescript1.json",
162     "description": "Create a new transaction with a single output script (OP_DROP) (output as json)"
163   },
164   { "exec": "./bitcoin-tx",
165     "args": ["-create", "outscript=0:OP_DROP:S", "nversion=1"],
166     "output_cmp": "txcreatescript2.hex",
167     "description": "Create a new transaction with a single output script (OP_DROP) in a P2SH"
168   },
169   { "exec": "./bitcoin-tx",
170     "args": ["-json", "-create", "outscript=0:OP_DROP:S", "nversion=1"],
171     "output_cmp": "txcreatescript2.json",
172     "description": "Create a new transaction with a single output script (OP_DROP) in a P2SH (output as json)"
173   },
174   { "exec": "./bitcoin-tx",
175     "args": ["-create", "outscript=0:OP_DROP:W", "nversion=1"],
176     "output_cmp": "txcreatescript3.hex",
177     "description": "Create a new transaction with a single output script (OP_DROP) in a P2WSH"
178   },
179   { "exec": "./bitcoin-tx",
180     "args": ["-json", "-create", "outscript=0:OP_DROP:W", "nversion=1"],
181     "output_cmp": "txcreatescript3.json",
182     "description": "Create a new transaction with a single output script (OP_DROP) in a P2WSH (output as json)"
183   },
184   { "exec": "./bitcoin-tx",
185     "args": ["-create", "outscript=0:OP_DROP:WS", "nversion=1"],
186     "output_cmp": "txcreatescript4.hex",
187     "description": "Create a new transaction with a single output script (OP_DROP) in a P2WSH, wrapped in a P2SH"
188   },
189   { "exec": "./bitcoin-tx",
190     "args": ["-json", "-create", "outscript=0:OP_DROP:WS", "nversion=1"],
191     "output_cmp": "txcreatescript4.json",
192     "description": "Create a new transaction with a single output script (OP_DROP) in a P2SH, wrapped in a P2SH (output as json)"
193   },
194   { "exec": "./bitcoin-tx",
195     "args":
196     ["-create", "nversion=1",
197      "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0",
198      "set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]",
199      "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
200      "sign=ALL",
201      "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"],
202     "output_cmp": "txcreatesignv1.hex",
203     "description": "Creates a new v1 transaction with a single input and a single output, and then signs the transaction"
204   },
205   { "exec": "./bitcoin-tx",
206     "args":
207     ["-json",
208      "-create", "nversion=1",
209      "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0",
210      "set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]",
211      "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
212      "sign=ALL",
213      "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"],
214     "output_cmp": "txcreatesignv1.json",
215     "description": "Creates a new v1 transaction with a single input and a single output, and then signs the transaction (output in json)"
216   },
217   { "exec": "./bitcoin-tx",
218     "args":
219     ["-create",
220       "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0",
221       "set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]",
222       "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
223       "sign=ALL",
224       "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"],
225     "output_cmp": "txcreatesignv2.hex",
226     "description": "Creates a new transaction with a single input and a single output, and then signs the transaction"
227   },
228   { "exec": "./bitcoin-tx",
229     "args":
230     ["-create", "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397", "nversion=1"],
231     "output_cmp": "txcreateoutpubkey1.hex",
232     "description": "Creates a new transaction with a single pay-to-pubkey output"
233   },
234   { "exec": "./bitcoin-tx",
235     "args":
236     ["-json", "-create", "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397", "nversion=1"],
237     "output_cmp": "txcreateoutpubkey1.json",
238     "description": "Creates a new transaction with a single pay-to-pubkey output (output as json)"
239   },
240   { "exec": "./bitcoin-tx",
241     "args":
242     ["-create", "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:W", "nversion=1"],
243     "output_cmp": "txcreateoutpubkey2.hex",
244     "description": "Creates a new transaction with a single pay-to-witness-pubkey output"
245   },
246   { "exec": "./bitcoin-tx",
247     "args":
248     ["-json", "-create", "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:W", "nversion=1"],
249     "output_cmp": "txcreateoutpubkey2.json",
250     "description": "Creates a new transaction with a single pay-to-witness-pubkey output (output as json)"
251   },
252   { "exec": "./bitcoin-tx",
253     "args":
254     ["-create", "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:WS", "nversion=1"],
255     "output_cmp": "txcreateoutpubkey3.hex",
256     "description": "Creates a new transaction with a single pay-to-witness-pubkey, wrapped in P2SH output"
257   },
258   { "exec": "./bitcoin-tx",
259     "args":
260     ["-json", "-create", "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:WS", "nversion=1"],
261     "output_cmp": "txcreateoutpubkey3.json",
262     "description": "Creates a new transaction with a single pay-to-pub-key output, wrapped in P2SH (output as json)"
263   },
264   { "exec": "./bitcoin-tx",
265     "args":
266     ["-json", "-create", "outpubkey=0:047d1368ba7ae01c94bc32293efd70bd7e3be7aa7912d07d0b1c659c1008d179b8642f5fb90f47580feb29f045e216ff5a4716d3a0fed36da414d332046303c44a:WS", "nversion=1"],
267     "return_code": 1,
268     "error_txt": "error: Uncompressed pubkeys are not useable for SegWit outputs",
269     "description": "Creates a new transaction with a single pay-to-pub-key output, wrapped in P2SH (output as json)"
270   },
271   { "exec": "./bitcoin-tx",
272     "args":
273     ["-create",
274      "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
275      "outdata=4:badhexdata"],
276     "return_code": 1,
277     "error_txt": "error: invalid TX output data",
278     "description": "Attempts to create a new transaction with one input and an output with malformed hex data. Expected to fail"
279   },
280   { "exec": "./bitcoin-tx",
281     "args":
282     ["-create",
283      "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
284      "outdata=badhexdata"],
285     "return_code": 1,
286     "error_txt": "error: invalid TX output data",
287     "description": "Attempts to create a new transaction with one input and an output with no value and malformed hex data. Expected to fail"
288   },
289   { "exec": "./bitcoin-tx",
290     "args":
291     ["-create",
292      "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
293      "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
294      "outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
295     "output_cmp": "txcreatedata1.hex",
296     "description": "Creates a new transaction with one input, one address output and one data output"
297   },
298   { "exec": "./bitcoin-tx",
299     "args":
300     ["-json",
301      "-create", "nversion=1",
302      "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
303      "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
304      "outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
305     "output_cmp": "txcreatedata1.json",
306     "description": "Creates a new v1 transaction with one input, one address output and one data output (output in json)"
307   },
308   { "exec": "./bitcoin-tx",
309     "args":
310     ["-create",
311      "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
312      "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
313      "outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
314     "output_cmp": "txcreatedata2.hex",
315     "description": "Creates a new transaction with one input, one address output and one data (zero value) output"
316   },
317   { "exec": "./bitcoin-tx",
318     "args":
319     ["-json",
320      "-create",
321      "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
322      "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
323      "outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
324     "output_cmp": "txcreatedata2.json",
325     "description": "Creates a new transaction with one input, one address output and one data (zero value) output (output in json)"
326   },
327   { "exec": "./bitcoin-tx",
328     "args":
329     ["-create",
330      "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293",
331      "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"],
332     "output_cmp": "txcreatedata_seq0.hex",
333     "description": "Creates a new transaction with one input with sequence number and one address output"
334   },
335   { "exec": "./bitcoin-tx",
336     "args":
337     ["-json",
338      "-create",
339      "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293",
340      "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"],
341     "output_cmp": "txcreatedata_seq0.json",
342     "description": "Creates a new transaction with one input with sequence number and one address output (output in json)"
343   },
344   { "exec": "./bitcoin-tx",
345     "args":
346     ["01000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000fdffffff0180a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac00000000",
347      "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:1"],
348     "output_cmp": "txcreatedata_seq1.hex",
349     "description": "Adds a new input with sequence number to a transaction"
350   },
351   { "exec": "./bitcoin-tx",
352     "args":
353     ["-json",
354      "01000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000fdffffff0180a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac00000000",
355      "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:1"],
356     "output_cmp": "txcreatedata_seq1.json",
357     "description": "Adds a new input with sequence number to a transaction (output in json)"
358   },
359   { "exec": "./bitcoin-tx",
360     "args": ["-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485", "nversion=1"],
361     "output_cmp": "txcreatemultisig1.hex",
362     "description": "Creates a new transaction with a single 2-of-3 multisig output"
363   },
364   { "exec": "./bitcoin-tx",
365     "args": ["-json", "-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485", "nversion=1"],
366     "output_cmp": "txcreatemultisig1.json",
367     "description": "Creates a new transaction with a single 2-of-3 multisig output (output in json)"
368   },
369   { "exec": "./bitcoin-tx",
370     "args": ["-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:S", "nversion=1"],
371     "output_cmp": "txcreatemultisig2.hex",
372     "description": "Creates a new transaction with a single 2-of-3 multisig in a P2SH output"
373   },
374   { "exec": "./bitcoin-tx",
375     "args": ["-json", "-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:S", "nversion=1"],
376     "output_cmp": "txcreatemultisig2.json",
377     "description": "Creates a new transaction with a single 2-of-3 multisig in a P2SH output (output in json)"
378   },
379   { "exec": "./bitcoin-tx",
380     "args": ["-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:W", "nversion=1"],
381     "output_cmp": "txcreatemultisig3.hex",
382     "description": "Creates a new transaction with a single 2-of-3 multisig in a P2WSH output"
383   },
384   { "exec": "./bitcoin-tx",
385     "args": ["-json", "-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:W", "nversion=1"],
386     "output_cmp": "txcreatemultisig3.json",
387     "description": "Creates a new transaction with a single 2-of-3 multisig in a P2WSH output (output in json)"
388   },
389   { "exec": "./bitcoin-tx",
390     "args": ["-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:WS", "nversion=1"],
391     "output_cmp": "txcreatemultisig4.hex",
392     "description": "Creates a new transaction with a single 2-of-3 multisig in a P2WSH output, wrapped in P2SH"
393   },
394   { "exec": "./bitcoin-tx",
395     "args": ["-json", "-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:WS", "nversion=1"],
396     "output_cmp": "txcreatemultisig4.json",
397     "description": "Creates a new transaction with a single 2-of-3 multisig in a P2WSH output, wrapped in P2SH (output in json)"
398   },
399   { "exec": "./bitcoin-tx",
400     "args": ["-json", "-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:047d1368ba7ae01c94bc32293efd70bd7e3be7aa7912d07d0b1c659c1008d179b8642f5fb90f47580feb29f045e216ff5a4716d3a0fed36da414d332046303c44a:S"],
401     "output_cmp": "txcreatemultisig5.json",
402     "description": "Uncompressed pubkeys should work just fine for non-witness outputs"
403   },
404   { "exec": "./bitcoin-tx",
405     "args": ["-json", "-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:047d1368ba7ae01c94bc32293efd70bd7e3be7aa7912d07d0b1c659c1008d179b8642f5fb90f47580feb29f045e216ff5a4716d3a0fed36da414d332046303c44a:WS"],
406     "return_code": 1,
407     "error_txt": "error: Uncompressed pubkeys are not useable for SegWit outputs",
408     "description": "Ensure adding witness outputs with uncompressed pubkeys fails"
409   }