{
 "format": "zoobc-conformance-vectors/1",
 "edition": "0.6.1",
 "chapter": "33",
 "license": "CC BY 4.0, ZooBC Foundation",
 "cases": [
  {
   "id": "33-1-identity",
   "chapter": "33",
   "section": "1",
   "title": "The TestNet's identity, from its shipped genesis files",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "chain_id": "zoobc-test",
    "spine_chain_id": "zoobc-spine-test",
    "config_hash": "b4d46ec1c521cbd143109591bdc5188c76e120779a048f858a5b2c29125ab381",
    "genesis_hash": "3a2897e7c5ad6143429bab33a92d14d11ffd6fc281f2b62a6fd6b49c183b863d",
    "block_0_id": "4855352938787711034",
    "genesis_timestamp": "1793509027",
    "spine_genesis_hash": "7cd929c4d52d9c9455ed179d24a65f90ecbf3d1a3e1214a19611635791b3545c",
    "spine_smithing_period": "86400",
    "block_version": "601",
    "rules": "125",
    "bundle_601_rules": "24",
    "genesis_registered_nodes": "11",
    "accounts": "61",
    "genesis_tokens": "14",
    "counted_seats": "11",
    "survival_min_producers": "5"
   },
   "note": "A launch that restamps the file's timestamp changes the genesis hash (06 §12); the node announces the live value as genesis_hash on GET /api/v1/node/info."
  },
  {
   "id": "33-1-identity-devnet",
   "chapter": "33",
   "section": "1",
   "title": "The DevNet's identity, from its shipped genesis files",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "chain_id": "zoobc-dev",
    "spine_chain_id": "zoobc-spine-dev",
    "config_hash": "442a9ea5cd5ab99f49ecaf80cc581e1961485e3909a6ab1a3c5c81380eb4b9d6",
    "genesis_hash": "a37b1692ec47c7b17a7f9cb4c13cc8a73a1d5e843565a5733b9da2a544df99f8",
    "block_0_id": "-5636457327242085469",
    "genesis_timestamp": "1793509027",
    "spine_genesis_hash": "5876b908090a5bca4bd735dd96a559fd8fbbe64c1419c053de227be3cacceef3",
    "spine_smithing_period": "3600",
    "block_version": "601",
    "rules": "125",
    "bundle_601_rules": "24",
    "genesis_registered_nodes": "11",
    "accounts": "61",
    "genesis_tokens": "14",
    "survival_min_producers": "5"
   }
  },
  {
   "id": "33-1-block-0-id",
   "chapter": "33",
   "section": "1",
   "title": "The TestNet genesis hash and its block-0 id: the first 8 bytes 3a2897e7c5ad6143 as int64 little-endian",
   "kind": "33-chain-identity",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "timestamp": "1793509027",
    "config_hash": "b4d46ec1c521cbd143109591bdc5188c76e120779a048f858a5b2c29125ab381"
   },
   "expected": {
    "genesis_hash": "3a2897e7c5ad6143429bab33a92d14d11ffd6fc281f2b62a6fd6b49c183b863d",
    "id": "4855352938787711034"
   },
   "note": "06 §3 step 10 over the shipped file's config hash and timestamp."
  },
  {
   "id": "33-1-block-0-id-devnet",
   "chapter": "33",
   "section": "1",
   "title": "The DevNet genesis hash and its block-0 id: the first 8 bytes a37b1692ec47c7b1 as int64 little-endian",
   "kind": "33-chain-identity",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "timestamp": "1793509027",
    "config_hash": "442a9ea5cd5ab99f49ecaf80cc581e1961485e3909a6ab1a3c5c81380eb4b9d6"
   },
   "expected": {
    "genesis_hash": "a37b1692ec47c7b17a7f9cb4c13cc8a73a1d5e843565a5733b9da2a544df99f8",
    "id": "-5636457327242085469"
   }
  },
  {
   "id": "33-1-other-chain",
   "chapter": "33",
   "section": "1",
   "title": "A genesis file with one parameter changed builds another genesis hash: the chain's nodes refuse the handshake",
   "kind": "33-chain-identity",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "timestamp": "1793509027",
    "config_hash": "b4d46ec1c521cbd143109591bdc5188c76e120779a048f858a5b2c29125ab3c6",
    "chain_genesis_hash": "3a2897e7c5ad6143429bab33a92d14d11ffd6fc281f2b62a6fd6b49c183b863d"
   },
   "expected": {
    "error": "Genesis hash mismatch - different chain configuration"
   },
   "note": "A changed parameter changes the config hash (here its last byte, as a stand-in) and so the genesis hash; the refusal is 27's handshake text."
  },
  {
   "id": "33-1-spine-0",
   "chapter": "33",
   "section": "1",
   "title": "Spine block 0 of a node built from the shipped files",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "request": "GET /api/v1/spine/blocks/0",
    "height": "0",
    "timestamp": "1793509027"
   },
   "note": "The timestamp is the shipped spine file's genesis_timestamp; the block itself is computed by case 06-7-spine-genesis."
  },
  {
   "id": "33-1-rules",
   "chapter": "33",
   "section": "1",
   "title": "The rules of a node built from the shipped files",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "request": "GET /api/v1/blockchain/rules",
    "bundle_id": "601",
    "rules": "125",
    "height": "0"
   },
   "note": "Every one of the 125 rules at height 0 (29)."
  },
  {
   "id": "33-2-sha3-test",
   "chapter": "33",
   "section": "2",
   "title": "SHA3-256 of 'test'",
   "kind": "hash",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "algorithm": "sha3-256",
    "data": "74657374"
   },
   "expected": {
    "digest": "36f028580bb02cc8272a9a020f4200e346e276ae664e45ee80745574e2f5ab80"
   }
  },
  {
   "id": "33-2-sha3-hello-world",
   "chapter": "33",
   "section": "2",
   "title": "SHA3-256 of 'hello world'",
   "kind": "hash",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "algorithm": "sha3-256",
    "data": "68656c6c6f20776f726c64"
   },
   "expected": {
    "digest": "644bcc7e564373040999aac89e7622f3ca71fba1d972fd94a31c3bfbf24e3938"
   }
  },
  {
   "id": "33-2-sha3-zoobc",
   "chapter": "33",
   "section": "2",
   "title": "SHA3-256 of 'ZooBC blockchain'",
   "kind": "hash",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "algorithm": "sha3-256",
    "data": "5a6f6f424320626c6f636b636861696e"
   },
   "expected": {
    "digest": "f8e50cad47a432631fc4c294d16cc3be828e0c5feb6c837c2f23a1c06fc14e8d"
   }
  },
  {
   "id": "33-2-keccak-hello",
   "chapter": "33",
   "section": "2",
   "title": "Keccak-256 of 'hello'",
   "kind": "hash",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "algorithm": "keccak-256",
    "data": "68656c6c6f"
   },
   "expected": {
    "digest": "1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"
   }
  },
  {
   "id": "33-2-keccak-hello-world",
   "chapter": "33",
   "section": "2",
   "title": "Keccak-256 of 'hello world'",
   "kind": "hash",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "algorithm": "keccak-256",
    "data": "68656c6c6f20776f726c64"
   },
   "expected": {
    "digest": "47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad"
   }
  },
  {
   "id": "33-2-keccak-test",
   "chapter": "33",
   "section": "2",
   "title": "Keccak-256 of 'test'",
   "kind": "hash",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "algorithm": "keccak-256",
    "data": "74657374"
   },
   "expected": {
    "digest": "9c22ff5f21f0b81b113e63f7db6da94fedef11b2119b4088b89664fb9a3cb658"
   }
  },
  {
   "id": "33-2-sha3-empty",
   "chapter": "33",
   "section": "2",
   "title": "SHA3-256 of the empty string",
   "kind": "hash",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "algorithm": "sha3-256",
    "data": ""
   },
   "expected": {
    "digest": "a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a"
   }
  },
  {
   "id": "33-2-keccak-empty",
   "chapter": "33",
   "section": "2",
   "title": "Keccak-256 of the empty string",
   "kind": "hash",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "algorithm": "keccak-256",
    "data": ""
   },
   "expected": {
    "digest": "c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
   }
  },
  {
   "id": "33-2-keccak-for-sha3",
   "chapter": "33",
   "section": "2",
   "title": "Keccak-256 given where SHA3-256 is required: no ZooBC hash ever equals it",
   "kind": "reference",
   "validity": "invalid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "sha3_256_of_test": "36f028580bb02cc8272a9a020f4200e346e276ae664e45ee80745574e2f5ab80",
    "keccak_256_of_test": "9c22ff5f21f0b81b113e63f7db6da94fedef11b2119b4088b89664fb9a3cb658"
   },
   "note": "A common mistake: the Ethereum hash uses the padding byte 0x01, SHA3 uses 0x06."
  },
  {
   "id": "33-2-splitmix-0",
   "chapter": "33",
   "section": "2",
   "title": "Splitmix64 from the seed 0: the first five outputs",
   "kind": "33-splitmix64",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "0",
    "count": "5"
   },
   "expected": {
    "outputs": "16294208416658607535\n7960286522194355700\n487617019471545679\n17909611376780542444\n1961750202426094747"
   }
  },
  {
   "id": "33-2-splitmix-1",
   "chapter": "33",
   "section": "2",
   "title": "Splitmix64 from the seed 1: the first five outputs",
   "kind": "33-splitmix64",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "1",
    "count": "5"
   },
   "expected": {
    "outputs": "10451216379200822465\n13757245211066428519\n17911839290282890590\n8196980753821780235\n8195237237126968761"
   }
  },
  {
   "id": "33-2-splitmix-m1",
   "chapter": "33",
   "section": "2",
   "title": "Splitmix64 from the seed -1: the first five outputs",
   "kind": "33-splitmix64",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "-1",
    "count": "5"
   },
   "expected": {
    "outputs": "16490336266968443936\n16834447057089888969\n4048727598324417001\n7862637804313477842\n13015481187462834606"
   }
  },
  {
   "id": "33-2-splitmix-12345",
   "chapter": "33",
   "section": "2",
   "title": "Splitmix64 from the seed 12345: the first five outputs",
   "kind": "33-splitmix64",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "12345",
    "count": "5"
   },
   "expected": {
    "outputs": "2454886589211414944\n3778200017661327597\n2205171434679333405\n3248800117070709450\n9350289611492784363"
   }
  },
  {
   "id": "33-2-splitmix-9876543210",
   "chapter": "33",
   "section": "2",
   "title": "Splitmix64 from the seed 9876543210: the first five outputs",
   "kind": "33-splitmix64",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "9876543210",
    "count": "5"
   },
   "expected": {
    "outputs": "16965301019760327471\n10275923502779094317\n9057763014174484733\n16254899801525447328\n6828271271999350159"
   }
  },
  {
   "id": "33-2-splitmix-m9876543210",
   "chapter": "33",
   "section": "2",
   "title": "Splitmix64 from the seed -9876543210: the first five outputs",
   "kind": "33-splitmix64",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "-9876543210",
    "count": "5"
   },
   "expected": {
    "outputs": "1351069659026832759\n2254389488592102209\n11048214108705841535\n14433481701645120553\n11677512056825562725"
   }
  },
  {
   "id": "33-2-xoroshiro-0",
   "chapter": "33",
   "section": "2",
   "title": "Xoroshiro128+ seeded from 0: the state and 4 draws",
   "kind": "33-xoroshiro128p",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "0",
    "count": "4"
   },
   "expected": {
    "s0": "16294208416658607535",
    "s1": "7960286522194355700",
    "draws": "2903875432571705809\n7783062752243886519\n7885241620833484273\n3537338830842728562"
   }
  },
  {
   "id": "33-2-xoroshiro-1",
   "chapter": "33",
   "section": "2",
   "title": "Xoroshiro128+ seeded from 1: the state and 4 draws",
   "kind": "33-xoroshiro128p",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "1",
    "count": "4"
   },
   "expected": {
    "s0": "10451216379200822465",
    "s1": "13757245211066428519",
    "draws": "2880858758278849684\n8817399022667424292\n3726292897828630722\n4815175979507302698"
   }
  },
  {
   "id": "33-2-xoroshiro-m1",
   "chapter": "33",
   "section": "2",
   "title": "Xoroshiro128+ seeded from -1: the state and 4 draws",
   "kind": "33-xoroshiro128p",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "-1",
    "count": "4"
   },
   "expected": {
    "s0": "16490336266968443936",
    "s1": "16834447057089888969",
    "draws": "7439019625174390644\n207593191878675672\n4967924389198505284\n4534029503514182557"
   }
  },
  {
   "id": "33-2-xoroshiro-12345",
   "chapter": "33",
   "section": "2",
   "title": "Xoroshiro128+ seeded from 12345: the state and 4 draws",
   "kind": "33-xoroshiro128p",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "12345",
    "count": "4"
   },
   "expected": {
    "s0": "2454886589211414944",
    "s1": "3778200017661327597",
    "draws": "3116543303436371270\n8386966431082539069\n3736225197729558312\n1284521530802632453"
   }
  },
  {
   "id": "33-2-xoroshiro-9876543210",
   "chapter": "33",
   "section": "2",
   "title": "Xoroshiro128+ seeded from 9876543210: the state and 3 draws",
   "kind": "33-xoroshiro128p",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "9876543210",
    "count": "3"
   },
   "expected": {
    "s0": "16965301019760327471",
    "s1": "10275923502779094317",
    "draws": "4397240224414935086\n2273251577023633764\n4838872711924625201"
   }
  },
  {
   "id": "33-2-xoroshiro-m9876543210",
   "chapter": "33",
   "section": "2",
   "title": "Xoroshiro128+ seeded from -9876543210: the state and 3 draws",
   "kind": "33-xoroshiro128p",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "-9876543210",
    "count": "3"
   },
   "expected": {
    "s0": "1351069659026832759",
    "s1": "2254389488592102209",
    "draws": "1802729573809467484\n6651524712777625727\n3035703366335574495"
   }
  },
  {
   "id": "33-2-rng-blocksmith",
   "chapter": "33",
   "section": "2",
   "title": "The prefixed generator: 'BLOCKSMITH' and the seed 12345678",
   "kind": "20-selection-rng",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "prefix": "BLOCKSMITH",
    "seed": "12345678",
    "count": "6",
    "n": "0"
   },
   "expected": {
    "h": "0bb4e1117249e721f03990fff175daacdd4ef51d943f52b8e1dce2013046baee",
    "v": "e1dce2013046baee",
    "draws": "2811371144777292947\n4468523782695074205\n203846456688352722\n8323597467905407413\n2838484494516804126\n5582655932793395444"
   },
   "note": "v = -2171612425566635282 as a signed 64-bit integer."
  },
  {
   "id": "33-2-rng-lottery",
   "chapter": "33",
   "section": "2",
   "title": "The prefixed generator: 'LOTTERY' and the seed 626c6f636b5f686173685f68657265",
   "kind": "20-selection-rng",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "prefix": "LOTTERY",
    "seed": "626c6f636b5f686173685f68657265",
    "count": "6",
    "n": "0"
   },
   "expected": {
    "h": "a313ea50318d36c7769a02307702969a3b0a837d879e76e86e5e69dc9346c4ce",
    "v": "6e5e69dc9346c4ce",
    "draws": "4449625934249970533\n7765175150063633242\n904277176276276592\n4290620913491273615\n5384579898424254274\n4735139758705734715"
   },
   "note": "v = 7952910388067484878 as a signed 64-bit integer."
  },
  {
   "id": "33-2-rng-coinbase",
   "chapter": "33",
   "section": "2",
   "title": "The prefixed generator: 'COINBASE' and the seed 0001020304050607",
   "kind": "20-selection-rng",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "prefix": "COINBASE",
    "seed": "0001020304050607",
    "count": "6",
    "n": "0"
   },
   "expected": {
    "h": "9ee9b93479ef65fd2faa38bcfee5cb40c1e59a03b0ac7a0dd364fed3169440b3",
    "v": "d364fed3169440b3",
    "draws": "530065552955017003\n6519009941629946501\n296975169654642886\n6197296743133201122\n8794905658328741624\n7869681857914037736"
   },
   "note": "v = -3214164051465322317 as a signed 64-bit integer."
  },
  {
   "id": "33-2-rng-empty",
   "chapter": "33",
   "section": "2",
   "title": "The prefixed generator: '' and the seed ffffffff",
   "kind": "20-selection-rng",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "prefix": "",
    "seed": "ffffffff",
    "count": "6",
    "n": "0"
   },
   "expected": {
    "h": "904200c7d454fe3e8e1dfaa21b4e667f250cabd8f5730bd361feacf77fab1686",
    "v": "61feacf77fab1686",
    "draws": "7107426145773671752\n4144607134654680158\n134309059395316265\n7976252563634138999\n1026306591421606501\n9221585736233423683"
   },
   "note": "v = 7061271444762334854 as a signed 64-bit integer."
  },
  {
   "id": "33-3-ed25519-key-1",
   "chapter": "33",
   "section": "3",
   "title": "Ed25519 public key of test seed 1",
   "kind": "33-ed25519",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "4844e4045e1b8d8e862679db624a6f04a173a31ce2316c57029202b8915e438e"
   },
   "expected": {
    "public_key": "768fe2180e414d437f5287c7edfc5d7df429af5272fca07e795f1bca38adeed2"
   }
  },
  {
   "id": "33-3-ed25519-key-2",
   "chapter": "33",
   "section": "3",
   "title": "Ed25519 public key of test seed 2",
   "kind": "33-ed25519",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "6e0a577f3b4c13b66bd04604752cb136a4b6292376310d601c847dfde4da150d"
   },
   "expected": {
    "public_key": "9ec6d017149bcf78a61c4814f3d40386fa92eec51d4b45a9da35c36fba143814"
   }
  },
  {
   "id": "33-3-ed25519-key-3",
   "chapter": "33",
   "section": "3",
   "title": "Ed25519 public key of test seed 3",
   "kind": "33-ed25519",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "59a0c0673bab9fe6acf621e6dbf90801ba8adbf061b2c11aa8b7c36de05274da"
   },
   "expected": {
    "public_key": "9f1343dc59acec240a985d6d943c5a75adc55542180f1452974cd80884293880"
   }
  },
  {
   "id": "33-3-ed25519-sign-hello",
   "chapter": "33",
   "section": "3",
   "title": "Ed25519 signature of 'hello' under test seed 1",
   "kind": "33-ed25519",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "4844e4045e1b8d8e862679db624a6f04a173a31ce2316c57029202b8915e438e",
    "message": "68656c6c6f"
   },
   "expected": {
    "public_key": "768fe2180e414d437f5287c7edfc5d7df429af5272fca07e795f1bca38adeed2",
    "signature": "89877517afe260ed77e79f7760973e136dcc7ded1f80576fa392356e30da31cba50099b9b350dc4fc447e22a4569042ecad628e976770a143c3cf1781969f306"
   }
  },
  {
   "id": "33-3-ed25519-sign-block-data",
   "chapter": "33",
   "section": "3",
   "title": "Ed25519 signature of 'block data' under test seed 1",
   "kind": "33-ed25519",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "4844e4045e1b8d8e862679db624a6f04a173a31ce2316c57029202b8915e438e",
    "message": "626c6f636b2064617461"
   },
   "expected": {
    "public_key": "768fe2180e414d437f5287c7edfc5d7df429af5272fca07e795f1bca38adeed2",
    "signature": "8e817ec27788664d533ad635e51e3497a8da6899c93277f803ac58680ef136d17e2f07f63ee44461ca6064f7e0ad6a7616c100be10971923bca4fbd1656ebd09"
   }
  },
  {
   "id": "33-3-ed25519-sign-tx-payload",
   "chapter": "33",
   "section": "3",
   "title": "Ed25519 signature of 'transaction payload' under test seed 1",
   "kind": "33-ed25519",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "4844e4045e1b8d8e862679db624a6f04a173a31ce2316c57029202b8915e438e",
    "message": "7472616e73616374696f6e207061796c6f6164"
   },
   "expected": {
    "public_key": "768fe2180e414d437f5287c7edfc5d7df429af5272fca07e795f1bca38adeed2",
    "signature": "0e24113f049540fec29f2fd0449b55201e1d91e574bd1167e127d2d11732b0126755e3df4d86ef7944d7e42583a67c609ed328615884b9e158efacf0a60daf01"
   }
  },
  {
   "id": "33-3-bip340-spec-1",
   "chapter": "33",
   "section": "3",
   "title": "BIP-340 specification vector 1",
   "kind": "33-bip340-verify",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "public_key": "dff1d77f2a671c5f36183726db2341be58feae1da2deced843240f7b502ba659",
    "message": "243f6a8885a308d313198a2e03707344a4093822299f31d0082efa98ec4e6c89",
    "signature": "6896bd60eeae296db48a229ff71dfe071bde413e6d43f917dc8dcf8c78de33418906d11ac976abccb20b091292bff4ea897efcb639ea871cfa95f6de339e4b0a"
   },
   "expected": {
    "valid": "true"
   }
  },
  {
   "id": "33-3-bip340-key-11",
   "chapter": "33",
   "section": "3",
   "title": "A BIP-340 signature by the private key 0x11 × 32",
   "kind": "33-bip340-verify",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "public_key": "4f355bdcb7cc0af728ef3cceb9615d90684bb5b2ca5f859ab0f0b704075871aa",
    "message": "2222222222222222222222222222222222222222222222222222222222222222",
    "signature": "2600b9fff18847ba6486b575d70623f929cabecd7050c050da42f8e9a72f02ef8a73403ed1f92f1868e0077fc15a8e2528c09f5a2e9579a4859123ee3ad497e8"
   },
   "expected": {
    "valid": "true"
   }
  },
  {
   "id": "33-3-bip340-taproot",
   "chapter": "33",
   "section": "3",
   "title": "A Taproot key-path signature (BIP-86 key, BIP-341 tweak)",
   "kind": "33-bip340-verify",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "public_key": "a60869f0dbcf1dc659c9cecbaf8050135ea9e8cdc487053f1dc6880949dc684c",
    "message": "db4bd5932f3d5094fd124202d6cf419b876fc5202c4a4fbbc874380d1d808028",
    "signature": "3deef95b5580792eba7e7c45e77e24252daed45d50be227d3e01e0cbae768ddcffcba86b8df7177c907fe2e36c7569ceadb1437f4ba02709efab1a144e5c8c91"
   },
   "expected": {
    "valid": "true"
   }
  },
  {
   "id": "33-3-bip340-flipped",
   "chapter": "33",
   "section": "3",
   "title": "The first BIP-340 signature with byte 10 flipped is refused",
   "kind": "33-bip340-verify",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "public_key": "dff1d77f2a671c5f36183726db2341be58feae1da2deced843240f7b502ba659",
    "message": "243f6a8885a308d313198a2e03707344a4093822299f31d0082efa98ec4e6c89",
    "signature": "6896bd60eeae296db48add9ff71dfe071bde413e6d43f917dc8dcf8c78de33418906d11ac976abccb20b091292bff4ea897efcb639ea871cfa95f6de339e4b0a"
   },
   "expected": {
    "valid": "false"
   }
  },
  {
   "id": "33-3-eth-legacy-1",
   "chapter": "33",
   "section": "3",
   "title": "A legacy EIP-155 transfer of 1 ether (chain 883)",
   "kind": "33-eth-transaction",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "raw": "f86980018252089400000000000000000000000000000000000000aa880de0b6b3a76400008082070aa050954af8b961487a615f507bcf91b6472003e3980ee5673e728377e1a9f7f3dda0243c7a7cb63a8965b4977663f3c1b3697f6cfb833f66dc376d9a53656d8cb739"
   },
   "expected": {
    "hash": "284485368bcfe248771ef716466e6d4d9df22b75c8d26cfc0f9f97b99baf785f",
    "chain_id": "883",
    "nonce": "0",
    "to": "00000000000000000000000000000000000000aa",
    "value": "1000000000000000000",
    "sender": "a4cb4cf242cf8d309e7f7cf1587c50b410f5e7e0"
   }
  },
  {
   "id": "33-3-eth-legacy-2",
   "chapter": "33",
   "section": "3",
   "title": "A legacy EIP-155 transfer of 500 ether (chain 883)",
   "kind": "33-eth-transaction",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "raw": "f86a80018252089400000000000000000000000000000000000000aa891b1ae4d6e2ef5000008082070aa060acfc8963116802dc0910b53dc5c76220efac1b8bb521064064297e1ab80315a0321b04733a880618404ba40f20e934b2ac3819c587123cc5e85d4aabbe2f66dd"
   },
   "expected": {
    "hash": "659f0947c0f94c3f429e2761c8077809acac3e569ab140434d1b47f3def49509",
    "chain_id": "883",
    "nonce": "0",
    "to": "00000000000000000000000000000000000000aa",
    "value": "500000000000000000000",
    "sender": "19e7e376e7c213b7e7e7e46cc70a5dd086daff2a"
   }
  },
  {
   "id": "33-3-eth-1559-1",
   "chapter": "33",
   "section": "3",
   "title": "An EIP-1559 transfer of 1 ether, nonce 0",
   "kind": "33-eth-transaction",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "raw": "02f87682037380843b9aca00862b4f2c6af9e8825208946139a624f2d5cc37803f0d99136e3ac387396377880de0b6b3a764000080c001a0b63dd2e39e15b8533ae650c6d417ce7b4b09ed158ab589ff81a580def2c98404a0301bab249898c7a8e961e049233cca0b14c335cc45f20e53fb7935648ccb153c"
   },
   "expected": {
    "hash": "1220d667268f94a19a0cb3832cd900d9ab5ed0eea76ddeb7269c0e4b2d05b4b8",
    "chain_id": "883",
    "nonce": "0",
    "to": "6139a624f2d5cc37803f0d99136e3ac387396377",
    "value": "1000000000000000000",
    "sender": "1563915e194d8cfba1943570603f7606a3115508"
   }
  },
  {
   "id": "33-3-eth-1559-2",
   "chapter": "33",
   "section": "3",
   "title": "An EIP-1559 transfer of 2 ether, nonce 1",
   "kind": "33-eth-transaction",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "raw": "02f87682037301843b9aca00862b4f2c6af9e8825208946139a624f2d5cc37803f0d99136e3ac387396377881bc16d674ec8000080c080a039e58f3604d7fe0aa67c77c581a34ec6b525e6e560ac0858d4c1405585e0cec7a0351ebba5e8b6818845358325f012da7292e0451858c4cf197317fa24b532e49e"
   },
   "expected": {
    "hash": "61dcb2de6cc1f55784ac3f48759c2f5e3a0b5e93b182ca4e2c86685082335dce",
    "chain_id": "883",
    "nonce": "1",
    "to": "6139a624f2d5cc37803f0d99136e3ac387396377",
    "value": "2000000000000000000",
    "sender": "1563915e194d8cfba1943570603f7606a3115508"
   }
  },
  {
   "id": "33-3-eth-address",
   "chapter": "33",
   "section": "3",
   "title": "The Ethereum address of the test private key",
   "kind": "33-eth-address",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "private_key": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96"
   },
   "expected": {
    "address": "3bc64c92d9bb1c5826643b081108b892e2e7f590"
   }
  },
  {
   "id": "33-3-eip55",
   "chapter": "33",
   "section": "3",
   "title": "The EIP-55 form of an address",
   "kind": "33-eip55",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "2c7536e3605d9c16a7a3d7b1898e529396a65c23"
   },
   "expected": {
    "checksummed": "0x2c7536E3605D9C16a7a3D7b1898e529396a65c23"
   }
  },
  {
   "id": "33-3-polkadot-key",
   "chapter": "33",
   "section": "3",
   "title": "The sr25519 public key of the seed 42 × 32 (expanded the Ed25519 way, a Ristretto255 point)",
   "kind": "33-sr25519-key",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "4242424242424242424242424242424242424242424242424242424242424242"
   },
   "expected": {
    "public_key": "a4d007a95b28ce117e4051904503612abdcbd22b60475121f92a8b5dedac375a"
   }
  },
  {
   "id": "33-3-ss58-prefix-0",
   "chapter": "33",
   "section": "3",
   "title": "The SS58 text of that key with prefix 0",
   "kind": "33-sr25519-key",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "4242424242424242424242424242424242424242424242424242424242424242",
    "prefix": "0"
   },
   "expected": {
    "public_key": "a4d007a95b28ce117e4051904503612abdcbd22b60475121f92a8b5dedac375a",
    "address": "14j6ekb87LG6TgqexArYBTLsemPXshEzEkdWaufm95Sw3u2L"
   }
  },
  {
   "id": "33-3-ss58-prefix-2",
   "chapter": "33",
   "section": "3",
   "title": "The SS58 text of that key with prefix 2",
   "kind": "01-text-decode",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "encoding": "ss58",
    "text": "GJRAjfvsv1YmoeamEcawFsiwjg7z4W2cdjmpGxN4nducawX"
   },
   "expected": {
    "prefix": "2",
    "account_id": "a4d007a95b28ce117e4051904503612abdcbd22b60475121f92a8b5dedac375a",
    "encoded": "GJRAjfvsv1YmoeamEcawFsiwjg7z4W2cdjmpGxN4nducawX"
   }
  },
  {
   "id": "33-3-ss58-prefix-42",
   "chapter": "33",
   "section": "3",
   "title": "The SS58 text of that key with prefix 42",
   "kind": "33-sr25519-key",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "4242424242424242424242424242424242424242424242424242424242424242",
    "prefix": "42"
   },
   "expected": {
    "public_key": "a4d007a95b28ce117e4051904503612abdcbd22b60475121f92a8b5dedac375a",
    "address": "5FnoWRL4FYzd29q8zXoY3JWio9PtBPgrAFu2RcgQazRQsiCs"
   }
  },
  {
   "id": "33-3-zbc-account",
   "chapter": "33",
   "section": "3",
   "title": "ZBC_XTFYBAQN_…_WTLOGT6O is the account 00000000 ‖ bccb8082…b4d6",
   "kind": "address-parse",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "ZBC_XTFYBAQN_HY7443TC_6HBIHLHW_WCVYQSUT_PL2HCIG6_F77IRI4T_WTLOGT6O"
   },
   "expected": {
    "type": "0",
    "payload": "bccb80820d3e3fce6e62f1c283acf6b0ab884a937af47120de2ffe88a393b4d6",
    "account": "00000000bccb80820d3e3fce6e62f1c283acf6b0ab884a937af47120de2ffe88a393b4d6"
   },
   "note": "01's text form; also cases 01-5-zbc-encode and 31-3-zbc-text."
  },
  {
   "id": "33-3-eth-envelope-v28",
   "chapter": "33",
   "section": "3",
   "title": "A SendZBC from a type-4 account with its 65-byte envelope signature ending in 28",
   "kind": "33-eth-envelope",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "unsigned": "0100000003ffc8e66a00000000040000003bc64c92d9bb1c5826643b081108b892e2e7f59000000000fd4472bbdec43b919aa37b9b3366a3318f2902a753a15f5fd6d43c44b5121b67404b4c00000000000000000000000000201c00000800000000e1f505000000000200000000000000",
    "signature": "c5c02d9c4143587a5b89122fc8d57e8b9bf33aeade9c1153faa604564f383ccb5629d5d5c711e80dd9dc77be7eb0bafe457b3c1c376e1de983e6493c50753c231c"
   },
   "expected": {
    "recovered": "3bc64c92d9bb1c5826643b081108b892e2e7f590",
    "verdict": "accepted"
   },
   "note": "The sender is the Ethereum account of the test private key above; m = Keccak-256 of the signing digest (02 §5)."
  },
  {
   "id": "33-3-eth-envelope-v1",
   "chapter": "33",
   "section": "3",
   "title": "The same signature with v 1 instead of 28 (the same recovery id) is refused",
   "kind": "33-eth-envelope",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "unsigned": "0100000003ffc8e66a00000000040000003bc64c92d9bb1c5826643b081108b892e2e7f59000000000fd4472bbdec43b919aa37b9b3366a3318f2902a753a15f5fd6d43c44b5121b67404b4c00000000000000000000000000201c00000800000000e1f505000000000200000000000000",
    "signature": "c5c02d9c4143587a5b89122fc8d57e8b9bf33aeade9c1153faa604564f383ccb5629d5d5c711e80dd9dc77be7eb0bafe457b3c1c376e1de983e6493c50753c2301"
   },
   "expected": {
    "error": "Ethereum signature recovery id must be 27 or 28"
   },
   "note": "The verifier recovers the same key from v 1; rule eth_signature_canonical_v refuses the spelling."
  },
  {
   "id": "33-4-index",
   "chapter": "33",
   "section": "4",
   "title": "The index lists one row per mechanism of chapters 01-32 and 34-36, with its valid and invalid tests",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "rows": "398",
    "valid": "804",
    "invalid": "186",
    "tests": "990"
   },
   "note": "Sources: computed (from the specification or the shipped genesis files), none (no bytes produced)."
  },
  {
   "id": "33-5-l1",
   "chapter": "33",
   "section": "5",
   "title": "Level L1 (Follower) checks",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "checks": "L1-01\nL1-02\nL1-03\nL1-04\nL1-05\nL1-06\nL1-07\nL1-08\nL1-09\nL1-10\nL1-11\nL1-12\nL1-13\nL1-14\nL1-15\nL1-16\nL1-17"
   }
  },
  {
   "id": "33-6-l2",
   "chapter": "33",
   "section": "6",
   "title": "Level L2 (Blocksmith) checks",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "checks": "L2-01\nL2-02\nL2-03\nL2-04\nL2-05\nL2-06\nL2-07\nL2-08\nL2-09\nL2-10"
   }
  },
  {
   "id": "33-7-l3",
   "chapter": "33",
   "section": "7",
   "title": "Level L3 (Server) checks",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "checks": "L3-01\nL3-02\nL3-03\nL3-04\nL3-05\nL3-06\nL3-07\nL3-08"
   }
  },
  {
   "id": "33-8-l4",
   "chapter": "33",
   "section": "8",
   "title": "Level L4 (Keeper) checks",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "checks": "L4-01\nL4-02\nL4-03\nL4-04\nL4-05\nL4-06\nL4-07"
   }
  }
 ]
}
