You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds chain.json test suite demonstrating stateful chain operations including block processing, height tracking, and verifying state after a reorg scenario.
Restructures handler-spec.md with a method reference documenting supported operations (context management, chainstate manager, chain operations, block operations, and script verification) with their parameters, return values, and error conditions.
@@ -85,7 +85,7 @@ Many operations return objects (contexts, blocks, chains, etc.) that must persis
85
85
86
86
**Implementation**: Handlers must maintain a registry (map of reference names to object pointers) throughout their lifetime. Objects remain alive until explicitly destroyed or handler exit.
87
87
88
-
## Test Suites and Expected Responses
88
+
## Test Suites Overview
89
89
90
90
The conformance tests are organized into suites, each testing a specific aspect of the Bitcoin Kernel bindings. Test files are located in [`../testdata/`](../testdata/).
91
91
@@ -94,47 +94,187 @@ The conformance tests are organized into suites, each testing a specific aspect
94
94
95
95
Test cases where the script verification operation executes successfully and returns a boolean result (true for valid scripts, false for invalid scripts).
-`spent_outputs` (array of objects): Array of outputs spent by the transaction. May be empty if the taproot flag is not set. Each object contains:
273
+
-`script_pubkey` (string): Hex-encoded script pubkey of the spent output
274
+
-`amount` (number): Amount in satoshis of the spent output
134
275
135
-
**Error Members:**
276
+
**Result:** Boolean - true if script is valid, false if invalid
136
277
137
-
| Member | Description |
138
-
|--------|-------------|
139
-
|`ERROR_INVALID_FLAGS_COMBINATION`| Invalid or inconsistent verification flags were provided. This occurs when the supplied `script_verify_flags` combination violates internal consistency rules. |
140
-
|`ERROR_SPENT_OUTPUTS_REQUIRED`| Spent outputs are required but were not provided (e.g., for Taproot verification). |
278
+
**Error:** On error, returns error code with type `btck_ScriptVerifyStatus` and member can be one of:
279
+
-`ERROR_INVALID_FLAGS_COMBINATION` - Invalid or inconsistent verification flags were provided. This occurs when the supplied `script_verify_flags` combination violates internal consistency rules.
280
+
-`ERROR_SPENT_OUTPUTS_REQUIRED` - Spent outputs are required but were not provided (e.g., for Taproot verification).
0 commit comments