Skip to content

Commit b55fd95

Browse files
committed
Use btck_script_pubkey_verify as method name
Change method names from `script_pubkey.verify` to `btck_script_pubkey_verify` to match the actual C function naming in `bitcoinkernel.h`
1 parent eb7b2a6 commit b55fd95

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

testdata/script_verify_errors.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"id": "error_invalid_p2pkh_wrong_signature",
77
"description": "P2PKH script verification fails due to wrong signature (malformed final opcode)",
8-
"method": "script_pubkey.verify",
8+
"method": "btck_script_pubkey_verify",
99
"params": {
1010
"script_pubkey_hex": "76a9144bfbaf6afb76cc5771bc6404810d1cc041a6933988ff",
1111
"amount": 0,
@@ -31,7 +31,7 @@
3131
{
3232
"id": "error_invalid_p2sh_segwit_wrong_amount",
3333
"description": "P2SH-wrapped SegWit verification fails due to incorrect amount",
34-
"method": "script_pubkey.verify",
34+
"method": "btck_script_pubkey_verify",
3535
"params": {
3636
"script_pubkey_hex": "a91434c06f8c87e355e123bdc6dda4ffabc64b6989ef87",
3737
"amount": 900000,
@@ -57,7 +57,7 @@
5757
{
5858
"id": "error_invalid_native_segwit_wrong_script",
5959
"description": "Native SegWit verification fails due to malformed witness script hash",
60-
"method": "script_pubkey.verify",
60+
"method": "btck_script_pubkey_verify",
6161
"params": {
6262
"script_pubkey_hex": "0020701a8d401c84fb13e6baf169d59684e17abd9fa216c8cc5b9fc63d622ff8c58f",
6363
"amount": 18393430,
@@ -83,7 +83,7 @@
8383
{
8484
"id": "error_tx_input_index_out_of_bounds",
8585
"description": "Input index exceeds the number of inputs in the transaction",
86-
"method": "script_pubkey.verify",
86+
"method": "btck_script_pubkey_verify",
8787
"params": {
8888
"script_pubkey_hex": "76a9144bfbaf6afb76cc5771bc6404810d1cc041a6933988ac",
8989
"amount": 0,
@@ -114,7 +114,7 @@
114114
{
115115
"id": "error_spent_outputs_mismatch",
116116
"description": "Spent outputs array length doesn't match transaction input count",
117-
"method": "script_pubkey.verify",
117+
"method": "btck_script_pubkey_verify",
118118
"params": {
119119
"script_pubkey_hex": "76a9144bfbaf6afb76cc5771bc6404810d1cc041a6933988ac",
120120
"amount": 0,
@@ -149,7 +149,7 @@
149149
{
150150
"id": "error_invalid_flags",
151151
"description": "Verification flags contain invalid bits",
152-
"method": "script_pubkey.verify",
152+
"method": "btck_script_pubkey_verify",
153153
"params": {
154154
"script_pubkey_hex": "76a9144bfbaf6afb76cc5771bc6404810d1cc041a6933988ac",
155155
"amount": 0,
@@ -173,7 +173,7 @@
173173
{
174174
"id": "error_invalid_flags_combination",
175175
"description": "VERIFY_WITNESS flag requires P2SH flag to be set as well",
176-
"method": "script_pubkey.verify",
176+
"method": "btck_script_pubkey_verify",
177177
"params": {
178178
"script_pubkey_hex": "76a9144bfbaf6afb76cc5771bc6404810d1cc041a6933988ac",
179179
"amount": 0,
@@ -197,7 +197,7 @@
197197
{
198198
"id": "error_spent_outputs_required",
199199
"description": "Taproot verification requires spent outputs to be provided",
200-
"method": "script_pubkey.verify",
200+
"method": "btck_script_pubkey_verify",
201201
"params": {
202202
"script_pubkey_hex": "76a9144bfbaf6afb76cc5771bc6404810d1cc041a6933988ac",
203203
"amount": 0,

testdata/script_verify_success.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"id": "valid_p2pkh_legacy",
77
"description": "Valid legacy P2PKH (Pay-to-PubKey-Hash) transaction verification",
8-
"method": "script_pubkey.verify",
8+
"method": "btck_script_pubkey_verify",
99
"params": {
1010
"script_pubkey_hex": "76a9144bfbaf6afb76cc5771bc6404810d1cc041a6933988ac",
1111
"amount": 0,
@@ -28,7 +28,7 @@
2828
{
2929
"id": "valid_p2sh_wrapped_segwit",
3030
"description": "Valid P2SH-wrapped SegWit transaction verification",
31-
"method": "script_pubkey.verify",
31+
"method": "btck_script_pubkey_verify",
3232
"params": {
3333
"script_pubkey_hex": "a91434c06f8c87e355e123bdc6dda4ffabc64b6989ef87",
3434
"amount": 1900000,
@@ -51,7 +51,7 @@
5151
{
5252
"id": "valid_native_segwit_p2wpkh",
5353
"description": "Valid native SegWit (P2WPKH) transaction verification",
54-
"method": "script_pubkey.verify",
54+
"method": "btck_script_pubkey_verify",
5555
"params": {
5656
"script_pubkey_hex": "0020701a8d401c84fb13e6baf169d59684e17abd9fa216c8cc5b9fc63d622ff8c58d",
5757
"amount": 18393430,

0 commit comments

Comments
 (0)