@ -1,24 +1,24 @@
[
[
{ "exec" : "./bitcoin-tx" ,
{ "exec" : "./bitcoin-tx" ,
"args" : [ "-create" ] ,
"args" : [ "-create" , "nversion=1" ] ,
"output_cmp" : "blanktx.hex" ,
"output_cmp" : "blanktxv1 .hex" ,
"description" : "Creates a blank transaction"
"description" : "Creates a blank v1 transaction"
} ,
} ,
{ "exec" : "./bitcoin-tx" ,
{ "exec" : "./bitcoin-tx" ,
"args" : [ "-json" , "-create" ] ,
"args" : [ "-json" , "-create" ] ,
"output_cmp" : "blanktx.json" ,
"output_cmp" : "blanktxv2 .json" ,
"description" : "Creates a blank transaction (output in json)"
"description" : "Creates a blank transaction (output in json)"
} ,
} ,
{ "exec" : "./bitcoin-tx" ,
{ "exec" : "./bitcoin-tx" ,
"args" : [ "-" ] ,
"args" : [ "-" ] ,
"input" : "blanktx.hex" ,
"input" : "blanktxv2 .hex" ,
"output_cmp" : "blanktx.hex" ,
"output_cmp" : "blanktxv2 .hex" ,
"description" : "Creates a blank transaction when nothing is piped into bitcoin-tx"
"description" : "Creates a blank transaction when nothing is piped into bitcoin-tx"
} ,
} ,
{ "exec" : "./bitcoin-tx" ,
{ "exec" : "./bitcoin-tx" ,
"args" : [ "-json" , "-" ] ,
"args" : [ "-json" , "-" ] ,
"input" : "blanktx.hex" ,
"input" : "blanktxv2 .hex" ,
"output_cmp" : "blanktx.json" ,
"output_cmp" : "blanktxv2 .json" ,
"description" : "Creates a blank transaction when nothing is piped into bitcoin-tx (output in json)"
"description" : "Creates a blank transaction when nothing is piped into bitcoin-tx (output in json)"
} ,
} ,
{ "exec" : "./bitcoin-tx" ,
{ "exec" : "./bitcoin-tx" ,
@ -103,37 +103,48 @@
"description" : "Creates a new transaction with a single empty output script (output in json)"
"description" : "Creates a new transaction with a single empty output script (output in json)"
} ,
} ,
{ "exec" : "./bitcoin-tx" ,
{ "exec" : "./bitcoin-tx" ,
"args" : [ "01 000000000100000000000000000000000000" ] ,
"args" : [ "02 000000000100000000000000000000000000" ] ,
"output_cmp" : "txcreate2.hex" ,
"output_cmp" : "txcreate2.hex" ,
"description" : "Parses a transation with no inputs and a single output script"
"description" : "Parses a transation with no inputs and a single output script"
} ,
} ,
{ "exec" : "./bitcoin-tx" ,
{ "exec" : "./bitcoin-tx" ,
"args" : [ "-json" , "01 000000000100000000000000000000000000" ] ,
"args" : [ "-json" , "02 000000000100000000000000000000000000" ] ,
"output_cmp" : "txcreate2.json" ,
"output_cmp" : "txcreate2.json" ,
"description" : "Parses a transation with no inputs and a single output script (output in json)"
"description" : "Parses a transation with no inputs and a single output script (output in json)"
} ,
} ,
{ "exec" : "./bitcoin-tx" ,
{ "exec" : "./bitcoin-tx" ,
"args" :
"args" :
[ "-create" ,
[ "-create" , "nversion=1" ,
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0" ,
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0" ,
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]" ,
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]" ,
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]" ,
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]" ,
"sign=ALL" ,
"sign=ALL" ,
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7" ] ,
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7" ] ,
"output_cmp" : "txcreatesign.hex" ,
"output_cmp" : "txcreatesignv1 .hex" ,
"description" : "Creates a new transaction with a single input and a single output, and then signs the transaction"
"description" : "Creates a new v1 transaction with a single input and a single output, and then signs the transaction"
} ,
} ,
{ "exec" : "./bitcoin-tx" ,
{ "exec" : "./bitcoin-tx" ,
"args" :
"args" :
[ "-json" ,
[ "-json" ,
"-create" ,
"-create" , "nversion=1" ,
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0" ,
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]" ,
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]" ,
"sign=ALL" ,
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7" ] ,
"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)"
} ,
{ "exec" : "./bitcoin-tx" ,
"args" :
[ "-create" ,
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0" ,
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0" ,
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]" ,
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]" ,
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]" ,
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]" ,
"sign=ALL" ,
"sign=ALL" ,
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7" ] ,
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7" ] ,
"output_cmp" : "txcreatesign.json" ,
"output_cmp" : "txcreatesignv2.hex " ,
"description" : "Creates a new transaction with a single input and a single output, and then signs the transaction (output in json)"
"description" : "Creates a new transaction with a single input and a single output, and then signs the transaction"
} ,
} ,
{ "exec" : "./bitcoin-tx" ,
{ "exec" : "./bitcoin-tx" ,
"args" :
"args" :
@ -163,12 +174,12 @@
{ "exec" : "./bitcoin-tx" ,
{ "exec" : "./bitcoin-tx" ,
"args" :
"args" :
[ "-json" ,
[ "-json" ,
"-create" ,
"-create" , "nversion=1" ,
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0" ,
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0" ,
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o" ,
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o" ,
"outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e" ] ,
"outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e" ] ,
"output_cmp" : "txcreatedata1.json" ,
"output_cmp" : "txcreatedata1.json" ,
"description" : "Creates a new transaction with one input, one address output and one data output (output in json)"
"description" : "Creates a new v1 transaction with one input, one address output and one data output (output in json)"
} ,
} ,
{ "exec" : "./bitcoin-tx" ,
{ "exec" : "./bitcoin-tx" ,
"args" :
"args" :