-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathscript_verify_errors.json
More file actions
61 lines (61 loc) · 2.62 KB
/
script_verify_errors.json
File metadata and controls
61 lines (61 loc) · 2.62 KB
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
{
"name": "Failed Script Verification Cases",
"description": "Test cases where the verification operation fails to determine validity of the script due to bad user input",
"tests": [
{
"description": "VERIFY_WITNESS flag requires P2SH flag to be set as well",
"request": {
"id": "error_invalid_flags_combination",
"method": "btck_script_pubkey_verify",
"params": {
"script_pubkey": "76a9144bfbaf6afb76cc5771bc6404810d1cc041a6933988ac",
"amount": 0,
"tx_to": "02000000013f7cebd65c27431a90bba7f796914fe8cc2ddfc3f2cbd6f7e5f2fc854534da95000000006b483045022100de1ac3bcdfb0332207c4a91f3832bd2c2915840165f876ab47c5f8996b971c3602201c6c053d750fadde599e6f5c4e1963df0f01fc0d97815e8157e3d59fe09ca30d012103699b464d1d8bc9e47d4fb1cdaa89a1c5783d68363c4dbc4b524ed3d857148617feffffff02836d3c01000000001976a914fc25d6d5c94003bf5b0c7b640a248e2c637fcfb088ac7ada8202000000001976a914fbed3d9b11183209a57999d54d59f67c019e756c88ac6acb0700",
"input_index": 0,
"flags": [
"btck_ScriptVerificationFlags_WITNESS"
],
"spent_outputs": [
{
"script_pubkey": "76a9144bfbaf6afb76cc5771bc6404810d1cc041a6933988ac",
"amount": 100000
}
]
}
},
"expected_response": {
"error": {
"code": {
"type": "btck_ScriptVerifyStatus",
"member": "ERROR_INVALID_FLAGS_COMBINATION"
}
}
}
},
{
"description": "Taproot verification requires spent outputs to be provided",
"request": {
"id": "error_spent_outputs_required",
"method": "btck_script_pubkey_verify",
"params": {
"script_pubkey": "76a9144bfbaf6afb76cc5771bc6404810d1cc041a6933988ac",
"amount": 0,
"tx_to": "02000000013f7cebd65c27431a90bba7f796914fe8cc2ddfc3f2cbd6f7e5f2fc854534da95000000006b483045022100de1ac3bcdfb0332207c4a91f3832bd2c2915840165f876ab47c5f8996b971c3602201c6c053d750fadde599e6f5c4e1963df0f01fc0d97815e8157e3d59fe09ca30d012103699b464d1d8bc9e47d4fb1cdaa89a1c5783d68363c4dbc4b524ed3d857148617feffffff02836d3c01000000001976a914fc25d6d5c94003bf5b0c7b640a248e2c637fcfb088ac7ada8202000000001976a914fbed3d9b11183209a57999d54d59f67c019e756c88ac6acb0700",
"input_index": 0,
"flags": [
"btck_ScriptVerificationFlags_TAPROOT"
],
"spent_outputs": []
}
},
"expected_response": {
"error": {
"code": {
"type": "btck_ScriptVerifyStatus",
"member": "ERROR_SPENT_OUTPUTS_REQUIRED"
}
}
}
}
]
}