|
87 | 87 | { "exec": "./syscoin-tx", |
88 | 88 | "args": |
89 | 89 | ["-create", |
90 | | - "outaddr=1:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o:garbage"], |
| 90 | + "outaddr=1:Xdak8YsJz8tm1iHFmycfTyKeUvHgfbdpyw:garbage"], |
91 | 91 | "return_code": 1, |
92 | 92 | "error_txt": "error: TX output missing or too many separators", |
93 | 93 | "description": "Malformed outaddr argument (too many separators). Expected to fail." |
|
103 | 103 | { "exec": "./syscoin-tx", |
104 | 104 | "args": |
105 | 105 | ["-create", |
106 | | - "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:W:non53nse"], |
| 106 | + "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:S:non53nse"], |
107 | 107 | "return_code": 1, |
108 | 108 | "error_txt": "error: TX output missing or too many separators", |
109 | 109 | "description": "Malformed outpubkey argument (too many separators). Expected to fail." |
|
114 | 114 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", |
115 | 115 | "in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18", |
116 | 116 | "in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1", |
117 | | - "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o", |
118 | | - "outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"], |
| 117 | + "outaddr=0.18:Xdak8YsJz8tm1iHFmycfTyKeUvHgfbdpyw", |
| 118 | + "outaddr=4:XxppMBDQ6SiJrKcBrAy4WkkNdrxDBfzFdZ"], |
119 | 119 | "output_cmp": "txcreate1.hex", |
120 | 120 | "description": "Creates a new transaction with three inputs and two outputs" |
121 | 121 | }, |
|
126 | 126 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", |
127 | 127 | "in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18", |
128 | 128 | "in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1", |
129 | | - "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o", |
130 | | - "outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"], |
| 129 | + "outaddr=0.18:Xdak8YsJz8tm1iHFmycfTyKeUvHgfbdpyw", |
| 130 | + "outaddr=4:XxppMBDQ6SiJrKcBrAy4WkkNdrxDBfzFdZ"], |
131 | 131 | "output_cmp": "txcreate1.json", |
132 | 132 | "description": "Creates a new transaction with three inputs and two outputs (output in json)" |
133 | 133 | }, |
|
141 | 141 | "output_cmp": "txcreate2.json", |
142 | 142 | "description": "Creates a new transaction with a single empty output script (output in json)" |
143 | 143 | }, |
144 | | - { "exec": "./syscoin-tx", |
145 | | - "args": ["02000000000100000000000000000000000000"], |
146 | | - "output_cmp": "txcreate2.hex", |
147 | | - "description": "Parses a transaction with no inputs and a single output script" |
148 | | - }, |
149 | | - { "exec": "./syscoin-tx", |
150 | | - "args": ["-json", "02000000000100000000000000000000000000"], |
151 | | - "output_cmp": "txcreate2.json", |
152 | | - "description": "Parses a transaction with no inputs and a single output script (output in json)" |
153 | | - }, |
154 | 144 | { "exec": "./syscoin-tx", |
155 | 145 | "args": ["-create", "outscript=0:OP_DROP", "nversion=1"], |
156 | 146 | "output_cmp": "txcreatescript1.hex", |
|
172 | 162 | "description": "Create a new transaction with a single output script (OP_DROP) in a P2SH (output as json)" |
173 | 163 | }, |
174 | 164 | { "exec": "./syscoin-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": "./syscoin-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": "./syscoin-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" |
| 165 | + "args": ["02000000000100000000000000000000000000"], |
| 166 | + "output_cmp": "txcreate2.hex", |
| 167 | + "description": "Parses a transation with no inputs and a single output script" |
188 | 168 | }, |
189 | 169 | { "exec": "./syscoin-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)" |
| 170 | + "args": ["-json", "02000000000100000000000000000000000000"], |
| 171 | + "output_cmp": "txcreate2.json", |
| 172 | + "description": "Parses a transation with no inputs and a single output script (output in json)" |
193 | 173 | }, |
194 | 174 | { "exec": "./syscoin-tx", |
195 | 175 | "args": |
196 | 176 | ["-create", "nversion=1", |
197 | 177 | "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0", |
198 | | - "set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]", |
| 178 | + "set=privatekeys:[\"7qYrzJZWqnyCWMYswFcqaRJypGdVceudXPSxmZKsngN7fyo7aAV\"]", |
199 | 179 | "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]", |
200 | 180 | "sign=ALL", |
201 | | - "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"], |
| 181 | + "outaddr=0.001:XijDvbYpPmznwgpWD3DkdYNfGmRP2KoVSk"], |
202 | 182 | "output_cmp": "txcreatesignv1.hex", |
203 | 183 | "description": "Creates a new v1 transaction with a single input and a single output, and then signs the transaction" |
204 | 184 | }, |
|
207 | 187 | ["-json", |
208 | 188 | "-create", "nversion=1", |
209 | 189 | "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0", |
210 | | - "set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]", |
| 190 | + "set=privatekeys:[\"7qYrzJZWqnyCWMYswFcqaRJypGdVceudXPSxmZKsngN7fyo7aAV\"]", |
211 | 191 | "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]", |
212 | 192 | "sign=ALL", |
213 | | - "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"], |
| 193 | + "outaddr=0.001:XijDvbYpPmznwgpWD3DkdYNfGmRP2KoVSk"], |
214 | 194 | "output_cmp": "txcreatesignv1.json", |
215 | 195 | "description": "Creates a new v1 transaction with a single input and a single output, and then signs the transaction (output in json)" |
216 | 196 | }, |
217 | 197 | { "exec": "./syscoin-tx", |
218 | 198 | "args": |
219 | 199 | ["-create", |
220 | 200 | "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0", |
221 | | - "set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]", |
| 201 | + "set=privatekeys:[\"7qYrzJZWqnyCWMYswFcqaRJypGdVceudXPSxmZKsngN7fyo7aAV\"]", |
222 | 202 | "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]", |
223 | 203 | "sign=ALL", |
224 | | - "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"], |
| 204 | + "outaddr=0.001:XijDvbYpPmznwgpWD3DkdYNfGmRP2KoVSk"], |
225 | 205 | "output_cmp": "txcreatesignv2.hex", |
226 | 206 | "description": "Creates a new transaction with a single input and a single output, and then signs the transaction" |
227 | 207 | }, |
|
237 | 217 | "output_cmp": "txcreateoutpubkey1.json", |
238 | 218 | "description": "Creates a new transaction with a single pay-to-pubkey output (output as json)" |
239 | 219 | }, |
240 | | - { "exec": "./syscoin-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": "./syscoin-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": "./syscoin-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": "./syscoin-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": "./syscoin-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 | 220 | { "exec": "./syscoin-tx", |
272 | 221 | "args": |
273 | 222 | ["-create", |
|
290 | 239 | "args": |
291 | 240 | ["-create", |
292 | 241 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", |
293 | | - "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o", |
| 242 | + "outaddr=0.18:XijDvbYpPmznwgpWD3DkdYNfGmRP2KoVSk", |
294 | 243 | "outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"], |
295 | 244 | "output_cmp": "txcreatedata1.hex", |
296 | 245 | "description": "Creates a new transaction with one input, one address output and one data output" |
|
300 | 249 | ["-json", |
301 | 250 | "-create", "nversion=1", |
302 | 251 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", |
303 | | - "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o", |
| 252 | + "outaddr=0.18:Xdak8YsJz8tm1iHFmycfTyKeUvHgfbdpyw", |
304 | 253 | "outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"], |
305 | 254 | "output_cmp": "txcreatedata1.json", |
306 | 255 | "description": "Creates a new v1 transaction with one input, one address output and one data output (output in json)" |
|
309 | 258 | "args": |
310 | 259 | ["-create", |
311 | 260 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", |
312 | | - "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o", |
| 261 | + "outaddr=0.18:XijDvbYpPmznwgpWD3DkdYNfGmRP2KoVSk", |
313 | 262 | "outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"], |
314 | 263 | "output_cmp": "txcreatedata2.hex", |
315 | 264 | "description": "Creates a new transaction with one input, one address output and one data (zero value) output" |
|
319 | 268 | ["-json", |
320 | 269 | "-create", |
321 | 270 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", |
322 | | - "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o", |
| 271 | + "outaddr=0.18:Xdak8YsJz8tm1iHFmycfTyKeUvHgfbdpyw", |
323 | 272 | "outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"], |
324 | 273 | "output_cmp": "txcreatedata2.json", |
325 | 274 | "description": "Creates a new transaction with one input, one address output and one data (zero value) output (output in json)" |
|
328 | 277 | "args": |
329 | 278 | ["-create", |
330 | 279 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293", |
331 | | - "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"], |
| 280 | + "outaddr=0.18:XijDvbYpPmznwgpWD3DkdYNfGmRP2KoVSk"], |
332 | 281 | "output_cmp": "txcreatedata_seq0.hex", |
333 | 282 | "description": "Creates a new transaction with one input with sequence number and one address output" |
334 | 283 | }, |
|
337 | 286 | ["-json", |
338 | 287 | "-create", |
339 | 288 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293", |
340 | | - "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"], |
| 289 | + "outaddr=0.18:Xdak8YsJz8tm1iHFmycfTyKeUvHgfbdpyw"], |
341 | 290 | "output_cmp": "txcreatedata_seq0.json", |
342 | 291 | "description": "Creates a new transaction with one input with sequence number and one address output (output in json)" |
343 | 292 | }, |
|
375 | 324 | "args": ["-json", "-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:S", "nversion=1"], |
376 | 325 | "output_cmp": "txcreatemultisig2.json", |
377 | 326 | "description": "Creates a new transaction with a single 2-of-3 multisig in a P2SH output (output in json)" |
378 | | - }, |
379 | | - { "exec": "./syscoin-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": "./syscoin-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": "./syscoin-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": "./syscoin-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": "./syscoin-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": "./syscoin-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 | 327 | } |
410 | 328 | ] |
0 commit comments