aboutsummaryrefslogtreecommitdiff
path: root/src/test/data/bitcoin-util-test.json
blob: 9df61a7e7932e92ec09d8db37885fc710410df77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
[
  { "exec": "./bitcoin-tx",
    "args": ["-create"],
    "output_cmp": "blanktx.hex"
  },
  { "exec": "./bitcoin-tx",
    "args": ["-json","-create"],
    "output_cmp": "blanktx.json"
  },
  { "exec": "./bitcoin-tx",
    "args": ["-"],
    "input": "blanktx.hex",
    "output_cmp": "blanktx.hex"
  },
  { "exec": "./bitcoin-tx",
    "args": ["-json","-"],
    "input": "blanktx.hex",
    "output_cmp": "blanktx.json"
  },
  { "exec": "./bitcoin-tx",
    "args": ["-", "delin=1"],
    "input": "tx394b54bb.hex",
    "output_cmp": "tt-delin1-out.hex"
  },
  { "exec": "./bitcoin-tx",
    "args": ["-json", "-", "delin=1"],
    "input": "tx394b54bb.hex",
    "output_cmp": "tt-delin1-out.json"
  },
  { "exec": "./bitcoin-tx",
    "args": ["-", "delin=31"],
    "input": "tx394b54bb.hex",
    "return_code": 1
  },
  { "exec": "./bitcoin-tx",
    "args": ["-", "delout=1"],
    "input": "tx394b54bb.hex",
    "output_cmp": "tt-delout1-out.hex"
  },
  { "exec": "./bitcoin-tx",
    "args": ["-json", "-", "delout=1"],
    "input": "tx394b54bb.hex",
    "output_cmp": "tt-delout1-out.json"
  },
  { "exec": "./bitcoin-tx",
    "args": ["-", "delout=2"],
    "input": "tx394b54bb.hex",
    "return_code": 1
  },
  { "exec": "./bitcoin-tx",
    "args": ["-", "locktime=317000"],
    "input": "tx394b54bb.hex",
    "output_cmp": "tt-locktime317000-out.hex"
  },
  { "exec": "./bitcoin-tx",
    "args": ["-json", "-", "locktime=317000"],
    "input": "tx394b54bb.hex",
    "output_cmp": "tt-locktime317000-out.json"
  },
  { "exec": "./bitcoin-tx",
    "args":
    ["-create",
     "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
     "in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18",
     "in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",
     "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
     "outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"],
    "output_cmp": "txcreate1.hex"
  },
  { "exec": "./bitcoin-tx",
    "args":
    ["-json",
     "-create",
     "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
     "in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18",
     "in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",
     "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
     "outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"],
    "output_cmp": "txcreate1.json"
  },
  { "exec": "./bitcoin-tx",
    "args": ["-create", "outscript=0:"],
    "output_cmp": "txcreate2.hex"
  },
  { "exec": "./bitcoin-tx",
    "args": ["-json", "-create", "outscript=0:"],
    "output_cmp": "txcreate2.json"
  },
  { "exec": "./bitcoin-tx",
    "args":
    ["-create",
     "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0",
     "set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]",
     "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
     "sign=ALL",
     "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"],
    "output_cmp": "txcreatesign.hex"
  },
  { "exec": "./bitcoin-tx",
    "args":
    ["-json",
     "-create",
     "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0",
     "set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]",
     "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
     "sign=ALL",
     "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"],
    "output_cmp": "txcreatesign.json"
  },
  { "exec": "./bitcoin-tx",
    "args":
    ["-create",
     "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
     "outdata=4:badhexdata"],
    "return_code": 1
  },
  { "exec": "./bitcoin-tx",
    "args":
    ["-create",
     "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
     "outdata=badhexdata"],
    "return_code": 1
  },
  { "exec": "./bitcoin-tx",
    "args":
    ["-create",
     "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
     "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
     "outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
    "output_cmp": "txcreatedata1.hex"
  },
  { "exec": "./bitcoin-tx",
    "args":
    ["-json",
     "-create",
     "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
     "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
     "outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
    "output_cmp": "txcreatedata1.json"
  },
  { "exec": "./bitcoin-tx",
    "args":
    ["-create",
     "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
     "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
     "outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
    "output_cmp": "txcreatedata2.hex"
  },
  { "exec": "./bitcoin-tx",
    "args":
    ["-json",
     "-create",
     "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
     "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
     "outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
    "output_cmp": "txcreatedata2.json"
  },
  { "exec": "./bitcoin-tx",
    "args":
    ["-create",
     "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293",
     "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"],
    "output_cmp": "txcreatedata_seq0.hex"
  },
  { "exec": "./bitcoin-tx",
    "args":
    ["-json",
     "-create",
     "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293",
     "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"],
    "output_cmp": "txcreatedata_seq0.json"
  },
  { "exec": "./bitcoin-tx",
    "args":
    ["01000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000fdffffff0180a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac00000000",
     "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:1"],
    "output_cmp": "txcreatedata_seq1.hex"
  },
  { "exec": "./bitcoin-tx",
    "args":
    ["-json",
     "01000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000fdffffff0180a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac00000000",
     "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:1"],
    "output_cmp": "txcreatedata_seq1.json"
  }
]