2014-08-19 10:28:58 -04:00
[
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-create" , "nversion=1" ] ,
2016-08-26 23:24:23 +01:00
"output_cmp" : "blanktxv1.hex" ,
"description" : "Creates a blank v1 transaction"
2014-08-18 23:14:29 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-create" , "nversion=1" ] ,
2016-12-21 13:40:14 -08:00
"output_cmp" : "blanktxv1.json" ,
"description" : "Creates a blank v1 transaction (output in json)"
2016-09-28 13:36:36 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-" ] ,
2016-08-26 23:24:23 +01:00
"input" : "blanktxv2.hex" ,
"output_cmp" : "blanktxv2.hex" ,
2019-03-21 12:40:38 +00:00
"description" : "Creates a blank transaction when nothing is piped into elements-tx"
2014-08-19 23:15:58 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-create" ] ,
2016-12-21 13:40:14 -08:00
"output_cmp" : "blanktxv2.json" ,
"description" : "Creates a blank transaction (output in json)"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-" ] ,
2016-08-26 23:24:23 +01:00
"input" : "blanktxv2.hex" ,
"output_cmp" : "blanktxv2.json" ,
2019-03-21 12:40:38 +00:00
"description" : "Creates a blank transaction when nothing is piped into elements-tx (output in json)"
2016-09-28 13:36:36 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-create" , "nversion=1foo" ] ,
2018-07-06 15:54:03 +02:00
"return_code" : 1 ,
"error_txt" : "error: Invalid TX version requested" ,
"description" : "Tests the check for invalid nversion value"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-" , "delin=1" ] ,
2014-08-19 23:15:58 -04:00
"input" : "tx394b54bb.hex" ,
2016-10-04 13:02:06 -04:00
"output_cmp" : "tt-delin1-out.hex" ,
"description" : "Deletes a single input from a transaction"
2014-08-19 23:15:58 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-" , "delin=1" ] ,
2016-09-28 13:36:36 -04:00
"input" : "tx394b54bb.hex" ,
2016-10-04 13:02:06 -04:00
"output_cmp" : "tt-delin1-out.json" ,
"description" : "Deletes a single input from a transaction (output in json)"
2016-09-28 13:36:36 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-" , "delin=31" ] ,
2014-08-19 23:15:58 -04:00
"input" : "tx394b54bb.hex" ,
2016-10-04 13:02:06 -04:00
"return_code" : 1 ,
2017-03-29 10:20:10 -04:00
"error_txt" : "error: Invalid TX input index '31'" ,
2016-10-04 13:02:06 -04:00
"description" : "Attempts to delete an input with a bad index from a transaction. Expected to fail."
2014-08-19 23:15:58 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-" , "delin=1foo" ] ,
2018-07-06 15:54:03 +02:00
"input" : "tx394b54bb.hex" ,
"return_code" : 1 ,
"error_txt" : "error: Invalid TX input index" ,
"description" : "Tests the check for an invalid input index with delin"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-" , "delout=1" ] ,
2014-08-19 23:15:58 -04:00
"input" : "tx394b54bb.hex" ,
2016-10-04 13:02:06 -04:00
"output_cmp" : "tt-delout1-out.hex" ,
"description" : "Deletes a single output from a transaction"
2014-08-19 23:15:58 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-" , "delout=1" ] ,
2016-09-28 13:36:36 -04:00
"input" : "tx394b54bb.hex" ,
2016-10-04 13:02:06 -04:00
"output_cmp" : "tt-delout1-out.json" ,
"description" : "Deletes a single output from a transaction (output in json)"
2016-09-28 13:36:36 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-" , "delout=2" ] ,
2014-08-19 23:15:58 -04:00
"input" : "tx394b54bb.hex" ,
2016-10-04 13:02:06 -04:00
"return_code" : 1 ,
2017-03-29 10:20:10 -04:00
"error_txt" : "error: Invalid TX output index '2'" ,
2016-10-04 13:02:06 -04:00
"description" : "Attempts to delete an output with a bad index from a transaction. Expected to fail."
2014-08-19 23:15:58 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-" , "delout=1foo" ] ,
2018-07-06 15:54:03 +02:00
"input" : "tx394b54bb.hex" ,
"return_code" : 1 ,
"error_txt" : "error: Invalid TX output index" ,
"description" : "Tests the check for an invalid output index with delout"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-" , "locktime=317000" ] ,
2014-08-19 23:15:58 -04:00
"input" : "tx394b54bb.hex" ,
2016-10-04 13:02:06 -04:00
"output_cmp" : "tt-locktime317000-out.hex" ,
"description" : "Adds an nlocktime to a transaction"
2014-08-19 23:15:58 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-" , "locktime=317000" ] ,
2016-09-28 13:36:36 -04:00
"input" : "tx394b54bb.hex" ,
2016-10-04 13:02:06 -04:00
"output_cmp" : "tt-locktime317000-out.json" ,
"description" : "Adds an nlocktime to a transaction (output in json)"
2016-09-28 13:36:36 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-create" , "locktime=317000foo" ] ,
2018-07-06 15:54:03 +02:00
"return_code" : 1 ,
"error_txt" : "error: Invalid TX locktime requested" ,
"description" : "Tests the check for invalid locktime value"
} ,
2019-05-01 19:15:40 +01:00
{ "exec" : "./elements-tx" ,
2018-09-24 10:59:17 -04:00
"args" :
2019-05-01 19:15:40 +01:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" ,
2018-09-24 10:59:17 -04:00
"in=Z897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0" ] ,
"return_code" : 1 ,
"error_txt" : "error: invalid TX input txid" ,
"description" : "Tests the check for an invalid txid invalid hex"
} ,
2019-05-01 19:15:40 +01:00
{ "exec" : "./elements-tx" ,
2018-09-24 10:59:17 -04:00
"args" :
2019-05-01 19:15:40 +01:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" ,
2018-09-24 10:59:17 -04:00
"in=5897de6bd6:0" ] ,
"return_code" : 1 ,
"error_txt" : "error: invalid TX input txid" ,
"description" : "Tests the check for an invalid txid valid hex but too short"
} ,
2019-05-01 19:15:40 +01:00
{ "exec" : "./elements-tx" ,
2018-09-24 10:59:17 -04:00
"args" :
2019-05-01 19:15:40 +01:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" ,
2018-09-24 10:59:17 -04:00
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f12:0" ] ,
"return_code" : 1 ,
"error_txt" : "error: invalid TX input txid" ,
"description" : "Tests the check for an invalid txid valid hex but too long"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2018-07-06 15:54:03 +02:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" ,
2018-07-06 15:54:03 +02:00
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0" ,
"replaceable=0foo" ] ,
"return_code" : 1 ,
"error_txt" : "error: Invalid TX input index" ,
"description" : "Tests the check for an invalid input index with replaceable"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2018-07-06 15:54:03 +02:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" ,
2018-07-06 15:54:03 +02:00
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0x" ] ,
"return_code" : 1 ,
"error_txt" : "error: invalid TX input vout" ,
"description" : "Tests the check for an invalid vout value when adding an input"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2017-03-29 10:53:11 -04:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" ,
2017-03-29 10:53:11 -04:00
"outaddr=1" ] ,
"return_code" : 1 ,
"error_txt" : "error: TX output missing or too many separators" ,
"description" : "Malformed outaddr argument (no address specified). Expected to fail."
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2017-03-29 10:53:11 -04:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" ,
2017-03-29 10:53:11 -04:00
"outaddr=1:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o:garbage" ] ,
"return_code" : 1 ,
2019-03-20 11:09:54 +00:00
"error_txt" : "error: TX output asset type invalid for BITCOIN serialization" ,
"description" : "Malformed outaddr argument (asset id for BITCOIN serialization). Expected to fail."
2017-03-29 10:53:11 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2017-03-29 10:53:11 -04:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" ,
2017-03-29 10:53:11 -04:00
"outpubkey=0" ] ,
"return_code" : 1 ,
"error_txt" : "error: TX output missing or too many separators" ,
"description" : "Malformed outpubkey argument (no pubkey specified). Expected to fail."
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2017-03-29 10:53:11 -04:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" ,
2017-03-29 10:53:11 -04:00
"outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:W:non53nse" ] ,
"return_code" : 1 ,
"error_txt" : "error: TX output missing or too many separators" ,
"description" : "Malformed outpubkey argument (too many separators). Expected to fail."
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2014-09-30 16:05:27 -04:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" ,
2014-08-19 23:15:58 -04:00
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0" ,
"in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18" ,
"in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1" ,
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o" ,
"outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46" ] ,
2016-10-04 13:02:06 -04:00
"output_cmp" : "txcreate1.hex" ,
"description" : "Creates a new transaction with three inputs and two outputs"
2014-09-14 06:01:51 +00:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2016-09-28 13:36:36 -04:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-json" ,
2016-09-28 13:36:36 -04:00
"-create" ,
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0" ,
"in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18" ,
"in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1" ,
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o" ,
"outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46" ] ,
2016-10-04 13:02:06 -04:00
"output_cmp" : "txcreate1.json" ,
"description" : "Creates a new transaction with three inputs and two outputs (output in json)"
2016-09-28 13:36:36 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-create" , "outscript=0:" ] ,
2016-10-04 13:02:06 -04:00
"output_cmp" : "txcreate2.hex" ,
"description" : "Creates a new transaction with a single empty output script"
2014-12-24 01:35:40 +00:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-create" , "outscript=0:" ] ,
2016-10-04 13:02:06 -04:00
"output_cmp" : "txcreate2.json" ,
"description" : "Creates a new transaction with a single empty output script (output in json)"
2016-09-28 13:36:36 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "02000000000100000000000000000000000000" ] ,
2016-09-29 10:14:05 -04:00
"output_cmp" : "txcreate2.hex" ,
2018-03-21 10:54:17 +01:00
"description" : "Parses a transaction with no inputs and a single output script"
2016-09-29 10:14:05 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-json" , "02000000000100000000000000000000000000" ] ,
2016-09-29 10:14:05 -04:00
"output_cmp" : "txcreate2.json" ,
2018-03-21 10:54:17 +01:00
"description" : "Parses a transaction with no inputs and a single output script (output in json)"
2016-09-29 10:14:05 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2020-03-27 12:10:31 +09:00
"args" : [ "-create" , "outscript=0:123badscript" ] ,
"return_code" : 1 ,
"error_txt" : "error: script parse error" ,
"description" : "Create a new transaction with an invalid output script"
} ,
2020-11-26 01:08:03 +00:00
{ "exec" : "./elements-tx" ,
2017-01-09 16:42:45 -05:00
"args" : [ "-create" , "outscript=0:OP_DROP" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreatescript1.hex" ,
"description" : "Create a new transaction with a single output script (OP_DROP)"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-create" , "outscript=0:OP_DROP" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreatescript1.json" ,
"description" : "Create a new transaction with a single output script (OP_DROP) (output as json)"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-create" , "outscript=0:OP_DROP:S" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreatescript2.hex" ,
"description" : "Create a new transaction with a single output script (OP_DROP) in a P2SH"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-create" , "outscript=0:OP_DROP:S" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreatescript2.json" ,
"description" : "Create a new transaction with a single output script (OP_DROP) in a P2SH (output as json)"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-create" , "outscript=0:OP_DROP:W" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreatescript3.hex" ,
"description" : "Create a new transaction with a single output script (OP_DROP) in a P2WSH"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-create" , "outscript=0:OP_DROP:W" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreatescript3.json" ,
"description" : "Create a new transaction with a single output script (OP_DROP) in a P2WSH (output as json)"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-create" , "outscript=0:OP_DROP:WS" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreatescript4.hex" ,
"description" : "Create a new transaction with a single output script (OP_DROP) in a P2WSH, wrapped in a P2SH"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-create" , "outscript=0:OP_DROP:WS" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreatescript4.json" ,
"description" : "Create a new transaction with a single output script (OP_DROP) in a P2SH, wrapped in a P2SH (output as json)"
} ,
2020-11-26 01:08:03 +00:00
{ "exec" : "./elements-tx" ,
2020-03-24 16:17:58 +09:00
"args" : [ "-create" , "outscript=0:9999999999" ] ,
"return_code" : 1 ,
"error_txt" : "error: script parse error: decimal numeric value only allowed in the range -0xFFFFFFFF...0xFFFFFFFF" ,
"description" : "Try to parse an output script with a decimal number above the allowed range"
} ,
2020-11-26 01:08:03 +00:00
{ "exec" : "./elements-tx" ,
2020-03-24 16:17:58 +09:00
"args" : [ "-create" , "outscript=0:4294967296" ] ,
"return_code" : 1 ,
"error_txt" : "error: script parse error: decimal numeric value only allowed in the range -0xFFFFFFFF...0xFFFFFFFF" ,
"description" : "Try to parse an output script with a decimal number just above the allowed range"
} ,
2020-11-26 01:08:03 +00:00
{ "exec" : "./elements-tx" ,
2020-03-24 16:17:58 +09:00
"args" : [ "-create" , "outscript=0:4294967295" ] ,
"output_cmp" : "txcreatescript5.hex" ,
"description" : "Try to parse an output script with a decimal number at the upper limit of the allowed range"
} ,
2020-11-26 01:08:03 +00:00
{ "exec" : "./elements-tx" ,
2020-03-24 16:17:58 +09:00
"args" : [ "-create" , "outscript=0:-9999999999" ] ,
"return_code" : 1 ,
"error_txt" : "error: script parse error: decimal numeric value only allowed in the range -0xFFFFFFFF...0xFFFFFFFF" ,
"description" : "Try to parse an output script with a decimal number below the allowed range"
} ,
2020-11-26 01:08:03 +00:00
{ "exec" : "./elements-tx" ,
2020-03-24 16:17:58 +09:00
"args" : [ "-create" , "outscript=0:-4294967296" ] ,
"return_code" : 1 ,
"error_txt" : "error: script parse error: decimal numeric value only allowed in the range -0xFFFFFFFF...0xFFFFFFFF" ,
"description" : "Try to parse an output script with a decimal number just below the allowed range"
} ,
2020-11-26 01:08:03 +00:00
{ "exec" : "./elements-tx" ,
2020-03-24 16:17:58 +09:00
"args" : [ "-create" , "outscript=0:-4294967295" ] ,
"output_cmp" : "txcreatescript6.hex" ,
"description" : "Try to parse an output script with a decimal number at the lower limit of the allowed range"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2014-12-24 01:35:40 +00:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" , "nversion=1" ,
2014-12-24 01:35:40 +00:00
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0" ,
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]" ,
2015-07-07 18:18:14 +02:00
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]" ,
2014-12-24 01:35:40 +00:00
"sign=ALL" ,
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7" ] ,
2016-08-26 23:24:23 +01:00
"output_cmp" : "txcreatesignv1.hex" ,
"description" : "Creates a new v1 transaction with a single input and a single output, and then signs the transaction"
2015-06-29 20:14:43 +02:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2016-09-28 13:36:36 -04:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-json" ,
2016-08-26 23:24:23 +01:00
"-create" , "nversion=1" ,
2016-09-28 13:36:36 -04:00
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0" ,
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]" ,
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]" ,
"sign=ALL" ,
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7" ] ,
2016-08-26 23:24:23 +01:00
"output_cmp" : "txcreatesignv1.json" ,
"description" : "Creates a new v1 transaction with a single input and a single output, and then signs the transaction (output in json)"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2016-08-26 23:24:23 +01:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" ,
2016-08-26 23:24:23 +01:00
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0" ,
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]" ,
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]" ,
"sign=ALL" ,
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7" ] ,
"output_cmp" : "txcreatesignv2.hex" ,
"description" : "Creates a new transaction with a single input and a single output, and then signs the transaction"
2016-09-28 13:36:36 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2018-07-06 15:54:03 +02:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" ,
2018-07-06 15:54:03 +02:00
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0" ,
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]" ,
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":\"0foo\",\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]" ,
"sign=ALL" ,
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7" ] ,
"return_code" : 1 ,
"error_txt" : "error: prevtxs internal object typecheck fail" ,
"description" : "Tests the check for invalid vout index in prevtxs for sign"
} ,
2019-05-01 19:15:40 +01:00
{ "exec" : "./elements-tx" ,
2018-09-24 10:59:17 -04:00
"args" :
2019-05-01 19:15:40 +01:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" ,
2018-09-24 10:59:17 -04:00
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0" ,
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]" ,
"set=prevtxs:[{\"txid\":\"Zd49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59412\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]" ,
"sign=ALL" ,
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7" ] ,
"return_code" : 1 ,
"error_txt" : "error: txid must be hexadecimal string (not 'Zd49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59412')" ,
"description" : "Tests the check for invalid txid due to invalid hex"
} ,
2019-05-01 19:15:40 +01:00
{ "exec" : "./elements-tx" ,
2018-09-24 10:59:17 -04:00
"args" :
2019-05-01 19:15:40 +01:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" ,
2018-09-24 10:59:17 -04:00
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0" ,
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]" ,
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc594\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]" ,
"sign=ALL" ,
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7" ] ,
"return_code" : 1 ,
"error_txt" : "error: txid must be hexadecimal string (not '4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc594')" ,
"description" : "Tests the check for invalid txid valid hex, but too short"
} ,
2019-05-01 19:15:40 +01:00
{ "exec" : "./elements-tx" ,
2018-09-24 10:59:17 -04:00
"args" :
2019-05-01 19:15:40 +01:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" ,
2018-09-24 10:59:17 -04:00
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0" ,
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]" ,
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc5948512\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]" ,
"sign=ALL" ,
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7" ] ,
"return_code" : 1 ,
"error_txt" : "error: txid must be hexadecimal string (not '4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc5948512')" ,
"description" : "Tests the check for invalid txid valid hex, but too long"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2016-10-04 15:40:41 -04:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" , "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreateoutpubkey1.hex" ,
"description" : "Creates a new transaction with a single pay-to-pubkey output"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2016-10-04 15:40:41 -04:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-create" , "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreateoutpubkey1.json" ,
"description" : "Creates a new transaction with a single pay-to-pubkey output (output as json)"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2016-10-04 15:40:41 -04:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" , "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:W" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreateoutpubkey2.hex" ,
"description" : "Creates a new transaction with a single pay-to-witness-pubkey output"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2016-10-04 15:40:41 -04:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-create" , "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:W" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreateoutpubkey2.json" ,
"description" : "Creates a new transaction with a single pay-to-witness-pubkey output (output as json)"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2016-10-04 15:40:41 -04:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" , "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:WS" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreateoutpubkey3.hex" ,
"description" : "Creates a new transaction with a single pay-to-witness-pubkey, wrapped in P2SH output"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2016-10-04 15:40:41 -04:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-create" , "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:WS" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreateoutpubkey3.json" ,
"description" : "Creates a new transaction with a single pay-to-pub-key output, wrapped in P2SH (output as json)"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2017-09-20 20:19:14 -04:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-create" , "outpubkey=0:047d1368ba7ae01c94bc32293efd70bd7e3be7aa7912d07d0b1c659c1008d179b8642f5fb90f47580feb29f045e216ff5a4716d3a0fed36da414d332046303c44a:WS" , "nversion=1" ] ,
2017-09-20 20:19:14 -04:00
"return_code" : 1 ,
"error_txt" : "error: Uncompressed pubkeys are not useable for SegWit outputs" ,
"description" : "Creates a new transaction with a single pay-to-pub-key output, wrapped in P2SH (output as json)"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2015-06-29 20:14:43 +02:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" ,
2015-06-29 20:14:43 +02:00
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0" ,
"outdata=4:badhexdata" ] ,
2016-10-04 13:02:06 -04:00
"return_code" : 1 ,
2017-03-29 10:20:10 -04:00
"error_txt" : "error: invalid TX output data" ,
2016-10-04 13:02:06 -04:00
"description" : "Attempts to create a new transaction with one input and an output with malformed hex data. Expected to fail"
2015-06-29 20:14:43 +02:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2015-06-29 20:14:43 +02:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" ,
2015-06-29 20:14:43 +02:00
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0" ,
"outdata=badhexdata" ] ,
2016-10-04 13:02:06 -04:00
"return_code" : 1 ,
2017-03-29 10:20:10 -04:00
"error_txt" : "error: invalid TX output data" ,
2016-10-04 13:02:06 -04:00
"description" : "Attempts to create a new transaction with one input and an output with no value and malformed hex data. Expected to fail"
2015-06-29 20:14:43 +02:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2015-06-29 20:14:43 +02:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" ,
2015-06-29 20:14:43 +02:00
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0" ,
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o" ,
"outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e" ] ,
2016-10-04 13:02:06 -04:00
"output_cmp" : "txcreatedata1.hex" ,
"description" : "Creates a new transaction with one input, one address output and one data output"
2015-06-29 20:14:43 +02:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2016-09-28 13:36:36 -04:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-json" ,
2016-08-26 23:24:23 +01:00
"-create" , "nversion=1" ,
2016-09-28 13:36:36 -04:00
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0" ,
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o" ,
"outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e" ] ,
2016-10-04 13:02:06 -04:00
"output_cmp" : "txcreatedata1.json" ,
2016-08-26 23:24:23 +01:00
"description" : "Creates a new v1 transaction with one input, one address output and one data output (output in json)"
2016-09-28 13:36:36 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2015-06-29 20:14:43 +02:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" ,
2015-06-29 20:14:43 +02:00
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0" ,
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o" ,
"outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e" ] ,
2016-10-04 13:02:06 -04:00
"output_cmp" : "txcreatedata2.hex" ,
"description" : "Creates a new transaction with one input, one address output and one data (zero value) output"
2016-06-07 17:37:35 +02:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2016-09-28 13:36:36 -04:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-json" ,
2016-09-28 13:36:36 -04:00
"-create" ,
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0" ,
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o" ,
"outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e" ] ,
2016-10-04 13:02:06 -04:00
"output_cmp" : "txcreatedata2.json" ,
"description" : "Creates a new transaction with one input, one address output and one data (zero value) output (output in json)"
2016-09-28 13:36:36 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2016-06-07 17:37:35 +02:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-create" ,
2016-06-07 17:37:35 +02:00
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293" ,
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o" ] ,
2016-10-04 13:02:06 -04:00
"output_cmp" : "txcreatedata_seq0.hex" ,
"description" : "Creates a new transaction with one input with sequence number and one address output"
2016-06-07 17:37:35 +02:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2016-09-28 13:36:36 -04:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-json" ,
2016-09-28 13:36:36 -04:00
"-create" ,
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293" ,
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o" ] ,
2016-10-04 13:02:06 -04:00
"output_cmp" : "txcreatedata_seq0.json" ,
"description" : "Creates a new transaction with one input with sequence number and one address output (output in json)"
2016-09-28 13:36:36 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2016-06-07 17:37:35 +02:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "01000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000fdffffff0180a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac00000000" ,
2016-06-07 17:37:35 +02:00
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:1" ] ,
2016-10-04 13:02:06 -04:00
"output_cmp" : "txcreatedata_seq1.hex" ,
"description" : "Adds a new input with sequence number to a transaction"
2016-09-28 13:36:36 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2016-09-28 13:36:36 -04:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-serialization=BITCOIN" , "-chain=main" , "-json" ,
2016-09-28 13:36:36 -04:00
"01000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000fdffffff0180a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac00000000" ,
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:1" ] ,
2016-10-04 13:02:06 -04:00
"output_cmp" : "txcreatedata_seq1.json" ,
"description" : "Adds a new input with sequence number to a transaction (output in json)"
2016-10-04 15:40:41 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-create" , "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreatemultisig1.hex" ,
"description" : "Creates a new transaction with a single 2-of-3 multisig output"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-create" , "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreatemultisig1.json" ,
"description" : "Creates a new transaction with a single 2-of-3 multisig output (output in json)"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-create" , "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:S" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreatemultisig2.hex" ,
"description" : "Creates a new transaction with a single 2-of-3 multisig in a P2SH output"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-create" , "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:S" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreatemultisig2.json" ,
"description" : "Creates a new transaction with a single 2-of-3 multisig in a P2SH output (output in json)"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-create" , "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:W" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreatemultisig3.hex" ,
"description" : "Creates a new transaction with a single 2-of-3 multisig in a P2WSH output"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-create" , "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:W" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreatemultisig3.json" ,
"description" : "Creates a new transaction with a single 2-of-3 multisig in a P2WSH output (output in json)"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-create" , "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:WS" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreatemultisig4.hex" ,
"description" : "Creates a new transaction with a single 2-of-3 multisig in a P2WSH output, wrapped in P2SH"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-create" , "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:WS" , "nversion=1" ] ,
2016-10-04 15:40:41 -04:00
"output_cmp" : "txcreatemultisig4.json" ,
"description" : "Creates a new transaction with a single 2-of-3 multisig in a P2WSH output, wrapped in P2SH (output in json)"
2017-09-20 20:19:14 -04:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-create" , "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:047d1368ba7ae01c94bc32293efd70bd7e3be7aa7912d07d0b1c659c1008d179b8642f5fb90f47580feb29f045e216ff5a4716d3a0fed36da414d332046303c44a:S" ] ,
2017-09-20 20:19:14 -04:00
"output_cmp" : "txcreatemultisig5.json" ,
"description" : "Uncompressed pubkeys should work just fine for non-witness outputs"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=BITCOIN" , "-chain=main" , "-json" , "-create" , "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:047d1368ba7ae01c94bc32293efd70bd7e3be7aa7912d07d0b1c659c1008d179b8642f5fb90f47580feb29f045e216ff5a4716d3a0fed36da414d332046303c44a:WS" ] ,
2017-09-20 20:19:14 -04:00
"return_code" : 1 ,
"error_txt" : "error: Uncompressed pubkeys are not useable for SegWit outputs" ,
"description" : "Ensure adding witness outputs with uncompressed pubkeys fails"
2019-03-20 11:09:54 +00:00
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-serialization=ELEMENTS" , "-chain=main" , "-create" , "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:WS" , "nversion=1" ] ,
2019-03-20 11:09:54 +00:00
"output_cmp" : "txcreatemultisig4_elements.hex" ,
"description" : "Creates a new transaction with a single 2-of-3 multisig in a P2WSH output, wrapped in P2SH. Elements serialization."
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-create" , "-chain=main" , "-json" , "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:WS" , "nversion=1" ] ,
2019-03-20 11:09:54 +00:00
"output_cmp" : "txcreatemultisig4_elements.json" ,
"description" : "Creates a new transaction with a single 2-of-3 multisig in a P2WSH output, wrapped in P2SH. Elements serialization, without serialization arg. (output in json)"
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-20 11:09:54 +00:00
"args" :
2019-03-21 07:33:04 -04:00
[ "-create" , "-chain=main" ,
2019-03-20 11:09:54 +00:00
"outaddr=1:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o:garbage" ] ,
"return_code" : 1 ,
"error_txt" : "error: invalid TX output asset type" ,
"description" : "Malformed outaddr argument (bad asset id). Expected to fail."
} ,
2019-03-21 12:40:38 +00:00
{ "exec" : "./elements-tx" ,
2019-03-21 07:33:04 -04:00
"args" : [ "-create" , "-chain=main" , "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:WS" , "nversion=1" ] ,
2019-03-20 11:09:54 +00:00
"output_cmp" : "txcreatemultisig4_elements.hex" ,
"description" : "Creates a new transaction with a single 2-of-3 multisig in a P2WSH output, wrapped in P2SH. Elements serialization, without serialization arg."
2014-08-19 10:28:58 -04:00
}
]