{
 "format": "zoobc-conformance-vectors/1",
 "edition": "0.6.1",
 "chapter": "19",
 "license": "CC BY 4.0, ZooBC Foundation",
 "cases": [
  {
   "id": "19-2-block-10",
   "chapter": "19",
   "section": "2",
   "title": "The §2 header at height 10: bytes, signature, hash and id",
   "kind": "block-header",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "version": "600",
    "timestamp": "1793509192",
    "total_amount": "0",
    "total_fee": "0",
    "total_coinbase": "197732050",
    "payload_length": "0",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac",
    "seed": "4cb46a86ec544cd107fed1d2fc2a30318a4fa54701dff7d1c02598f05b09fbda07e847ba79b0a9e57acb64db45810ebe43da8e490c8bef475a404c9519dd0af2",
    "previous_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "seed_proof": "65c4971d4cb7313c4d0c7846494f556022b1476f5de76726819b4b53feacbd0cc6752e89d0b9db1b72000808754553b2aa170f89737e22b9523ec31c3791f739e5f3345e0a9baf76ee7c7f824f74040d",
    "signature": "5cb62b52b24f47fc883bfeda20eec412a884713f1bca2d5d01cf882bd4f6c5941924aa51a6685a6b2c303021a4d6b3ea808ad30523d4817edfa0f4115668fa05"
   },
   "expected": {
    "unsigned": "5802000048c7e66a0000000000000000000000000000000000000000d226c90b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac4cb46a86ec544cd107fed1d2fc2a30318a4fa54701dff7d1c02598f05b09fbda07e847ba79b0a9e57acb64db45810ebe43da8e490c8bef475a404c9519dd0af21446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb665c4971d4cb7313c4d0c7846494f556022b1476f5de76726819b4b53feacbd0cc6752e89d0b9db1b72000808754553b2aa170f89737e22b9523ec31c3791f739e5f3345e0a9baf76ee7c7f824f74040d",
    "length": "284",
    "signature_valid": "true",
    "hash": "c535a2ea1d122c30feefab263bc8a144fe332caff1f82eacb20e8fc742adc7c6",
    "id": "3471169332495660485"
   }
  },
  {
   "id": "19-2-fee-changed",
   "chapter": "19",
   "section": "2",
   "title": "The §2 header with total_fee 1: the signature no longer verifies",
   "kind": "block-header",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "version": "600",
    "timestamp": "1793509192",
    "total_amount": "0",
    "total_fee": "1",
    "total_coinbase": "197732050",
    "payload_length": "0",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac",
    "seed": "4cb46a86ec544cd107fed1d2fc2a30318a4fa54701dff7d1c02598f05b09fbda07e847ba79b0a9e57acb64db45810ebe43da8e490c8bef475a404c9519dd0af2",
    "previous_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "seed_proof": "65c4971d4cb7313c4d0c7846494f556022b1476f5de76726819b4b53feacbd0cc6752e89d0b9db1b72000808754553b2aa170f89737e22b9523ec31c3791f739e5f3345e0a9baf76ee7c7f824f74040d",
    "signature": "5cb62b52b24f47fc883bfeda20eec412a884713f1bca2d5d01cf882bd4f6c5941924aa51a6685a6b2c303021a4d6b3ea808ad30523d4817edfa0f4115668fa05"
   },
   "expected": {
    "signature_valid": "false"
   }
  },
  {
   "id": "19-8-block-10",
   "chapter": "19",
   "section": "8",
   "title": "Size of an empty block",
   "kind": "block-size",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed_proof": "true",
    "transactions": "",
    "receipts": "0",
    "receipt_proofs": "",
    "merkle_tree": "0",
    "max_block_size_bytes": "524288"
   },
   "expected": {
    "size": "348",
    "verdict": "valid"
   }
  },
  {
   "id": "19-8-ten-receipts",
   "chapter": "19",
   "section": "8",
   "title": "Ten receipts: each counts 1,288 bytes",
   "kind": "block-size",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed_proof": "true",
    "transactions": "",
    "receipts": "10",
    "receipt_proofs": "",
    "merkle_tree": "0",
    "max_block_size_bytes": "524288"
   },
   "expected": {
    "size": "13228",
    "verdict": "valid"
   }
  },
  {
   "id": "19-8-proof-over",
   "chapter": "19",
   "section": "8",
   "title": "A receipt with 33 intermediate hashes",
   "kind": "block-size",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed_proof": "true",
    "transactions": "",
    "receipts": "10",
    "receipt_proofs": "1056+0",
    "merkle_tree": "0",
    "max_block_size_bytes": "524288"
   },
   "expected": {
    "size": "13228",
    "verdict": "BlockTooLarge: a receipt's proof fields are over their bound (1056 + 0 bytes)"
   }
  },
  {
   "id": "19-8-merkle-tree",
   "chapter": "19",
   "section": "8",
   "title": "A main chain block with a merkle_tree attached",
   "kind": "block-size",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed_proof": "true",
    "transactions": "",
    "receipts": "0",
    "receipt_proofs": "",
    "merkle_tree": "64",
    "max_block_size_bytes": "524288"
   },
   "expected": {
    "verdict": "BlockTooLarge: a main block carries no merkle_tree (64 bytes attached)"
   }
  },
  {
   "id": "19-8-one-over",
   "chapter": "19",
   "section": "8",
   "title": "One byte over the limit",
   "kind": "block-size",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed_proof": "true",
    "transactions": "498181",
    "receipts": "20",
    "receipt_proofs": "",
    "merkle_tree": "0",
    "max_block_size_bytes": "524288"
   },
   "expected": {
    "size": "524289",
    "verdict": "BlockTooLarge: serialized 524289 bytes over the limit 524288"
   }
  },
  {
   "id": "19-8-at-limit",
   "chapter": "19",
   "section": "8",
   "title": "Exactly at the limit",
   "kind": "block-size",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed_proof": "true",
    "transactions": "498180",
    "receipts": "20",
    "receipt_proofs": "",
    "merkle_tree": "0",
    "max_block_size_bytes": "524288"
   },
   "expected": {
    "size": "524288",
    "verdict": "valid"
   }
  },
  {
   "id": "19-10-fresh-chain",
   "chapter": "19",
   "section": "10",
   "title": "Survival flag on a fresh chain, N = 5",
   "kind": "survival-flags",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "min_producers": "5",
    "producers": "A, B, C, D, E, A, B, C",
    "heights": "0,1,2,3,4,5,6,7,8"
   },
   "expected": {
    "flags": "0:false\n1:true\n2:true\n3:true\n4:true\n5:true\n6:false\n7:false\n8:false"
   }
  },
  {
   "id": "19-10-window",
   "chapter": "19",
   "section": "10",
   "title": "The 120-block window, N = 5: no hysteresis in either direction",
   "kind": "survival-flags",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "min_producers": "5",
    "producers": "[A,B,C,D]*124, A, B, C, E, [A,B,C,D]*30",
    "heights": "500,501,620,621"
   },
   "expected": {
    "flags": "500:true\n501:false\n620:false\n621:true"
   },
   "note": "Blocks 1 to 499 by A, B, C, D in turn, block 500 by E, blocks 501 to 620 by A, B, C, D in turn."
  },
  {
   "id": "19-10-off",
   "chapter": "19",
   "section": "10",
   "title": "N = 0: every flag is false",
   "kind": "survival-flags",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "min_producers": "0",
    "producers": "A, A, A",
    "heights": "0,1,2,3,4"
   },
   "expected": {
    "flags": "0:false\n1:false\n2:false\n3:false\n4:false"
   }
  },
  {
   "id": "19-1-ahead",
   "chapter": "19",
   "section": "1",
   "title": "Tip 9, a gossiped block of height 11",
   "kind": "19-gossip-route",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "tip_height": "9",
    "tip_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "height": "11",
    "hash": "1111111111111111111111111111111111111111111111111111111111111111",
    "previous_hash": "c535a2ea1d122c30feefab263bc8a144fe332caff1f82eacb20e8fc742adc7c6",
    "held_hash": "",
    "previous_held": "false",
    "full_copy": "true",
    "seed_proof": "true",
    "transactions": "",
    "receipts": "0",
    "max_block_size_bytes": "524288"
   },
   "expected": {
    "size": "348",
    "outcome": "ignored: ahead of the tip (sync fetches it)"
   }
  },
  {
   "id": "19-1-duplicate",
   "chapter": "19",
   "section": "1",
   "title": "Tip 10, block 10 gossiped again",
   "kind": "19-gossip-route",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "tip_height": "10",
    "tip_hash": "c535a2ea1d122c30feefab263bc8a144fe332caff1f82eacb20e8fc742adc7c6",
    "height": "10",
    "hash": "c535a2ea1d122c30feefab263bc8a144fe332caff1f82eacb20e8fc742adc7c6",
    "previous_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "held_hash": "c535a2ea1d122c30feefab263bc8a144fe332caff1f82eacb20e8fc742adc7c6",
    "previous_held": "true",
    "full_copy": "true",
    "seed_proof": "true",
    "transactions": "",
    "receipts": "0",
    "max_block_size_bytes": "524288"
   },
   "expected": {
    "outcome": "duplicate"
   }
  },
  {
   "id": "19-1-fork-at-tip",
   "chapter": "19",
   "section": "1",
   "title": "Tip 10, a block of height 11 whose previous hash is not the tip",
   "kind": "19-gossip-route",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "tip_height": "10",
    "tip_hash": "c535a2ea1d122c30feefab263bc8a144fe332caff1f82eacb20e8fc742adc7c6",
    "height": "11",
    "hash": "1111111111111111111111111111111111111111111111111111111111111111",
    "previous_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "held_hash": "",
    "previous_held": "true",
    "full_copy": "true",
    "seed_proof": "true",
    "transactions": "",
    "receipts": "0",
    "max_block_size_bytes": "524288"
   },
   "expected": {
    "outcome": "fork signal: previous hash is not the tip"
   }
  },
  {
   "id": "19-1-next",
   "chapter": "19",
   "section": "1",
   "title": "Tip 10, the block of height 11 linked to it",
   "kind": "19-gossip-route",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "tip_height": "10",
    "tip_hash": "c535a2ea1d122c30feefab263bc8a144fe332caff1f82eacb20e8fc742adc7c6",
    "height": "11",
    "hash": "1111111111111111111111111111111111111111111111111111111111111111",
    "previous_hash": "c535a2ea1d122c30feefab263bc8a144fe332caff1f82eacb20e8fc742adc7c6",
    "held_hash": "",
    "previous_held": "true",
    "full_copy": "true",
    "seed_proof": "true",
    "transactions": "",
    "receipts": "0",
    "max_block_size_bytes": "524288"
   },
   "expected": {
    "outcome": "validate"
   }
  },
  {
   "id": "19-1-over-limit",
   "chapter": "19",
   "section": "1",
   "title": "A full copy of 524,289 serialized bytes",
   "kind": "19-gossip-route",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "tip_height": "10",
    "tip_hash": "c535a2ea1d122c30feefab263bc8a144fe332caff1f82eacb20e8fc742adc7c6",
    "height": "11",
    "hash": "1111111111111111111111111111111111111111111111111111111111111111",
    "previous_hash": "c535a2ea1d122c30feefab263bc8a144fe332caff1f82eacb20e8fc742adc7c6",
    "held_hash": "",
    "previous_held": "true",
    "full_copy": "true",
    "seed_proof": "true",
    "transactions": "498181",
    "receipts": "20",
    "max_block_size_bytes": "524288"
   },
   "expected": {
    "error": "relay: block over the serialized limit"
   }
  },
  {
   "id": "19-1-later-by-sync",
   "chapter": "19",
   "section": "1",
   "title": "Block 11 ignored by gossip is stored later by sync after block 10",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "value": "stored by sync once block 10 is held"
   }
  },
  {
   "id": "19-1-ids-only-difficulty",
   "chapter": "19",
   "section": "1",
   "title": "An ids-only copy at tip + 1 whose carried difficulty is one more than the recomputed one",
   "kind": "reference",
   "validity": "invalid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "outcome": "dropped before it takes a queue slot",
    "honest copy arriving later": "queued"
   },
   "note": "The header, signature and difficulty checks run before the incomplete-block queue; this needs the chain to run."
  },
  {
   "id": "19-2-version-600",
   "chapter": "19",
   "section": "2",
   "title": "The §2 header over block 9: refused for version 600 below bundle 601",
   "kind": "19-validate-header",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "version": "600",
    "timestamp": "1793509192",
    "total_amount": "0",
    "total_fee": "0",
    "total_coinbase": "197732050",
    "payload_length": "0",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac",
    "seed": "4cb46a86ec544cd107fed1d2fc2a30318a4fa54701dff7d1c02598f05b09fbda07e847ba79b0a9e57acb64db45810ebe43da8e490c8bef475a404c9519dd0af2",
    "previous_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "seed_proof": "65c4971d4cb7313c4d0c7846494f556022b1476f5de76726819b4b53feacbd0cc6752e89d0b9db1b72000808754553b2aa170f89737e22b9523ec31c3791f739e5f3345e0a9baf76ee7c7f824f74040d",
    "signature": "5cb62b52b24f47fc883bfeda20eec412a884713f1bca2d5d01cf882bd4f6c5941924aa51a6685a6b2c303021a4d6b3ea808ad30523d4817edfa0f4115668fa05",
    "height": "10",
    "block_hash": "",
    "previous_height": "9",
    "previous_block_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "previous_timestamp": "1793509177",
    "is_test_chain": "false",
    "now": "1793509200"
   },
   "expected": {
    "round": "1",
    "persist": "1793509185..1793509199",
    "verdict": "Block version 600 is below the active bundle 601 (activation_readiness_gate)"
   },
   "note": "Every rule of bundle 601 is at height 0, so 601 is the active bundle at height 10 on every chain built from 0.6.1."
  },
  {
   "id": "19-2-valid",
   "chapter": "19",
   "section": "2",
   "title": "The same header with version 601, signed by its blocksmith: valid, round 1",
   "kind": "19-validate-header",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "version": "601",
    "timestamp": "1793509192",
    "total_amount": "0",
    "total_fee": "0",
    "total_coinbase": "197732050",
    "payload_length": "0",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "5e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152",
    "seed": "4cb46a86ec544cd107fed1d2fc2a30318a4fa54701dff7d1c02598f05b09fbda07e847ba79b0a9e57acb64db45810ebe43da8e490c8bef475a404c9519dd0af2",
    "previous_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "seed_proof": "65c4971d4cb7313c4d0c7846494f556022b1476f5de76726819b4b53feacbd0cc6752e89d0b9db1b72000808754553b2aa170f89737e22b9523ec31c3791f739e5f3345e0a9baf76ee7c7f824f74040d",
    "signature": "8ecec16d24a0f5faf3f4e36f46d40804889201fc819fa642f151cda7f6695d36fa0306f350e4d8a295b7bfad80138af877b8ff763bce26e80ebced0426f90505",
    "height": "10",
    "block_hash": "",
    "previous_height": "9",
    "previous_block_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "previous_timestamp": "1793509177",
    "is_test_chain": "false",
    "now": "1793509200"
   },
   "expected": {
    "round": "1",
    "persist": "1793509185..1793509199",
    "verdict": "valid"
   },
   "note": "The blocksmith here is the test key 5e8eb28d…; the seed check of step 10 is not part of this case."
  },
  {
   "id": "19-2-version-601-hash",
   "chapter": "19",
   "section": "2",
   "title": "The version-601 header: its block hash",
   "kind": "block-header",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "version": "601",
    "timestamp": "1793509192",
    "total_amount": "0",
    "total_fee": "0",
    "total_coinbase": "197732050",
    "payload_length": "0",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "5e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152",
    "seed": "4cb46a86ec544cd107fed1d2fc2a30318a4fa54701dff7d1c02598f05b09fbda07e847ba79b0a9e57acb64db45810ebe43da8e490c8bef475a404c9519dd0af2",
    "previous_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "seed_proof": "65c4971d4cb7313c4d0c7846494f556022b1476f5de76726819b4b53feacbd0cc6752e89d0b9db1b72000808754553b2aa170f89737e22b9523ec31c3791f739e5f3345e0a9baf76ee7c7f824f74040d",
    "signature": "8ecec16d24a0f5faf3f4e36f46d40804889201fc819fa642f151cda7f6695d36fa0306f350e4d8a295b7bfad80138af877b8ff763bce26e80ebced0426f90505"
   },
   "expected": {
    "length": "284",
    "signature_valid": "true",
    "hash": "c5c87e91d7b98fb9ee8a9cbdd6d43d12fec67367b81d7a1b94c17752c5f8d644"
   }
  },
  {
   "id": "19-2-fee-1",
   "chapter": "19",
   "section": "2",
   "title": "The version-601 block with total_fee 1",
   "kind": "19-validate-header",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "version": "601",
    "timestamp": "1793509192",
    "total_amount": "0",
    "total_fee": "1",
    "total_coinbase": "197732050",
    "payload_length": "0",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "5e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152",
    "seed": "4cb46a86ec544cd107fed1d2fc2a30318a4fa54701dff7d1c02598f05b09fbda07e847ba79b0a9e57acb64db45810ebe43da8e490c8bef475a404c9519dd0af2",
    "previous_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "seed_proof": "65c4971d4cb7313c4d0c7846494f556022b1476f5de76726819b4b53feacbd0cc6752e89d0b9db1b72000808754553b2aa170f89737e22b9523ec31c3791f739e5f3345e0a9baf76ee7c7f824f74040d",
    "signature": "8ecec16d24a0f5faf3f4e36f46d40804889201fc819fa642f151cda7f6695d36fa0306f350e4d8a295b7bfad80138af877b8ff763bce26e80ebced0426f90505",
    "height": "10",
    "block_hash": "",
    "previous_height": "9",
    "previous_block_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "previous_timestamp": "1793509177",
    "is_test_chain": "false",
    "now": "1793509200"
   },
   "expected": {
    "verdict": "Invalid block signature"
   },
   "note": "The fee is in the signed header; the payload check passes."
  },
  {
   "id": "19-2-same-timestamp",
   "chapter": "19",
   "section": "2",
   "title": "The block stamped like block 9",
   "kind": "19-validate-header",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "version": "601",
    "timestamp": "1793509177",
    "total_amount": "0",
    "total_fee": "0",
    "total_coinbase": "197732050",
    "payload_length": "0",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "5e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152",
    "seed": "4cb46a86ec544cd107fed1d2fc2a30318a4fa54701dff7d1c02598f05b09fbda07e847ba79b0a9e57acb64db45810ebe43da8e490c8bef475a404c9519dd0af2",
    "previous_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "seed_proof": "65c4971d4cb7313c4d0c7846494f556022b1476f5de76726819b4b53feacbd0cc6752e89d0b9db1b72000808754553b2aa170f89737e22b9523ec31c3791f739e5f3345e0a9baf76ee7c7f824f74040d",
    "signature": "8ecec16d24a0f5faf3f4e36f46d40804889201fc819fa642f151cda7f6695d36fa0306f350e4d8a295b7bfad80138af877b8ff763bce26e80ebced0426f90505",
    "height": "10",
    "block_hash": "",
    "previous_height": "9",
    "previous_block_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "previous_timestamp": "1793509177",
    "is_test_chain": "false",
    "now": "1793509200"
   },
   "expected": {
    "verdict": "Block timestamp (1793509177) must be after previous block (1793509177)"
   }
  },
  {
   "id": "19-2-previous-hash",
   "chapter": "19",
   "section": "2",
   "title": "The block with the last byte of its previous hash changed",
   "kind": "19-validate-header",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "version": "601",
    "timestamp": "1793509192",
    "total_amount": "0",
    "total_fee": "0",
    "total_coinbase": "197732050",
    "payload_length": "0",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "5e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152",
    "seed": "4cb46a86ec544cd107fed1d2fc2a30318a4fa54701dff7d1c02598f05b09fbda07e847ba79b0a9e57acb64db45810ebe43da8e490c8bef475a404c9519dd0af2",
    "previous_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb7",
    "seed_proof": "65c4971d4cb7313c4d0c7846494f556022b1476f5de76726819b4b53feacbd0cc6752e89d0b9db1b72000808754553b2aa170f89737e22b9523ec31c3791f739e5f3345e0a9baf76ee7c7f824f74040d",
    "signature": "8ecec16d24a0f5faf3f4e36f46d40804889201fc819fa642f151cda7f6695d36fa0306f350e4d8a295b7bfad80138af877b8ff763bce26e80ebced0426f90505",
    "height": "10",
    "block_hash": "",
    "previous_height": "9",
    "previous_block_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "previous_timestamp": "1793509177",
    "is_test_chain": "false",
    "now": "1793509200"
   },
   "expected": {
    "verdict": "Invalid previous block hash"
   }
  },
  {
   "id": "19-2-height",
   "chapter": "19",
   "section": "2",
   "title": "The block presented at height 11",
   "kind": "19-validate-header",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "version": "601",
    "timestamp": "1793509192",
    "total_amount": "0",
    "total_fee": "0",
    "total_coinbase": "197732050",
    "payload_length": "0",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "5e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152",
    "seed": "4cb46a86ec544cd107fed1d2fc2a30318a4fa54701dff7d1c02598f05b09fbda07e847ba79b0a9e57acb64db45810ebe43da8e490c8bef475a404c9519dd0af2",
    "previous_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "seed_proof": "65c4971d4cb7313c4d0c7846494f556022b1476f5de76726819b4b53feacbd0cc6752e89d0b9db1b72000808754553b2aa170f89737e22b9523ec31c3791f739e5f3345e0a9baf76ee7c7f824f74040d",
    "signature": "8ecec16d24a0f5faf3f4e36f46d40804889201fc819fa642f151cda7f6695d36fa0306f350e4d8a295b7bfad80138af877b8ff763bce26e80ebced0426f90505",
    "height": "11",
    "block_hash": "",
    "previous_height": "9",
    "previous_block_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "previous_timestamp": "1793509177",
    "is_test_chain": "false",
    "now": "1793509200"
   },
   "expected": {
    "verdict": "Non-sequential block height"
   }
  },
  {
   "id": "19-2-payload-length",
   "chapter": "19",
   "section": "2",
   "title": "An empty block carrying payload_length 1",
   "kind": "19-validate-header",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "version": "601",
    "timestamp": "1793509192",
    "total_amount": "0",
    "total_fee": "0",
    "total_coinbase": "197732050",
    "payload_length": "1",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "5e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152",
    "seed": "4cb46a86ec544cd107fed1d2fc2a30318a4fa54701dff7d1c02598f05b09fbda07e847ba79b0a9e57acb64db45810ebe43da8e490c8bef475a404c9519dd0af2",
    "previous_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "seed_proof": "65c4971d4cb7313c4d0c7846494f556022b1476f5de76726819b4b53feacbd0cc6752e89d0b9db1b72000808754553b2aa170f89737e22b9523ec31c3791f739e5f3345e0a9baf76ee7c7f824f74040d",
    "signature": "8ecec16d24a0f5faf3f4e36f46d40804889201fc819fa642f151cda7f6695d36fa0306f350e4d8a295b7bfad80138af877b8ff763bce26e80ebced0426f90505",
    "height": "10",
    "block_hash": "",
    "previous_height": "9",
    "previous_block_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "previous_timestamp": "1793509177",
    "is_test_chain": "false",
    "now": "1793509200"
   },
   "expected": {
    "verdict": "InvalidBlockPayload: length mismatch (calculated=0, block=1)"
   }
  },
  {
   "id": "19-2-version-0",
   "chapter": "19",
   "section": "2",
   "title": "The block with version 0",
   "kind": "19-validate-header",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "version": "0",
    "timestamp": "1793509192",
    "total_amount": "0",
    "total_fee": "0",
    "total_coinbase": "197732050",
    "payload_length": "0",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "5e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152",
    "seed": "4cb46a86ec544cd107fed1d2fc2a30318a4fa54701dff7d1c02598f05b09fbda07e847ba79b0a9e57acb64db45810ebe43da8e490c8bef475a404c9519dd0af2",
    "previous_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "seed_proof": "65c4971d4cb7313c4d0c7846494f556022b1476f5de76726819b4b53feacbd0cc6752e89d0b9db1b72000808754553b2aa170f89737e22b9523ec31c3791f739e5f3345e0a9baf76ee7c7f824f74040d",
    "signature": "8ecec16d24a0f5faf3f4e36f46d40804889201fc819fa642f151cda7f6695d36fa0306f350e4d8a295b7bfad80138af877b8ff763bce26e80ebced0426f90505",
    "height": "10",
    "block_hash": "",
    "previous_height": "9",
    "previous_block_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "previous_timestamp": "1793509177",
    "is_test_chain": "false",
    "now": "1793509200"
   },
   "expected": {
    "verdict": "Invalid block version"
   }
  },
  {
   "id": "19-2-block-hash",
   "chapter": "19",
   "section": "2",
   "title": "The block carrying another block hash",
   "kind": "19-validate-header",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "version": "601",
    "timestamp": "1793509192",
    "total_amount": "0",
    "total_fee": "0",
    "total_coinbase": "197732050",
    "payload_length": "0",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "5e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152",
    "seed": "4cb46a86ec544cd107fed1d2fc2a30318a4fa54701dff7d1c02598f05b09fbda07e847ba79b0a9e57acb64db45810ebe43da8e490c8bef475a404c9519dd0af2",
    "previous_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "seed_proof": "65c4971d4cb7313c4d0c7846494f556022b1476f5de76726819b4b53feacbd0cc6752e89d0b9db1b72000808754553b2aa170f89737e22b9523ec31c3791f739e5f3345e0a9baf76ee7c7f824f74040d",
    "signature": "8ecec16d24a0f5faf3f4e36f46d40804889201fc819fa642f151cda7f6695d36fa0306f350e4d8a295b7bfad80138af877b8ff763bce26e80ebced0426f90505",
    "height": "10",
    "block_hash": "ffc87e91d7b98fb9ee8a9cbdd6d43d12fec67367b81d7a1b94c17752c5f8d644",
    "previous_height": "9",
    "previous_block_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "previous_timestamp": "1793509177",
    "is_test_chain": "false",
    "now": "1793509200"
   },
   "expected": {
    "verdict": "Invalid block hash"
   }
  },
  {
   "id": "19-2-id-zero",
   "chapter": "19",
   "section": "2",
   "title": "A carried block hash whose first 8 bytes are zero",
   "kind": "19-validate-header",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "version": "601",
    "timestamp": "1793509192",
    "total_amount": "0",
    "total_fee": "0",
    "total_coinbase": "197732050",
    "payload_length": "0",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "5e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152",
    "seed": "4cb46a86ec544cd107fed1d2fc2a30318a4fa54701dff7d1c02598f05b09fbda07e847ba79b0a9e57acb64db45810ebe43da8e490c8bef475a404c9519dd0af2",
    "previous_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "seed_proof": "65c4971d4cb7313c4d0c7846494f556022b1476f5de76726819b4b53feacbd0cc6752e89d0b9db1b72000808754553b2aa170f89737e22b9523ec31c3791f739e5f3345e0a9baf76ee7c7f824f74040d",
    "signature": "8ecec16d24a0f5faf3f4e36f46d40804889201fc819fa642f151cda7f6695d36fa0306f350e4d8a295b7bfad80138af877b8ff763bce26e80ebced0426f90505",
    "height": "10",
    "block_hash": "0000000000000000ee8a9cbdd6d43d12fec67367b81d7a1b94c17752c5f8d644",
    "previous_height": "9",
    "previous_block_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "previous_timestamp": "1793509177",
    "is_test_chain": "false",
    "now": "1793509200"
   },
   "expected": {
    "verdict": "InvalidID: block ID is zero"
   }
  },
  {
   "id": "19-2-difficulty-10",
   "chapter": "19",
   "section": "2",
   "title": "Previous difficulty 8500000, the blocksmith drawn first over a draw set equal to the registry",
   "kind": "20-difficulty",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "nodes": "1 715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac",
    "producer": "715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac",
    "previous_producer": "",
    "previous_timestamp": "1793509177",
    "timestamp": "1793509192",
    "max_priority_blocksmiths": "10",
    "registry": "1",
    "previous_difficulty": "8500000",
    "divisor": "1000000",
    "carried": "9500000"
   },
   "expected": {
    "count": "1",
    "increment": "1000000",
    "difficulty": "9500000",
    "verdict": "valid"
   },
   "note": "A one-node draw set stands for the vector's draw set: what matters is the first draw naming the blocksmith and |S| = |A|."
  },
  {
   "id": "19-2-2001-sends",
   "chapter": "19",
   "section": "2",
   "title": "2,001 SendZBC transactions",
   "kind": "19-ceilings",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "actions": "2001*1",
    "payload_length": "0",
    "max_transactions_per_block": "2000",
    "max_block_size_bytes": "524288"
   },
   "expected": {
    "counted": "2001",
    "verdict": "Too many transactions in block (2001 > 2000)"
   }
  },
  {
   "id": "19-2-2000-sends",
   "chapter": "19",
   "section": "2",
   "title": "2,000 SendZBC transactions pass the ceiling",
   "kind": "19-ceilings",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "actions": "2000*1",
    "payload_length": "0",
    "max_transactions_per_block": "2000",
    "max_block_size_bytes": "524288"
   },
   "expected": {
    "counted": "2000",
    "verdict": "pass"
   }
  },
  {
   "id": "19-2-batch-counts",
   "chapter": "19",
   "section": "2",
   "title": "1,976 SendZBC and a SendZBCBatch of 25 payments count 2,001",
   "kind": "19-ceilings",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "actions": "1976*1\n25",
    "payload_length": "0",
    "max_transactions_per_block": "2000",
    "max_block_size_bytes": "524288"
   },
   "expected": {
    "counted": "2001",
    "verdict": "Too many transactions in block (2001 > 2000)"
   }
  },
  {
   "id": "19-2-payload-524289",
   "chapter": "19",
   "section": "2",
   "title": "payload_length 524,289",
   "kind": "19-ceilings",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "actions": "",
    "payload_length": "524289",
    "max_transactions_per_block": "2000",
    "max_block_size_bytes": "524288"
   },
   "expected": {
    "verdict": "Block payload_length exceeds maximum (524289 > 524288)"
   }
  },
  {
   "id": "19-2-one-account",
   "chapter": "19",
   "section": "2",
   "title": "A SendZBC and a TransferToken signed by one key",
   "kind": "19-one-per-account",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "senders": "000000005e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152\n000000005e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152"
   },
   "expected": {
    "verdict": "Block carries two transactions from one account (000000005e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152, transactions 0 and 1): one transaction per account per block"
   }
  },
  {
   "id": "19-2-two-accounts",
   "chapter": "19",
   "section": "2",
   "title": "Two transactions from two accounts",
   "kind": "19-one-per-account",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "senders": "000000005e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152\n00000000fd4472bbdec43b919aa37b9b3366a3318f2902a753a15f5fd6d43c44b5121b67"
   },
   "expected": {
    "verdict": "valid"
   }
  },
  {
   "id": "19-2-carrier-once",
   "chapter": "19",
   "section": "2",
   "title": "One Ethereum carrier and a SendZBC from another account: the carrier id, nothing spent",
   "kind": "19-carrier-precheck",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "transactions": "0400000036590dc6986e0755e42c7d4c8f385389403230fc f86f0485e8d4a510008275309400000000000000000000000000000000000000aa872386f26fc1000080841107c02aa0a8acf6daa683238dbe67d820b86bac1ccd4f2fce60c424c4ea0c89959ac6cbb6a0685fe39d8fed9afca00d9a21840211828ba8d807180beb67f7efa65d1028b3c3\n000000005e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152 -",
    "spent": ""
   },
   "expected": {
    "ids": "d0337b7b5c13f173c8fd6c5f2957424a5d91b76a5a4ea048e4039c9975d00dbc\n-",
    "verdict": "pass"
   }
  },
  {
   "id": "19-2-carrier-twice",
   "chapter": "19",
   "section": "2",
   "title": "Two SendZBC carriers wrapping the same signed Ethereum transaction (one carrier id)",
   "kind": "19-carrier-precheck",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "transactions": "0400000036590dc6986e0755e42c7d4c8f385389403230fc f86f0485e8d4a510008275309400000000000000000000000000000000000000aa872386f26fc1000080841107c02aa0a8acf6daa683238dbe67d820b86bac1ccd4f2fce60c424c4ea0c89959ac6cbb6a0685fe39d8fed9afca00d9a21840211828ba8d807180beb67f7efa65d1028b3c3\n0400000036590dc6986e0755e42c7d4c8f385389403230fc f86f0485e8d4a510008275309400000000000000000000000000000000000000aa872386f26fc1000080841107c02aa0a8acf6daa683238dbe67d820b86bac1ccd4f2fce60c424c4ea0c89959ac6cbb6a0685fe39d8fed9afca00d9a21840211828ba8d807180beb67f7efa65d1028b3c3",
    "spent": ""
   },
   "expected": {
    "ids": "d0337b7b5c13f173c8fd6c5f2957424a5d91b76a5a4ea048e4039c9975d00dbc\nd0337b7b5c13f173c8fd6c5f2957424a5d91b76a5a4ea048e4039c9975d00dbc",
    "verdict": "ForeignCarrierReplayed"
   },
   "note": "The two also come from one account: the carrier check runs first, so the refusal is ForeignCarrierReplayed."
  },
  {
   "id": "19-2-carrier-spent",
   "chapter": "19",
   "section": "2",
   "title": "A carrier whose Ethereum transaction a block below already carried",
   "kind": "19-carrier-precheck",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "transactions": "0400000036590dc6986e0755e42c7d4c8f385389403230fc f86f0485e8d4a510008275309400000000000000000000000000000000000000aa872386f26fc1000080841107c02aa0a8acf6daa683238dbe67d820b86bac1ccd4f2fce60c424c4ea0c89959ac6cbb6a0685fe39d8fed9afca00d9a21840211828ba8d807180beb67f7efa65d1028b3c3",
    "spent": "d0337b7b5c13f173c8fd6c5f2957424a5d91b76a5a4ea048e4039c9975d00dbc"
   },
   "expected": {
    "ids": "d0337b7b5c13f173c8fd6c5f2957424a5d91b76a5a4ea048e4039c9975d00dbc",
    "verdict": "ForeignCarrierReplayed"
   }
  },
  {
   "id": "19-2-carrier-message-hash",
   "chapter": "19",
   "section": "2",
   "title": "A carrier whose raw message's SHA3-256 is in the spent set",
   "kind": "19-carrier-precheck",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "transactions": "0400000036590dc6986e0755e42c7d4c8f385389403230fc f86f0485e8d4a510008275309400000000000000000000000000000000000000aa872386f26fc1000080841107c02aa0a8acf6daa683238dbe67d820b86bac1ccd4f2fce60c424c4ea0c89959ac6cbb6a0685fe39d8fed9afca00d9a21840211828ba8d807180beb67f7efa65d1028b3c3",
    "spent": "d7a9ddc24698df475e5278768a5d991aabcb5b39ed1915e43d42c89dd71167ff"
   },
   "expected": {
    "ids": "d0337b7b5c13f173c8fd6c5f2957424a5d91b76a5a4ea048e4039c9975d00dbc",
    "verdict": "ForeignCarrierReplayed"
   }
  },
  {
   "id": "19-2-carrier-other-nonce",
   "chapter": "19",
   "section": "2",
   "title": "The carrier of the next nonce is another carrier id",
   "kind": "19-carrier-precheck",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "transactions": "0400000036590dc6986e0755e42c7d4c8f385389403230fc f86f0385e8d4a510008275309400000000000000000000000000000000000000aa872386f26fc1000080841107c029a0b2f67ec1cfd11951d403e35c5aa9b7307e7b155d7b77df51cb3ccdb9dadbebe4a012219d8451006c1543d2586d48b250bcfafef39dfabec3a700a25076992ad6d3",
    "spent": "d0337b7b5c13f173c8fd6c5f2957424a5d91b76a5a4ea048e4039c9975d00dbc"
   },
   "expected": {
    "ids": "6b16dc3afd0ba013e7445853b6e72a301a01142539d246cefea9cb110256d5b3",
    "verdict": "pass"
   }
  },
  {
   "id": "19-2-reference-721",
   "chapter": "19",
   "section": "2",
   "title": "A receipt with reference_block_height h − 721",
   "kind": "19-receipt-once",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "height": "12400",
    "lookback": "",
    "signatures": "57575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757",
    "published": "",
    "references": "11679"
   },
   "expected": {
    "verdict": "ReceiptReferenceOutOfWindow:11679"
   }
  },
  {
   "id": "19-2-reference-720",
   "chapter": "19",
   "section": "2",
   "title": "A receipt with reference_block_height h − 720",
   "kind": "19-receipt-once",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "height": "12400",
    "lookback": "",
    "signatures": "57575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757",
    "published": "",
    "references": "11680"
   },
   "expected": {
    "verdict": "valid"
   }
  },
  {
   "id": "19-2-reference-at-h",
   "chapter": "19",
   "section": "2",
   "title": "A receipt whose reference height is the block's own",
   "kind": "19-receipt-once",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "height": "12400",
    "lookback": "",
    "signatures": "57575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757575757",
    "published": "",
    "references": "12400"
   },
   "expected": {
    "verdict": "ReceiptReferenceOutOfWindow:12400"
   }
  },
  {
   "id": "19-2-batch-full-key",
   "chapter": "19",
   "section": "2",
   "title": "A SendZBCBatch whose payment 0 names an Ethereum full-key form (68 bytes)",
   "kind": "19-tx-in-block",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "unsigned": "01010000013cc7e66a00000000000000005e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f21520200000000e1f505000000004f000000010044040000000d0fdb91231f43aa7416753deddd09c461b7db68d65441bff3e0fc4d3610cdf9b3115082421f9ae5992350fadc69371bbdd93e92544149e312ef860376f39b4f40420f00000000000200000000000000",
    "signature": "e75cffe5ad0dcbd9a28c44512dedf6c8b10a73f25f504a0cc26f50b67b7c86f8773e731ea0bf85ff2df899155fbbbcd97a74478c32775402528176eb0c0b8d05",
    "height": "10"
   },
   "expected": {
    "verdict": "SendZBCBatchTransaction: payment 0: a full-key account form (an Ethereum or Tron key, a Bitcoin key) is not an account: no transaction can be sent from it; name the 20-byte address (rule canonical_account_forms)"
   },
   "note": "Payment 0 names 04000000 followed by the 64-byte key of the 02 §5 test key; the batch is signed by A0."
  },
  {
   "id": "19-2-batch-address",
   "chapter": "19",
   "section": "2",
   "title": "The same batch naming the 20-byte Ethereum address instead",
   "kind": "19-tx-in-block",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "unsigned": "01010000013cc7e66a00000000000000005e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f21520200000000e1f50500000000230000000100180400000036590dc6986e0755e42c7d4c8f385389403230fc40420f00000000000200000000000000",
    "signature": "c30b8719b970b3bec70bbedef9e2ffa45675580a2daf93f202033ca545c44b5e36178e1fdea150d10788fd5d20498c7dce628174dd686bec335575cfc0fa790d",
    "height": "10"
   },
   "expected": {
    "verdict": "valid"
   }
  },
  {
   "id": "19-2-eth-v-01",
   "chapter": "19",
   "section": "2",
   "title": "A SendZBC from an Ethereum-typed sender whose signature verifies but ends in 01",
   "kind": "19-tx-in-block",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "unsigned": "01000000013cc7e66a000000000400000036590dc6986e0755e42c7d4c8f385389403230fc00000000fd4472bbdec43b919aa37b9b3366a3318f2902a753a15f5fd6d43c44b5121b6700e1f505000000000800000040420f00000000000200000000000000",
    "signature": "3ffa78a8a296107b754c4005c9ed0ce020a8f376294f117c0f5d1f046743fe3063e89ccb2dfb38fbaad887da0780297e081c4477292146f61d103d169fc73eee01",
    "height": "10"
   },
   "expected": {
    "verdict": "Ethereum signature recovery id must be 27 or 28"
   },
   "note": "The test key of 02 §5 signs Keccak-256 of the digest; the recovery id is 1, written 01."
  },
  {
   "id": "19-2-eth-v-28",
   "chapter": "19",
   "section": "2",
   "title": "The same signature with last byte 1c (28)",
   "kind": "19-tx-in-block",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "unsigned": "01000000013cc7e66a000000000400000036590dc6986e0755e42c7d4c8f385389403230fc00000000fd4472bbdec43b919aa37b9b3366a3318f2902a753a15f5fd6d43c44b5121b6700e1f505000000000800000040420f00000000000200000000000000",
    "signature": "3ffa78a8a296107b754c4005c9ed0ce020a8f376294f117c0f5d1f046743fe3063e89ccb2dfb38fbaad887da0780297e081c4477292146f61d103d169fc73eee1c",
    "height": "10"
   },
   "expected": {
    "verdict": "valid"
   }
  },
  {
   "id": "19-3-windows",
   "chapter": "19",
   "section": "3",
   "title": "Rounds and windows after block 9",
   "kind": "20-rounds",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "previous_timestamp": "1793509177",
    "rounds": "1\n2",
    "timestamps": "1793509192\n1793509207\n1793509199\n1793509202"
   },
   "expected": {
    "targets": "1793509192\n1793509207",
    "persist": "1793509185..1793509199\n1793509200..1793509214",
    "creation": "1793509185..1793509219\n1793509200..1793509234",
    "timestamp_rounds": "1\n2\n1\n2"
   }
  },
  {
   "id": "19-3-widened",
   "chapter": "19",
   "section": "3",
   "title": "T = P + 22: outside round 1's persist window, inside its 2 s widening",
   "kind": "19-validate-header",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "version": "601",
    "timestamp": "1793509199",
    "total_amount": "0",
    "total_fee": "0",
    "total_coinbase": "197732050",
    "payload_length": "0",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "5e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152",
    "seed": "4cb46a86ec544cd107fed1d2fc2a30318a4fa54701dff7d1c02598f05b09fbda07e847ba79b0a9e57acb64db45810ebe43da8e490c8bef475a404c9519dd0af2",
    "previous_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "seed_proof": "65c4971d4cb7313c4d0c7846494f556022b1476f5de76726819b4b53feacbd0cc6752e89d0b9db1b72000808754553b2aa170f89737e22b9523ec31c3791f739e5f3345e0a9baf76ee7c7f824f74040d",
    "signature": "ea2f3a965c1fe885b6ccfe2cee5292894ba420dd6d5590df1b7cfe1050be36fcd087b68fcbf1ced872f152bad950459fd375c04bc955734a949a53419684c10a",
    "height": "10",
    "block_hash": "",
    "previous_height": "9",
    "previous_block_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "previous_timestamp": "1793509177",
    "is_test_chain": "false",
    "now": "1793509200"
   },
   "expected": {
    "round": "1",
    "verdict": "valid"
   },
   "note": "The version-601 block re-signed over the stamp P + 22."
  },
  {
   "id": "19-3-too-fast",
   "chapter": "19",
   "section": "3",
   "title": "T = P + 5: the gap test runs before the window test",
   "kind": "19-validate-header",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "version": "601",
    "timestamp": "1793509182",
    "total_amount": "0",
    "total_fee": "0",
    "total_coinbase": "197732050",
    "payload_length": "0",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "5e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152",
    "seed": "4cb46a86ec544cd107fed1d2fc2a30318a4fa54701dff7d1c02598f05b09fbda07e847ba79b0a9e57acb64db45810ebe43da8e490c8bef475a404c9519dd0af2",
    "previous_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "seed_proof": "65c4971d4cb7313c4d0c7846494f556022b1476f5de76726819b4b53feacbd0cc6752e89d0b9db1b72000808754553b2aa170f89737e22b9523ec31c3791f739e5f3345e0a9baf76ee7c7f824f74040d",
    "signature": "8ecec16d24a0f5faf3f4e36f46d40804889201fc819fa642f151cda7f6695d36fa0306f350e4d8a295b7bfad80138af877b8ff763bce26e80ebced0426f90505",
    "height": "10",
    "block_hash": "",
    "previous_height": "9",
    "previous_block_hash": "1446492f4cf3718857d8f0e5ea60fc81f01d6f1fdda862d7a73cafcd3215aeb6",
    "previous_timestamp": "1793509177",
    "is_test_chain": "false",
    "now": "1793509200"
   },
   "expected": {
    "verdict": "Block produced too fast (5s < min 15s)"
   }
  },
  {
   "id": "19-4-survival-51",
   "chapter": "19",
   "section": "4",
   "title": "A SetConsensusParam in block 3 of a chain with N = 5",
   "kind": "19-survival-block",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "min_producers": "5",
    "producers": "A, B",
    "height": "3",
    "types": "51"
   },
   "expected": {
    "flag": "true",
    "verdict": "SurvivalMode: transaction type 51 is not accepted while fewer than survival_min_producers distinct producers made the last 120 blocks (survival mode: governance and bridge are frozen until N produce again)",
    "log": "BLOCK REJECTED: Transaction 0/1 in block 3 failed: ValidationError: SurvivalMode: transaction type 51 is not accepted while fewer than survival_min_producers distinct producers made the last 120 blocks (survival mode: governance and bridge are frozen until N produce again)"
   },
   "note": "Refused by the transaction validity of §2 step 11; the executor re-runs it first and logs the same text."
  },
  {
   "id": "19-4-survival-send",
   "chapter": "19",
   "section": "4",
   "title": "A SendZBC in the same block is not frozen",
   "kind": "19-survival-block",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "min_producers": "5",
    "producers": "A, B",
    "height": "3",
    "types": "1"
   },
   "expected": {
    "flag": "true",
    "verdict": "valid"
   }
  },
  {
   "id": "19-4-duplicate-tx",
   "chapter": "19",
   "section": "4",
   "title": "A block carrying one transaction twice",
   "kind": "reference",
   "validity": "invalid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "error": "Duplicate transaction ID in block",
    "state": "no state changes"
   },
   "note": "The apply path's normalisation; it needs the chain to run."
  },
  {
   "id": "19-4-carrier-nonce",
   "chapter": "19",
   "section": "4",
   "title": "An Ethereum carrier with nonce 4 while the account nonce is 3: the block is invalid",
   "kind": "19-carrier-nonce",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "unsigned": "01000000013cc7e66a000000000400000036590dc6986e0755e42c7d4c8f385389403230fc0400000000000000000000000000000000000000000000aac0c62d00000000000800000040420f00000000000200000071000000f86f0485e8d4a510008275309400000000000000000000000000000000000000aa872386f26fc1000080841107c02aa0a8acf6daa683238dbe67d820b86bac1ccd4f2fce60c424c4ea0c89959ac6cbb6a0685fe39d8fed9afca00d9a21840211828ba8d807180beb67f7efa65d1028b3c3",
    "account_nonce": "3",
    "balance": "10000000",
    "height": "10",
    "index": "0",
    "count": "1"
   },
   "expected": {
    "declared_fee": "3000000",
    "verdict": "ForeignCarrierNonce: carrier nonce 4, account nonce 3 (a block carrying it is invalid)",
    "log": "BLOCK REJECTED: Transaction 0/1 in block 10 failed: ValidationError: ForeignCarrierNonce: carrier nonce 4, account nonce 3 (a block carrying it is invalid)",
    "balance": "10000000",
    "nonce": "3",
    "spent": "false"
   },
   "note": "Gas limit 30,000 at 10^12 wei: declared fee 30,000 × 10^12 / 10^10 = 3,000,000. Nothing is written."
  },
  {
   "id": "19-4-carrier-nonce-3",
   "chapter": "19",
   "section": "4",
   "title": "The same carrier with nonce 3: valid, the nonce becomes 4 and the id is spent",
   "kind": "19-carrier-nonce",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "unsigned": "01000000013cc7e66a000000000400000036590dc6986e0755e42c7d4c8f385389403230fc0400000000000000000000000000000000000000000000aac0c62d00000000000800000040420f00000000000200000071000000f86f0385e8d4a510008275309400000000000000000000000000000000000000aa872386f26fc1000080841107c029a0b2f67ec1cfd11951d403e35c5aa9b7307e7b155d7b77df51cb3ccdb9dadbebe4a012219d8451006c1543d2586d48b250bcfafef39dfabec3a700a25076992ad6d3",
    "account_nonce": "3",
    "balance": "10000000",
    "height": "10",
    "index": "0",
    "count": "1"
   },
   "expected": {
    "declared_fee": "3000000",
    "verdict": "valid",
    "nonce": "4",
    "spent": "true"
   },
   "note": "The transfer of 1,000,000 (10^16 wei) is made; the fee is settled as 04 §5 says."
  },
  {
   "id": "19-4-empty-merkle-root",
   "chapter": "19",
   "section": "4",
   "title": "A block with no transactions and an empty merkle_root is stored with 32 zero bytes",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "merkle_root": "0000000000000000000000000000000000000000000000000000000000000000"
   }
  },
  {
   "id": "19-5-bounds",
   "chapter": "19",
   "section": "5",
   "title": "Tip 100: candidates for heights 100, 104 and 105",
   "kind": "19-candidate-bounds",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "tip": "100",
    "heights": "100\n104\n105",
    "max_priority_blocksmiths": "10",
    "max_block_size_bytes": "524288",
    "bytes": "348",
    "pooled": "0"
   },
   "expected": {
    "cap": "8388608",
    "admissions": "at or below the tip\nadmitted\ntoo far ahead of the tip"
   }
  },
  {
   "id": "19-5-full",
   "chapter": "19",
   "section": "5",
   "title": "A candidate that would bring the pool over its byte cap",
   "kind": "19-candidate-bounds",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "tip": "100",
    "heights": "101",
    "max_priority_blocksmiths": "10",
    "max_block_size_bytes": "524288",
    "bytes": "524288",
    "pooled": "8000000"
   },
   "expected": {
    "admissions": "candidate pool: full"
   }
  },
  {
   "id": "19-5-position-0",
   "chapter": "19",
   "section": "5",
   "title": "Candidates at positions 0 and 1, the clock in position 0's window",
   "kind": "19-candidate-select",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "previous_timestamp": "1000",
    "now": "1015",
    "candidates": "1 1030\n0 1015"
   },
   "expected": {
    "selected": "1"
   },
   "note": "The selectable windows [P + 8, P + 22) and [P + 28, P + 37) do not overlap; the clock is in position 0's."
  },
  {
   "id": "19-5-position-1-held",
   "chapter": "19",
   "section": "5",
   "title": "The clock 2 s into round 2's persist window: nothing is selected yet",
   "kind": "19-candidate-select",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "previous_timestamp": "1000",
    "now": "1025",
    "candidates": "1 1030"
   },
   "expected": {
    "selected": "-1"
   },
   "note": "Rounds 2 and later open 5 s into their persist window: round 2 is selectable from P + 28."
  },
  {
   "id": "19-5-position-1",
   "chapter": "19",
   "section": "5",
   "title": "The clock in round 2's selectable window",
   "kind": "19-candidate-select",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "previous_timestamp": "1000",
    "now": "1030",
    "candidates": "1 1030"
   },
   "expected": {
    "selected": "0"
   }
  },
  {
   "id": "19-5-bad-payload",
   "chapter": "19",
   "section": "5",
   "title": "A correctly signed round-1 candidate with a wrong payload hash",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "admitted": "yes",
    "at selection": "InvalidBlockPayload: hash mismatch",
    "then": "removed"
   }
  },
  {
   "id": "19-6-depth-61-ours",
   "chapter": "19",
   "section": "6",
   "title": "Devnet, split 61 deep, a spine block names our block",
   "kind": "24-reach",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "depth": "61",
    "max_rollback_height": "60",
    "common": "939",
    "finalized": "0",
    "side": "ours",
    "heavier": "true"
   },
   "expected": {
    "verdict": "Fork rejected: rollback depth exceeds max_rollback_height limit"
   }
  },
  {
   "id": "19-6-depth-61-heavier",
   "chapter": "19",
   "section": "6",
   "title": "Devnet, split 61 deep, no spine block above it, a heavier branch",
   "kind": "24-reach",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "depth": "61",
    "max_rollback_height": "60",
    "common": "939",
    "finalized": "0",
    "side": "unknown",
    "heavier": "true"
   },
   "expected": {
    "verdict": "wedge: Fork rejected: beyond the rollback bound on a heavier valid branch (wedge)"
   }
  },
  {
   "id": "19-6-budget-720",
   "chapter": "19",
   "section": "6",
   "title": "The attempt budget at max_rollback_height 720",
   "kind": "24-fork-budget",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "max_rollback_height": "720"
   },
   "expected": {
    "fetch_cap": "1540",
    "budget": "240"
   }
  },
  {
   "id": "19-6-compare",
   "chapter": "19",
   "section": "6",
   "title": "9500000 against 10000000",
   "kind": "24-compare",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "fork": "10000000",
    "ours": "9500000",
    "fork_hash": "",
    "our_hash": ""
   },
   "expected": {
    "compare": "1"
   }
  },
  {
   "id": "19-7-table",
   "chapter": "19",
   "section": "7",
   "title": "Outcomes of an arriving block",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "same hash already stored at that height": "duplicate: ignored (receipt answered)",
    "different hash at a stored height, or previous hash not the tip at tip + 1": "fork signal: ignored, resolved by §6",
    "height above tip + 1": "ignored, fetched by sync",
    "a full relayed copy over the serialized limit": "refused before validation, sender charged",
    "any check of §2 fails": "invalid: not stored, sender charged",
    "§4 fails deterministically": "invalid: not stored; a blocksmith evicts the transaction",
    "§4 fails on a local fault or timeout": "not stored here; fetched again",
    "all pass": "stored, tip advanced, survival flag written, mempool reconciled, broadcast if own"
   }
  },
  {
   "id": "19-9-in-window",
   "chapter": "19",
   "section": "9",
   "title": "Block 12,400 carrying the 23 §1 receipt, lookback 12,364 inside [12,340, 12,380]",
   "kind": "19-receipt-once",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "height": "12400",
    "lookback": "12364",
    "signatures": "57c7084dd7426ad269e6c7b53e10251b552eaa678a7078ee78ca52fb935a0f185b67f0c0d5bddcc578fe03a6befef7cad83db01665f93e3126529be707d56d0e",
    "published": "",
    "references": "12364"
   },
   "expected": {
    "verdict": "valid"
   }
  },
  {
   "id": "19-9-twice",
   "chapter": "19",
   "section": "9",
   "title": "Block 12,400 carrying that receipt twice",
   "kind": "19-receipt-once",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "height": "12400",
    "lookback": "12364",
    "signatures": "57c7084dd7426ad269e6c7b53e10251b552eaa678a7078ee78ca52fb935a0f185b67f0c0d5bddcc578fe03a6befef7cad83db01665f93e3126529be707d56d0e\n57c7084dd7426ad269e6c7b53e10251b552eaa678a7078ee78ca52fb935a0f185b67f0c0d5bddcc578fe03a6befef7cad83db01665f93e3126529be707d56d0e",
    "published": ""
   },
   "expected": {
    "verdict": "DuplicateReceiptInBlock"
   }
  },
  {
   "id": "19-9-twice-out-of-range",
   "chapter": "19",
   "section": "9",
   "title": "A block failing both the in-block duplicate and the lookback range",
   "kind": "19-receipt-once",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "height": "12441",
    "lookback": "12364",
    "signatures": "57c7084dd7426ad269e6c7b53e10251b552eaa678a7078ee78ca52fb935a0f185b67f0c0d5bddcc578fe03a6befef7cad83db01665f93e3126529be707d56d0e\n57c7084dd7426ad269e6c7b53e10251b552eaa678a7078ee78ca52fb935a0f185b67f0c0d5bddcc578fe03a6befef7cad83db01665f93e3126529be707d56d0e",
    "published": ""
   },
   "expected": {
    "verdict": "DuplicateReceiptInBlock"
   },
   "note": "The duplicate is tested before the lookback range (§2 Defects (5))."
  },
  {
   "id": "19-9-published",
   "chapter": "19",
   "section": "9",
   "title": "A block at 12,420 carrying the receipt block 12,400 carried",
   "kind": "19-receipt-once",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "height": "12420",
    "lookback": "",
    "signatures": "57c7084dd7426ad269e6c7b53e10251b552eaa678a7078ee78ca52fb935a0f185b67f0c0d5bddcc578fe03a6befef7cad83db01665f93e3126529be707d56d0e",
    "published": "57c7084dd7426ad269e6c7b53e10251b552eaa678a7078ee78ca52fb935a0f185b67f0c0d5bddcc578fe03a6befef7cad83db01665f93e3126529be707d56d0e 12400"
   },
   "expected": {
    "verdict": "ReceiptAlreadyPublished"
   }
  },
  {
   "id": "19-9-out-of-range",
   "chapter": "19",
   "section": "9",
   "title": "The same receipt as the first unlinked receipt of a block at 12,441",
   "kind": "19-receipt-once",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "height": "12441",
    "lookback": "12364",
    "signatures": "57c7084dd7426ad269e6c7b53e10251b552eaa678a7078ee78ca52fb935a0f185b67f0c0d5bddcc578fe03a6befef7cad83db01665f93e3126529be707d56d0e",
    "published": "57c7084dd7426ad269e6c7b53e10251b552eaa678a7078ee78ca52fb935a0f185b67f0c0d5bddcc578fe03a6befef7cad83db01665f93e3126529be707d56d0e 12400"
   },
   "expected": {
    "verdict": "ReceiptLookbackOutOfRange:12364"
   }
  },
  {
   "id": "19-9-outside-window",
   "chapter": "19",
   "section": "9",
   "title": "The receipt carried by a block 41 heights below",
   "kind": "19-receipt-once",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "height": "12441",
    "lookback": "",
    "signatures": "57c7084dd7426ad269e6c7b53e10251b552eaa678a7078ee78ca52fb935a0f185b67f0c0d5bddcc578fe03a6befef7cad83db01665f93e3126529be707d56d0e",
    "published": "57c7084dd7426ad269e6c7b53e10251b552eaa678a7078ee78ca52fb935a0f185b67f0c0d5bddcc578fe03a6befef7cad83db01665f93e3126529be707d56d0e 12400"
   },
   "expected": {
    "verdict": "valid"
   }
  },
  {
   "id": "19-10-frozen-500",
   "chapter": "19",
   "section": "10",
   "title": "A SetConsensusParam in block 500 (flag true)",
   "kind": "19-survival-block",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "min_producers": "5",
    "producers": "[A,B,C,D]*124, A, B, C",
    "height": "500",
    "types": "51"
   },
   "expected": {
    "flag": "true",
    "verdict": "SurvivalMode: transaction type 51 is not accepted while fewer than survival_min_producers distinct producers made the last 120 blocks (survival mode: governance and bridge are frozen until N produce again)"
   }
  },
  {
   "id": "19-10-attest-frozen",
   "chapter": "19",
   "section": "10",
   "title": "An AttestEvent (type 17) in block 500 (flag true)",
   "kind": "19-survival-block",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "min_producers": "5",
    "producers": "[A,B,C,D]*124, A, B, C",
    "height": "500",
    "types": "17"
   },
   "expected": {
    "flag": "true",
    "verdict": "SurvivalMode: transaction type 17 is not accepted while fewer than survival_min_producers distinct producers made the last 120 blocks (survival mode: governance and bridge are frozen until N produce again)"
   }
  },
  {
   "id": "19-10-after-500",
   "chapter": "19",
   "section": "10",
   "title": "A SetConsensusParam in block 501 (flag false)",
   "kind": "19-survival-block",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "min_producers": "5",
    "producers": "[A,B,C,D]*124, A, B, C, E",
    "height": "501",
    "types": "51"
   },
   "expected": {
    "flag": "false",
    "verdict": "valid"
   }
  }
 ]
}
