Tests
2,508 cases, each with its exact inputs and the exact expected output, or the exact refusal text. 2,154 are computed here, in your browser, by the test library zbc-spec.js; 354 are reference statements with nothing to compute. Open a case, press Compute, then paste what your implementation produced into Check my output.
The chapters state 1,007 tests (816 valid, 191 invalid), counted by the rule of 33 §4. The catalogue holds one case per checked output and per refusal of each, plus the reference statements of the sections that give a fact rather than a vector: 2,508 cases. Both numbers are exact; they count different things.
Download all test vectorsall.json · 1.9 MB
Test libraryzbc-spec.js · MIT
The catalogue format
One file per chapter
- 01Primitives and addresses64
- 02Signatures and signing75
- 03The transaction envelope89
- 04Fees, admission and the mempool77
- 05The block format55
- 06Genesis62
- 07The state model79
- 08Transfers, streams, schedules, triggers and the two account policies82
- 09The node registry83
- 10Datasets, dataset objects, the DFS file layer and dataset rent79
- 11Decentralised storage56
- 12Escrow and multisignature accounts68
- 13Survival46
- 14Tokens64
- 15The exchange46
- 16On-chain apps53
- 17Governance and registries77
- 18Account groups41
- 19Block validation77
- 20Blocksmith selection and timing32
- 21Block application and rewards37
- 22Periodic processors59
- 23Receipts47
- 24Fork choice and sync65
- 25The spine chain71
- 26Snapshots and fast sync77
- 27P2P wire protocol169
- 28P2P behaviour63
- 29Rule-activation index52
- 30Node operation79
- 31HTTP API68
- 32Constants and consensus parameters164
- 33Vectors and conformance60
- 34The multichain bridge, on-chain side97
- 35Equivocation51
- 36Liveness and the score road44
Loading the catalogue…