{
 "format": "zoobc-conformance-vectors/1",
 "edition": "0.6.1",
 "chapter": "05",
 "license": "CC BY 4.0, ZooBC Foundation",
 "cases": [
  {
   "id": "05-1-block1-fields",
   "chapter": "05",
   "section": "1",
   "title": "The header fields of the block 1 of §1",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "version": "601",
    "height": "1",
    "timestamp": "1793509042",
    "total_amount": "0",
    "total_fee": "0",
    "total_coinbase": "0",
    "payload_length": "0",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "transactions": "0",
    "merkle_root": "0000000000000000000000000000000000000000000000000000000000000000",
    "merkle_tree": "",
    "reference_block_height": "0",
    "cumulative_difficulty": "1000000",
    "previous_block_hash": "3a2897e7c5ad6143429bab33a92d14d11ffd6fc281f2b62a6fd6b49c183b863d",
    "blocksmith_public_key": "8a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c"
   },
   "note": "15 s after the genesis timestamp of the TestNet file, on its genesis hash (06 §3); a format vector, not a block of a chain."
  },
  {
   "id": "05-2-block1-bytes",
   "chapter": "05",
   "section": "2",
   "title": "The 284 unsigned header bytes of the block 1",
   "kind": "block-header",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "version": "601",
    "timestamp": "1793509042",
    "total_amount": "0",
    "total_fee": "0",
    "total_coinbase": "0",
    "payload_length": "0",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "8a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c",
    "seed": "0aaaaa1285e87f89b1bddb73cebe33ee2966bf8d3291c4032bfa0445fa8aa242f50ec37f4d2315be1345bbbb2ed60ee130002e92a42a10c54e00018f69fd85b3",
    "previous_hash": "3a2897e7c5ad6143429bab33a92d14d11ffd6fc281f2b62a6fd6b49c183b863d",
    "seed_proof": "542529a7c6e4557c0b133b605bfeda1850e8a6fcee80fa47fd892482afa6f4c8cd092d802ef89d6748dd49437f9a3b385c4869b410f02c864a3dc81b3d2d766796fc724a3dca71fe10e5c0b80cfa1d0b",
    "signature": "6b9a7c6a325346f802dc42d4433792fa3f7aaaf20400498d84747b92de35d1ed5edc621482a2b6cf75e9f00866137d8d6fbe96b2107f996d5b6c55abe679f50c"
   },
   "expected": {
    "unsigned": "59020000b2c6e66a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c0aaaaa1285e87f89b1bddb73cebe33ee2966bf8d3291c4032bfa0445fa8aa242f50ec37f4d2315be1345bbbb2ed60ee130002e92a42a10c54e00018f69fd85b33a2897e7c5ad6143429bab33a92d14d11ffd6fc281f2b62a6fd6b49c183b863d542529a7c6e4557c0b133b605bfeda1850e8a6fcee80fa47fd892482afa6f4c8cd092d802ef89d6748dd49437f9a3b385c4869b410f02c864a3dc81b3d2d766796fc724a3dca71fe10e5c0b80cfa1d0b",
    "length": "284"
   }
  },
  {
   "id": "05-3-block1-sign",
   "chapter": "05",
   "section": "3",
   "title": "The block 1 signed with the seed 01 x 32 (Ed25519 is deterministic)",
   "kind": "block-header",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "version": "601",
    "timestamp": "1793509042",
    "total_amount": "0",
    "total_fee": "0",
    "total_coinbase": "0",
    "payload_length": "0",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "8a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c",
    "seed": "0aaaaa1285e87f89b1bddb73cebe33ee2966bf8d3291c4032bfa0445fa8aa242f50ec37f4d2315be1345bbbb2ed60ee130002e92a42a10c54e00018f69fd85b3",
    "previous_hash": "3a2897e7c5ad6143429bab33a92d14d11ffd6fc281f2b62a6fd6b49c183b863d",
    "seed_proof": "542529a7c6e4557c0b133b605bfeda1850e8a6fcee80fa47fd892482afa6f4c8cd092d802ef89d6748dd49437f9a3b385c4869b410f02c864a3dc81b3d2d766796fc724a3dca71fe10e5c0b80cfa1d0b",
    "signature": "",
    "signing_seed": "0101010101010101010101010101010101010101010101010101010101010101"
   },
   "expected": {
    "signature": "6b9a7c6a325346f802dc42d4433792fa3f7aaaf20400498d84747b92de35d1ed5edc621482a2b6cf75e9f00866137d8d6fbe96b2107f996d5b6c55abe679f50c",
    "signature_valid": "true"
   }
  },
  {
   "id": "05-3-block1-signature",
   "chapter": "05",
   "section": "3",
   "title": "The block 1's signature verifies over its 284 unsigned bytes",
   "kind": "block-header",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "version": "601",
    "timestamp": "1793509042",
    "total_amount": "0",
    "total_fee": "0",
    "total_coinbase": "0",
    "payload_length": "0",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "8a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c",
    "seed": "0aaaaa1285e87f89b1bddb73cebe33ee2966bf8d3291c4032bfa0445fa8aa242f50ec37f4d2315be1345bbbb2ed60ee130002e92a42a10c54e00018f69fd85b3",
    "previous_hash": "3a2897e7c5ad6143429bab33a92d14d11ffd6fc281f2b62a6fd6b49c183b863d",
    "seed_proof": "542529a7c6e4557c0b133b605bfeda1850e8a6fcee80fa47fd892482afa6f4c8cd092d802ef89d6748dd49437f9a3b385c4869b410f02c864a3dc81b3d2d766796fc724a3dca71fe10e5c0b80cfa1d0b",
    "signature": "6b9a7c6a325346f802dc42d4433792fa3f7aaaf20400498d84747b92de35d1ed5edc621482a2b6cf75e9f00866137d8d6fbe96b2107f996d5b6c55abe679f50c"
   },
   "expected": {
    "signature_valid": "true"
   }
  },
  {
   "id": "05-3-signature-204",
   "chapter": "05",
   "section": "3",
   "title": "The same signature over the first 204 bytes only does not verify",
   "kind": "ed25519-verify",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "public_key": "8a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c",
    "message": "59020000b2c6e66a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c0aaaaa1285e87f89b1bddb73cebe33ee2966bf8d3291c4032bfa0445fa8aa242f50ec37f4d2315be1345bbbb2ed60ee130002e92a42a10c54e00018f69fd85b33a2897e7c5ad6143429bab33a92d14d11ffd6fc281f2b62a6fd6b49c183b863d",
    "signature": "6b9a7c6a325346f802dc42d4433792fa3f7aaaf20400498d84747b92de35d1ed5edc621482a2b6cf75e9f00866137d8d6fbe96b2107f996d5b6c55abe679f50c"
   },
   "expected": {
    "valid": "false"
   }
  },
  {
   "id": "05-4-block1-hash",
   "chapter": "05",
   "section": "4",
   "title": "The block 1's hash and id from its 348 signed bytes",
   "kind": "block-header",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "version": "601",
    "timestamp": "1793509042",
    "total_amount": "0",
    "total_fee": "0",
    "total_coinbase": "0",
    "payload_length": "0",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "8a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c",
    "seed": "0aaaaa1285e87f89b1bddb73cebe33ee2966bf8d3291c4032bfa0445fa8aa242f50ec37f4d2315be1345bbbb2ed60ee130002e92a42a10c54e00018f69fd85b3",
    "previous_hash": "3a2897e7c5ad6143429bab33a92d14d11ffd6fc281f2b62a6fd6b49c183b863d",
    "seed_proof": "542529a7c6e4557c0b133b605bfeda1850e8a6fcee80fa47fd892482afa6f4c8cd092d802ef89d6748dd49437f9a3b385c4869b410f02c864a3dc81b3d2d766796fc724a3dca71fe10e5c0b80cfa1d0b",
    "signature": "6b9a7c6a325346f802dc42d4433792fa3f7aaaf20400498d84747b92de35d1ed5edc621482a2b6cf75e9f00866137d8d6fbe96b2107f996d5b6c55abe679f50c"
   },
   "expected": {
    "hash": "c056a43b22436827a0b979d4725c579e6768fba0bab7c8941e69142fcf29f6fb",
    "id": "2839593379365672640"
   },
   "note": "The top bit of byte 7 is clear, so the id is positive."
  },
  {
   "id": "05-4-id-derived",
   "chapter": "05",
   "section": "4",
   "title": "A block id read from the hash",
   "kind": "05-block-id",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "hash": "c056a43b22436827a0b979d4725c579e6768fba0bab7c8941e69142fcf29f6fb",
    "carried_id": "0"
   },
   "expected": {
    "id": "2839593379365672640"
   }
  },
  {
   "id": "05-4-id-mismatch",
   "chapter": "05",
   "section": "4",
   "title": "The block 1 carrying id 1",
   "kind": "05-block-id",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "hash": "c056a43b22436827a0b979d4725c579e6768fba0bab7c8941e69142fcf29f6fb",
    "carried_id": "1"
   },
   "expected": {
    "error": "InvalidID: block ID mismatch"
   }
  },
  {
   "id": "05-4-id-zero",
   "chapter": "05",
   "section": "4",
   "title": "A hash whose first 8 bytes are zero gives id 0",
   "kind": "05-block-id",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "hash": "0000000000000000a0b979d4725c579e6768fba0bab7c8941e69142fcf29f6fb",
    "carried_id": "0"
   },
   "expected": {
    "error": "InvalidID: block ID is zero"
   }
  },
  {
   "id": "05-5-block1-seed",
   "chapter": "05",
   "section": "5",
   "title": "The block 1's seed is the ECVRF output over SHA3-256 of the genesis block's 64 zero seed bytes",
   "kind": "05-block-seed",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "previous_seed": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "8a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c",
    "seed": "0aaaaa1285e87f89b1bddb73cebe33ee2966bf8d3291c4032bfa0445fa8aa242f50ec37f4d2315be1345bbbb2ed60ee130002e92a42a10c54e00018f69fd85b3",
    "seed_proof": "542529a7c6e4557c0b133b605bfeda1850e8a6fcee80fa47fd892482afa6f4c8cd092d802ef89d6748dd49437f9a3b385c4869b410f02c864a3dc81b3d2d766796fc724a3dca71fe10e5c0b80cfa1d0b"
   },
   "expected": {
    "alpha": "070fa1ab6fcc557ed14d42941f1967693048551eb9042a8d0a057afbd75e81e0",
    "output": "0aaaaa1285e87f89b1bddb73cebe33ee2966bf8d3291c4032bfa0445fa8aa242f50ec37f4d2315be1345bbbb2ed60ee130002e92a42a10c54e00018f69fd85b3",
    "counter": "34"
   },
   "note": "Every chain's block 1 has this alpha; the seed differs with the blocksmith's key."
  },
  {
   "id": "05-5-no-proof",
   "chapter": "05",
   "section": "5",
   "title": "The block 1 carried with an empty proof",
   "kind": "05-block-seed",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "previous_seed": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "8a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c",
    "seed": "0aaaaa1285e87f89b1bddb73cebe33ee2966bf8d3291c4032bfa0445fa8aa242f50ec37f4d2315be1345bbbb2ed60ee130002e92a42a10c54e00018f69fd85b3",
    "seed_proof": ""
   },
   "expected": {
    "error": "Block seed: rule seed_vrf requires the 80-byte VRF proof in the header (got 0 bytes)"
   }
  },
  {
   "id": "05-5-wrong-seed",
   "chapter": "05",
   "section": "5",
   "title": "The block 1 carried with the seed's first byte changed to 0b",
   "kind": "05-block-seed",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "previous_seed": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "8a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c",
    "seed": "0baaaa1285e87f89b1bddb73cebe33ee2966bf8d3291c4032bfa0445fa8aa242f50ec37f4d2315be1345bbbb2ed60ee130002e92a42a10c54e00018f69fd85b3",
    "seed_proof": "542529a7c6e4557c0b133b605bfeda1850e8a6fcee80fa47fd892482afa6f4c8cd092d802ef89d6748dd49437f9a3b385c4869b410f02c864a3dc81b3d2d766796fc724a3dca71fe10e5c0b80cfa1d0b"
   },
   "expected": {
    "error": "Block seed: the seed is not the VRF proof's output"
   }
  },
  {
   "id": "05-5-short-seed",
   "chapter": "05",
   "section": "5",
   "title": "A 32-byte seed",
   "kind": "05-block-seed",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "previous_seed": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "blocksmith": "8a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c",
    "seed": "0aaaaa1285e87f89b1bddb73cebe33ee2966bf8d3291c4032bfa0445fa8aa242",
    "seed_proof": "542529a7c6e4557c0b133b605bfeda1850e8a6fcee80fa47fd892482afa6f4c8cd092d802ef89d6748dd49437f9a3b385c4869b410f02c864a3dc81b3d2d766796fc724a3dca71fe10e5c0b80cfa1d0b"
   },
   "expected": {
    "error": "Invalid block seed size: expected 64 bytes, got 32"
   }
  },
  {
   "id": "05-6-one-tx",
   "chapter": "05",
   "section": "6",
   "title": "The payload of one transaction",
   "kind": "05-payload",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "transactions": "058c3078711492773af075a3b4dd07b44a7e17bd3b3ea985f64677af96a4e467 8",
    "receipts": ""
   },
   "expected": {
    "payload_hash": "6a528d7fa9daed78d8ff573b0459d0b55c5518f5a0116c2a23c738cd9433f296",
    "payload_length": "8"
   }
  },
  {
   "id": "05-6-tx-receipt",
   "chapter": "05",
   "section": "6",
   "title": "The payload of one transaction and one receipt",
   "kind": "05-payload",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "transactions": "058c3078711492773af075a3b4dd07b44a7e17bd3b3ea985f64677af96a4e467 8",
    "receipts": "02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2eb89f581920cac9343663a33911d76cef5c89390f25865651d902792b881ad65040000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d010000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222"
   },
   "expected": {
    "payload_hash": "4bcf1f0a1cce081f9c4a1e6845dc8a94d1bb4d880c6de2768a80273534d765ce",
    "payload_length": "240"
   }
  },
  {
   "id": "05-6-empty-rmr",
   "chapter": "05",
   "section": "6",
   "title": "The same receipt with an empty rmr",
   "kind": "05-payload",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "transactions": "058c3078711492773af075a3b4dd07b44a7e17bd3b3ea985f64677af96a4e467 8",
    "receipts": "02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2eb89f581920cac9343663a33911d76cef5c89390f25865651d902792b881ad65040000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d010000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d22222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222"
   },
   "expected": {
    "payload_hash": "6471dd1948df282060ae6f24b0519b4892a34725fe788869b6bf30c1366fba88",
    "payload_length": "208"
   }
  },
  {
   "id": "05-6-empty",
   "chapter": "05",
   "section": "6",
   "title": "An empty block",
   "kind": "05-payload",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "transactions": "",
    "receipts": ""
   },
   "expected": {
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000",
    "payload_length": "0"
   }
  },
  {
   "id": "05-6-ten-receipts",
   "chapter": "05",
   "section": "6",
   "title": "One 24-byte-body transaction and ten receipts of 232 bytes",
   "kind": "05-payload",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "transactions": "058c3078711492773af075a3b4dd07b44a7e17bd3b3ea985f64677af96a4e467 24",
    "receipts": "02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2eb89f581920cac9343663a33911d76cef5c89390f25865651d902792b881ad65040000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d010000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222\n02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2eb89f581920cac9343663a33911d76cef5c89390f25865651d902792b881ad65040000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d010000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222\n02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2eb89f581920cac9343663a33911d76cef5c89390f25865651d902792b881ad65040000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d010000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222\n02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2eb89f581920cac9343663a33911d76cef5c89390f25865651d902792b881ad65040000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d010000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222\n02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2eb89f581920cac9343663a33911d76cef5c89390f25865651d902792b881ad65040000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d010000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222\n02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2eb89f581920cac9343663a33911d76cef5c89390f25865651d902792b881ad65040000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d010000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222\n02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2eb89f581920cac9343663a33911d76cef5c89390f25865651d902792b881ad65040000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d010000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222\n02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2eb89f581920cac9343663a33911d76cef5c89390f25865651d902792b881ad65040000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d010000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222\n02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2eb89f581920cac9343663a33911d76cef5c89390f25865651d902792b881ad65040000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d010000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222\n02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2eb89f581920cac9343663a33911d76cef5c89390f25865651d902792b881ad65040000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d010000005ed806141b8b1c9ec9bd826ceca62f2ac26f286134380088dafb258ea60a3b0d111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222"
   },
   "expected": {
    "payload_length": "2344"
   }
  },
  {
   "id": "05-6-length-mismatch",
   "chapter": "05",
   "section": "6",
   "title": "The one-transaction payload carrying payload_length 9",
   "kind": "05-payload",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "transactions": "058c3078711492773af075a3b4dd07b44a7e17bd3b3ea985f64677af96a4e467 8",
    "receipts": "",
    "carried_length": "9"
   },
   "expected": {
    "error": "InvalidBlockPayload: length mismatch (calculated=8, block=9)"
   }
  },
  {
   "id": "05-7-one",
   "chapter": "05",
   "section": "7",
   "title": "One transaction: the root is its hash",
   "kind": "05-tx-merkle-root",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "hashes": "058c3078711492773af075a3b4dd07b44a7e17bd3b3ea985f64677af96a4e467",
    "carried": ""
   },
   "expected": {
    "root": "058c3078711492773af075a3b4dd07b44a7e17bd3b3ea985f64677af96a4e467"
   }
  },
  {
   "id": "05-7-two",
   "chapter": "05",
   "section": "7",
   "title": "Two transactions: SHA3-256 of the two hashes",
   "kind": "05-tx-merkle-root",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "hashes": "058c3078711492773af075a3b4dd07b44a7e17bd3b3ea985f64677af96a4e467\n4c337c698be6890c83c2f073c37440b653954c6a37ad304c0c726f2b9e02ab08",
    "carried": ""
   },
   "expected": {
    "root": "de9518925e3fc4cf9ab25988e753145b39b3d39e7c4f87c02715fae131525ba3"
   }
  },
  {
   "id": "05-7-five",
   "chapter": "05",
   "section": "7",
   "title": "Five transactions: the fifth paired with itself at levels 0 and 1",
   "kind": "05-tx-merkle-root",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "hashes": "058c3078711492773af075a3b4dd07b44a7e17bd3b3ea985f64677af96a4e467\n4c337c698be6890c83c2f073c37440b653954c6a37ad304c0c726f2b9e02ab08\nfe39bb442ba395d308ffd517932f961bfa80365f3888fea2911ae73ccd9f586f\n5c4065ebfa7de0fa63edfcbe5c773b3ea942bc9563e6b5d1244a47eef330f988\n70fbd2a3fc8b2b2191003e42ba58f9ef11ec79691161faf9427fd6e597809c58",
    "carried": ""
   },
   "expected": {
    "root": "4b6a6d132cbfb25c02b79ee93062deacc52a7f92e78fb47c97749cc8210eb2dc"
   }
  },
  {
   "id": "05-7-none",
   "chapter": "05",
   "section": "7",
   "title": "A block without transactions (the block 1)",
   "kind": "05-tx-merkle-root",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "hashes": "",
    "carried": ""
   },
   "expected": {
    "root": "0000000000000000000000000000000000000000000000000000000000000000"
   }
  },
  {
   "id": "05-7-wrong",
   "chapter": "05",
   "section": "7",
   "title": "The two-transaction block carrying the root 00…01",
   "kind": "05-tx-merkle-root",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "hashes": "058c3078711492773af075a3b4dd07b44a7e17bd3b3ea985f64677af96a4e467\n4c337c698be6890c83c2f073c37440b653954c6a37ad304c0c726f2b9e02ab08",
    "carried": "0000000000000000000000000000000000000000000000000000000000000001"
   },
   "expected": {
    "error": "Invalid merkle root"
   }
  },
  {
   "id": "05-8-fee-two",
   "chapter": "05",
   "section": "8",
   "title": "Two transactions declaring fees 5,000,000 and 5,000,000",
   "kind": "05-total-fee",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "fees": "5000000\n5000000",
    "carried": "10000000"
   },
   "expected": {
    "total_fee": "10000000"
   }
  },
  {
   "id": "05-8-fee-empty",
   "chapter": "05",
   "section": "8",
   "title": "The block 1's total fee",
   "kind": "05-total-fee",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "fees": "",
    "carried": "0"
   },
   "expected": {
    "total_fee": "0"
   }
  },
  {
   "id": "05-8-fee-wraps",
   "chapter": "05",
   "section": "8",
   "title": "The sum wraps in 64 bits",
   "kind": "05-total-fee",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "fees": "9223372036854775807\n1",
    "carried": ""
   },
   "expected": {
    "total_fee": "-9223372036854775808"
   }
  },
  {
   "id": "05-8-fee-mismatch",
   "chapter": "05",
   "section": "8",
   "title": "A carried total fee one unit off",
   "kind": "05-total-fee",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "fees": "5000000\n5000000",
    "carried": "10000001"
   },
   "expected": {
    "error": "Block total fee mismatch"
   }
  },
  {
   "id": "05-8-coinbase-1",
   "chapter": "05",
   "section": "8",
   "title": "Block 1 carries exactly 0",
   "kind": "05-coinbase-check",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "height": "1",
    "total_coinbase": "0",
    "schedule": "123456"
   },
   "expected": {
    "expected": "0"
   }
  },
  {
   "id": "05-8-coinbase-2",
   "chapter": "05",
   "section": "8",
   "title": "A block at height 2 carries its interval's schedule",
   "kind": "05-coinbase-check",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "height": "2",
    "total_coinbase": "197732142",
    "schedule": "197732142"
   },
   "expected": {
    "expected": "197732142"
   }
  },
  {
   "id": "05-8-coinbase-2-zero",
   "chapter": "05",
   "section": "8",
   "title": "A block at height 2 carrying total_coinbase 0",
   "kind": "05-coinbase-check",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "height": "2",
    "total_coinbase": "0",
    "schedule": "197732142"
   },
   "expected": {
    "error": "total_coinbase below emission schedule: got 0, schedule 197732142"
   }
  },
  {
   "id": "05-8-coinbase-over",
   "chapter": "05",
   "section": "8",
   "title": "A block at height 2 carrying one unit above the schedule",
   "kind": "05-coinbase-check",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "height": "2",
    "total_coinbase": "197732143",
    "schedule": "197732142"
   },
   "expected": {
    "error": "total_coinbase exceeds emission schedule: got 197732143, max 197732142"
   }
  },
  {
   "id": "05-8-version-601",
   "chapter": "05",
   "section": "8",
   "title": "The block 1 carries version 601: the newest active bundle is 601 from height 1",
   "kind": "05-block-version",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "version": "601",
    "height": "1"
   },
   "expected": {
    "valid": "true"
   }
  },
  {
   "id": "05-8-version-600",
   "chapter": "05",
   "section": "8",
   "title": "The block 1 carrying version 600 is invalid",
   "kind": "05-block-version",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "version": "600",
    "height": "1"
   },
   "expected": {
    "error": "Block version 600 is below the active bundle 601 (activation_readiness_gate)"
   },
   "note": "24 rules carry bundle id 601 and every genesis file lists them at height 0."
  },
  {
   "id": "05-8-version-0",
   "chapter": "05",
   "section": "8",
   "title": "The block 1 carrying version 0",
   "kind": "05-block-version",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "version": "0",
    "height": "1"
   },
   "expected": {
    "error": "Invalid block version"
   }
  },
  {
   "id": "05-9-height-1",
   "chapter": "05",
   "section": "9",
   "title": "Block 1 by the first blocksmith of its round, the draw set the whole registry",
   "kind": "05-cumulative-difficulty",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "k": "1",
    "draw_set": "11",
    "active": "11",
    "divisor": "1000000",
    "previous": "0",
    "carried": "1000000"
   },
   "expected": {
    "increment": "1000000",
    "value": "1000000"
   }
  },
  {
   "id": "05-9-height-2",
   "chapter": "05",
   "section": "9",
   "title": "Block 2 of four such blocks in a row",
   "kind": "05-cumulative-difficulty",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "k": "1",
    "draw_set": "11",
    "active": "11",
    "divisor": "1000000",
    "previous": "1000000",
    "carried": "2000000"
   },
   "expected": {
    "value": "2000000"
   }
  },
  {
   "id": "05-9-height-3",
   "chapter": "05",
   "section": "9",
   "title": "Block 3 of four such blocks in a row",
   "kind": "05-cumulative-difficulty",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "k": "1",
    "draw_set": "11",
    "active": "11",
    "divisor": "1000000",
    "previous": "2000000",
    "carried": "3000000"
   },
   "expected": {
    "value": "3000000"
   }
  },
  {
   "id": "05-9-height-4",
   "chapter": "05",
   "section": "9",
   "title": "Block 4 of four such blocks in a row",
   "kind": "05-cumulative-difficulty",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "k": "1",
    "draw_set": "11",
    "active": "11",
    "divisor": "1000000",
    "previous": "3000000",
    "carried": "4000000"
   },
   "expected": {
    "value": "4000000"
   }
  },
  {
   "id": "05-9-k-2",
   "chapter": "05",
   "section": "9",
   "title": "A block produced at k = 2 with |S| = |A| adds 500,000",
   "kind": "05-cumulative-difficulty",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "k": "2",
    "draw_set": "11",
    "active": "11",
    "divisor": "1000000",
    "previous": "1000000"
   },
   "expected": {
    "increment": "500000",
    "value": "1500000"
   }
  },
  {
   "id": "05-9-s-3",
   "chapter": "05",
   "section": "9",
   "title": "A block produced at k = 1 with |S| = 3 of |A| = 11 adds 272,727",
   "kind": "05-cumulative-difficulty",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "k": "1",
    "draw_set": "3",
    "active": "11",
    "divisor": "1000000",
    "previous": "1000000"
   },
   "expected": {
    "increment": "272727",
    "value": "1272727"
   }
  },
  {
   "id": "05-9-mismatch",
   "chapter": "05",
   "section": "9",
   "title": "The block 1 carrying 1000001",
   "kind": "05-cumulative-difficulty",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "k": "1",
    "draw_set": "11",
    "active": "11",
    "divisor": "1000000",
    "previous": "0",
    "carried": "1000001"
   },
   "expected": {
    "error": "Cumulative difficulty mismatch: expected 1000000, got '1000001'"
   }
  },
  {
   "id": "05-10-count-2001",
   "chapter": "05",
   "section": "10",
   "title": "A block whose ceiling count is 2,001",
   "kind": "05-block-ceilings",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "transactions": "1x2001",
    "payload_length": "0",
    "max_transactions": "2000",
    "max_bytes": "524288"
   },
   "expected": {
    "error": "Too many transactions in block (2001 > 2000)"
   }
  },
  {
   "id": "05-10-batch-25",
   "chapter": "05",
   "section": "10",
   "title": "A block of one SendZBCBatch of 25 payments counts 25",
   "kind": "05-block-ceilings",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "transactions": "257x25",
    "payload_length": "1127",
    "max_transactions": "2000",
    "max_bytes": "524288"
   },
   "expected": {
    "count": "25"
   }
  },
  {
   "id": "05-10-merkle-tree",
   "chapter": "05",
   "section": "10",
   "title": "A block carrying a 1-byte merkle_tree",
   "kind": "block-size",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed_proof": "true",
    "transactions": "",
    "receipts": "0",
    "receipt_proofs": "",
    "merkle_tree": "1",
    "max_block_size_bytes": "524288"
   },
   "expected": {
    "size": "348",
    "verdict": "BlockTooLarge: a main block carries no merkle_tree (1 bytes attached)"
   }
  },
  {
   "id": "05-10-two-from-one",
   "chapter": "05",
   "section": "10",
   "title": "A block carrying two transactions of one sender",
   "kind": "05-one-per-account",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "senders": "000000005e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152\n000000005e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152"
   },
   "expected": {
    "error": "Block carries two transactions from one account (000000005e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152, transactions 0 and 1): one transaction per account per block"
   }
  },
  {
   "id": "05-10-two-senders",
   "chapter": "05",
   "section": "10",
   "title": "Two transactions of two senders",
   "kind": "05-one-per-account",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "senders": "000000005e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152\n00000000fd4472bbdec43b919aa37b9b3366a3318f2902a753a15f5fd6d43c44b5121b67"
   },
   "expected": {
    "valid": "true"
   }
  },
  {
   "id": "05-10_1-block1",
   "chapter": "05",
   "section": "10.1",
   "title": "The block 1: a header and nothing else",
   "kind": "block-size",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed_proof": "true",
    "receipt_proofs": "",
    "merkle_tree": "0",
    "max_block_size_bytes": "524288",
    "transactions": "",
    "receipts": "0"
   },
   "expected": {
    "size": "348",
    "verdict": "valid"
   }
  },
  {
   "id": "05-10_1-tx-2-receipts",
   "chapter": "05",
   "section": "10.1",
   "title": "The version-3 SendZBC and two receipts",
   "kind": "block-size",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed_proof": "true",
    "receipt_proofs": "",
    "merkle_tree": "0",
    "max_block_size_bytes": "524288",
    "transactions": "189",
    "receipts": "2"
   },
   "expected": {
    "size": "3113",
    "verdict": "valid"
   }
  },
  {
   "id": "05-10_1-createapp-10-receipts",
   "chapter": "05",
   "section": "10.1",
   "title": "One 169-byte CreateApp and ten receipts",
   "kind": "block-size",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed_proof": "true",
    "receipt_proofs": "",
    "merkle_tree": "0",
    "max_block_size_bytes": "524288",
    "transactions": "169",
    "receipts": "10"
   },
   "expected": {
    "size": "13397",
    "verdict": "valid"
   }
  },
  {
   "id": "05-10_1-over",
   "chapter": "05",
   "section": "10.1",
   "title": "Seven 189-byte SendZBCs and two receipts at the smallest limit, 4,096",
   "kind": "block-size",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "seed_proof": "true",
    "receipt_proofs": "",
    "merkle_tree": "0",
    "max_block_size_bytes": "4096",
    "transactions": "189\n189\n189\n189\n189\n189\n189",
    "receipts": "2"
   },
   "expected": {
    "size": "4247",
    "verdict": "BlockTooLarge: serialized 4247 bytes over the limit 4096"
   },
   "note": "Its payload_length, 7 x 8 + 2 x 232 = 520, passes the payload-length ceiling."
  },
  {
   "id": "05-10_1-trimmed",
   "chapter": "05",
   "section": "10.1",
   "title": "The blocksmith drops the last SendZBC: 4,058 bytes",
   "kind": "block-size",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed_proof": "true",
    "receipt_proofs": "",
    "merkle_tree": "0",
    "max_block_size_bytes": "4096",
    "transactions": "189\n189\n189\n189\n189\n189",
    "receipts": "2"
   },
   "expected": {
    "size": "4058",
    "verdict": "valid"
   }
  },
  {
   "id": "05-11-too-many-ids",
   "chapter": "05",
   "section": "11",
   "title": "A SendBlock carrying 2,001 transaction ids on a chain of 2,000",
   "kind": "reference",
   "validity": "invalid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "error": "Too many transaction IDs in block",
    "grpc": "INVALID_ARGUMENT"
   }
  },
  {
   "id": "05-12-node",
   "chapter": "05",
   "section": "12",
   "title": "A node's JSON for the block 1",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "height": "1",
    "version": "601",
    "timestamp": "1793509042",
    "previous_block_hash": "3a2897e7c5ad6143429bab33a92d14d11ffd6fc281f2b62a6fd6b49c183b863d",
    "block_seed": "0aaaaa1285e87f89b1bddb73cebe33ee2966bf8d3291c4032bfa0445fa8aa242f50ec37f4d2315be1345bbbb2ed60ee130002e92a42a10c54e00018f69fd85b3",
    "block_seed_proof": "542529a7c6e4557c0b133b605bfeda1850e8a6fcee80fa47fd892482afa6f4c8cd092d802ef89d6748dd49437f9a3b385c4869b410f02c864a3dc81b3d2d766796fc724a3dca71fe10e5c0b80cfa1d0b",
    "block_signature": "6b9a7c6a325346f802dc42d4433792fa3f7aaaf20400498d84747b92de35d1ed5edc621482a2b6cf75e9f00866137d8d6fbe96b2107f996d5b6c55abe679f50c",
    "cumulative_difficulty": "1000000",
    "blocksmith_public_key": "8a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c",
    "total_amount": "0",
    "total_fee": "0",
    "total_coinbase": "0",
    "block_hash": "c056a43b22436827a0b979d4725c579e6768fba0bab7c8941e69142fcf29f6fb",
    "merkle_root": "0000000000000000000000000000000000000000000000000000000000000000",
    "merkle_tree": "",
    "reference_block_height": "0",
    "transaction_count": "0"
   },
   "note": "GET /api/v1/blocks/height/1."
  },
  {
   "id": "05-12-archival",
   "chapter": "05",
   "section": "12",
   "title": "The archival's JSON for the block 1",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "block_hash": "C056A43B22436827A0B979D4725C579E6768FBA0BAB7C8941E69142FCF29F6FB",
    "hash": "C056A43B22436827A0B979D4725C579E6768FBA0BAB7C8941E69142FCF29F6FB",
    "height": "1",
    "payload_length": "0",
    "previous_block_hash": "3A2897E7C5AD6143429BAB33A92D14D11FFD6FC281F2B62A6FD6B49C183B863D",
    "previous_hash": "3A2897E7C5AD6143429BAB33A92D14D11FFD6FC281F2B62A6FD6B49C183B863D",
    "release": "0.6.1",
    "timestamp": "1793509042",
    "total_coinbase": "0",
    "total_fee": "0",
    "transaction_count": "0",
    "tx_count": "0",
    "version": "601"
   },
   "note": "Upper-case hex; release is the archival's own version text."
  }
 ]
}
