{
 "format": "zoobc-conformance-vectors/1",
 "edition": "0.6.1",
 "chapter": "01",
 "license": "CC BY 4.0, ZooBC Foundation",
 "cases": [
  {
   "id": "01-2-sha3-empty",
   "chapter": "01",
   "section": "2",
   "title": "SHA3-256 of the empty string",
   "kind": "hash",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "algorithm": "sha3-256",
    "data": ""
   },
   "expected": {
    "digest": "a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a"
   }
  },
  {
   "id": "01-2-keccak-empty",
   "chapter": "01",
   "section": "2",
   "title": "Keccak-256 of the empty string",
   "kind": "hash",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "algorithm": "keccak-256",
    "data": ""
   },
   "expected": {
    "digest": "c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
   }
  },
  {
   "id": "01-2-sha512-empty",
   "chapter": "01",
   "section": "2",
   "title": "SHA-512 of the empty string",
   "kind": "hash",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "algorithm": "sha512",
    "data": ""
   },
   "expected": {
    "digest": "cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e"
   }
  },
  {
   "id": "01-5-znk-encode",
   "chapter": "01",
   "section": "5",
   "title": "Node key as a ZNK address",
   "kind": "address-encode",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "payload": "02A50719C01D3B81030D5BB866B25E69F15668DE15160BA51B43CD0C1B352CA2",
    "prefix": "ZNK"
   },
   "expected": {
    "address": "ZNK_AKSQOGOA_DU5YCAYN_LO4GNMS6_NHYVM2G6_CULAXJI3_IPGQYGZV_FSRL4CNJ"
   },
   "note": "The node key of one nodes[] entry of the TestNet genesis file."
  },
  {
   "id": "01-5-zbc-encode",
   "chapter": "01",
   "section": "5",
   "title": "Owner key as a ZBC address",
   "kind": "address-encode",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "payload": "BCCB80820D3E3FCE6E62F1C283ACF6B0AB884A937AF47120DE2FFE88A393B4D6",
    "prefix": "ZBC"
   },
   "expected": {
    "address": "ZBC_XTFYBAQN_HY7443TC_6HBIHLHW_WCVYQSUT_PL2HCIG6_F77IRI4T_WTLOGT6O"
   },
   "note": "The owner key of the same nodes[] entry."
  },
  {
   "id": "01-5-zbc-prefix",
   "chapter": "01",
   "section": "5",
   "title": "The checksum binds the prefix: ZBC",
   "kind": "address-encode",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "payload": "02A50719C01D3B81030D5BB866B25E69F15668DE15160BA51B43CD0C1B352CA2",
    "prefix": "ZBC"
   },
   "expected": {
    "address": "ZBC_AKSQOGOA_DU5YCAYN_LO4GNMS6_NHYVM2G6_CULAXJI3_IPGQYGZV_FSRJHN6I"
   }
  },
  {
   "id": "01-5-zbr-prefix",
   "chapter": "01",
   "section": "5",
   "title": "The checksum binds the prefix: ZBR",
   "kind": "address-encode",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "payload": "02A50719C01D3B81030D5BB866B25E69F15668DE15160BA51B43CD0C1B352CA2",
    "prefix": "ZBR"
   },
   "expected": {
    "address": "ZBR_AKSQOGOA_DU5YCAYN_LO4GNMS6_NHYVM2G6_CULAXJI3_IPGQYGZV_FSRO5OMX"
   }
  },
  {
   "id": "01-5-zbg-prefix",
   "chapter": "01",
   "section": "5",
   "title": "The checksum binds the prefix: ZBG",
   "kind": "address-encode",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "payload": "02A50719C01D3B81030D5BB866B25E69F15668DE15160BA51B43CD0C1B352CA2",
    "prefix": "ZBG"
   },
   "expected": {
    "address": "ZBG_AKSQOGOA_DU5YCAYN_LO4GNMS6_NHYVM2G6_CULAXJI3_IPGQYGZV_FSRDECTN"
   }
  },
  {
   "id": "01-5-zbs-prefix",
   "chapter": "01",
   "section": "5",
   "title": "The checksum binds the prefix: ZBS",
   "kind": "address-encode",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "payload": "02A50719C01D3B81030D5BB866B25E69F15668DE15160BA51B43CD0C1B352CA2",
    "prefix": "ZBS"
   },
   "expected": {
    "address": "ZBS_AKSQOGOA_DU5YCAYN_LO4GNMS6_NHYVM2G6_CULAXJI3_IPGQYGZV_FSRPF6RU"
   }
  },
  {
   "id": "01-5-decode",
   "chapter": "01",
   "section": "5",
   "title": "Decode a ZBC address",
   "kind": "address-decode",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "ZBC_IAZLCULM_GCLXBEHJ_57RXQLN2_3ID2JCSO_UH7EP226_YUBX75PU_CY4EHQGN"
   },
   "expected": {
    "prefix": "ZBC",
    "payload": "4032b1516c30977090e9efe3782dbada07a48a4ea1fe47eb5ec5037ff5f41638",
    "checksum": "43c0cd"
   }
  },
  {
   "id": "01-5-normalise",
   "chapter": "01",
   "section": "5",
   "title": "Lower case and dashes are read as the same address",
   "kind": "address-decode",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "znk-aksqogoa-du5ycayn-lo4gnms6-nhyvm2g6-culaxji3-ipgqygzv-fsrl4cnj"
   },
   "expected": {
    "prefix": "ZNK",
    "payload": "02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2"
   }
  },
  {
   "id": "01-5-bad-checksum",
   "chapter": "01",
   "section": "5",
   "title": "A changed last character is refused",
   "kind": "address-decode",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "address": "ZNK_AKSQOGOA_DU5YCAYN_LO4GNMS6_NHYVM2G6_CULAXJI3_IPGQYGZV_FSRL4CNK"
   },
   "expected": {
    "error": "Address checksum validation failed"
   }
  },
  {
   "id": "01-6-eth",
   "chapter": "01",
   "section": "6",
   "title": "Foreign address: type 4",
   "kind": "address-parse",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "0xA4cB4CF242Cf8d309E7f7CF1587C50b410f5e7e0"
   },
   "expected": {
    "type": "4",
    "payload": "a4cb4cf242cf8d309e7f7cf1587c50b410f5e7e0",
    "account": "04000000a4cb4cf242cf8d309e7f7cf1587c50b410f5e7e0"
   }
  },
  {
   "id": "01-6-p2pkh",
   "chapter": "01",
   "section": "6",
   "title": "Foreign address: type 5",
   "kind": "address-parse",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"
   },
   "expected": {
    "type": "5",
    "payload": "62e907b15cbf27d5425399ebf6f0fb50ebb88f18",
    "account": "0500000062e907b15cbf27d5425399ebf6f0fb50ebb88f18"
   }
  },
  {
   "id": "01-6-p2sh",
   "chapter": "01",
   "section": "6",
   "title": "Foreign address: type 6",
   "kind": "address-parse",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy"
   },
   "expected": {
    "type": "6",
    "payload": "b472a266d0bd89c13706a4132ccfb16f7c3b9fcb",
    "account": "06000000b472a266d0bd89c13706a4132ccfb16f7c3b9fcb"
   }
  },
  {
   "id": "01-6-p2wpkh",
   "chapter": "01",
   "section": "6",
   "title": "Foreign address: type 7",
   "kind": "address-parse",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "bc1q02eahpuu87g85zka8eapmwzc0rv56yw2s226c4"
   },
   "expected": {
    "type": "7",
    "payload": "7ab3db879c3f907a0add3e7a1db85878d94d11ca",
    "account": "070000007ab3db879c3f907a0add3e7a1db85878d94d11ca"
   }
  },
  {
   "id": "01-6-p2wsh",
   "chapter": "01",
   "section": "6",
   "title": "Foreign address: type 8",
   "kind": "address-parse",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "bc1qrp33g0q5c5txsp9arysrx4k6zdkfs4nce4xj0gdcccefvpysxf3qccfmv3"
   },
   "expected": {
    "type": "8",
    "payload": "1863143c14c5166804bd19203356da136c985678cd4d27a1b8c6329604903262",
    "account": "080000001863143c14c5166804bd19203356da136c985678cd4d27a1b8c6329604903262"
   }
  },
  {
   "id": "01-6-taproot",
   "chapter": "01",
   "section": "6",
   "title": "Foreign address: type 9",
   "kind": "address-parse",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "bc1p5cyxnuxmeuwuvkwfem96lqzszd02n6xdcjrs20cac6yqjjwudpxqkedrcr"
   },
   "expected": {
    "type": "9",
    "payload": "a60869f0dbcf1dc659c9cecbaf8050135ea9e8cdc487053f1dc6880949dc684c",
    "account": "09000000a60869f0dbcf1dc659c9cecbaf8050135ea9e8cdc487053f1dc6880949dc684c"
   }
  },
  {
   "id": "01-6-solana",
   "chapter": "01",
   "section": "6",
   "title": "Foreign address: type 11",
   "kind": "address-parse",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "3vwz9YRK4Fo552oeyuGw2eg3Qadu8ugLnvbeyCYDqjqA"
   },
   "expected": {
    "type": "11",
    "payload": "2b89542cc4374dd4ccce06d1515d539e71f55bed9e830f89fd289e6dc4562b31",
    "account": "0b0000002b89542cc4374dd4ccce06d1515d539e71f55bed9e830f89fd289e6dc4562b31"
   }
  },
  {
   "id": "01-6-polkadot",
   "chapter": "01",
   "section": "6",
   "title": "Foreign address: type 12",
   "kind": "address-parse",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "15i8e3H9oBQirsfB4W3L3Rz8VUoceR6pmE8AnzNP9qRzcZTj"
   },
   "expected": {
    "type": "12",
    "payload": "d04fb590a92b2c6c505f297fc94b8650c74e85a3ca8a1d32d6a297578f7b9e7a",
    "account": "0c000000d04fb590a92b2c6c505f297fc94b8650c74e85a3ca8a1d32d6a297578f7b9e7a"
   }
  },
  {
   "id": "01-6-cardano",
   "chapter": "01",
   "section": "6",
   "title": "Foreign address: type 13",
   "kind": "address-parse",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "addr1vyk0hphgx0ryme02yfnxxjtrk9ge570dxrxlydmqmkkaggsc9grvy"
   },
   "expected": {
    "type": "13",
    "payload": "2cfb86e833c64de5ea2266634963b1519a79ed30cdf23760ddadd422",
    "account": "0d0000002cfb86e833c64de5ea2266634963b1519a79ed30cdf23760ddadd422"
   }
  },
  {
   "id": "01-6-ripple",
   "chapter": "01",
   "section": "6",
   "title": "Foreign address: type 14",
   "kind": "address-parse",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "rBmafvpgPvyExLTSt66FHpBCc1baPxqniG"
   },
   "expected": {
    "type": "14",
    "payload": "7607d55d98d18578c275d413da80a77d529a3693",
    "account": "0e0000007607d55d98d18578c275d413da80a77d529a3693"
   }
  },
  {
   "id": "01-6-tron",
   "chapter": "01",
   "section": "6",
   "title": "Foreign address: type 15",
   "kind": "address-parse",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "TKTyfw5wP5zq5vtkBdBm8BVVHxfX9p6FvB"
   },
   "expected": {
    "type": "15",
    "payload": "682a115d32d5f6c7c0ac3d74c48099a8d83526f4",
    "account": "0f000000682a115d32d5f6c7c0ac3d74c48099a8d83526f4"
   }
  },
  {
   "id": "01-6-tezos",
   "chapter": "01",
   "section": "6",
   "title": "Foreign address: type 16",
   "kind": "address-parse",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "tz1LDovuWKLjJ8FU5cv3t28TdXw43xwrTEh9"
   },
   "expected": {
    "type": "16",
    "payload": "06637d4106c1cf38fcbf31313c7b09bee9818c5b",
    "account": "1000000006637d4106c1cf38fcbf31313c7b09bee9818c5b"
   }
  },
  {
   "id": "01-6-bad-base58",
   "chapter": "01",
   "section": "6",
   "title": "A changed base58check character is refused",
   "kind": "address-parse",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNb"
   },
   "expected": {
    "error": "*"
   }
  },
  {
   "id": "01-6-hint-tron-eth",
   "chapter": "01",
   "section": "6",
   "title": "With the Tron hint an Ethereum string is refused, never typed as Tron",
   "kind": "address-parse",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "address": "0xA4cB4CF242Cf8d309E7f7CF1587C50b410f5e7e0",
    "chain": "tron"
   },
   "expected": {
    "error": "not a Tron address: it reads as Ethereum"
   }
  },
  {
   "id": "01-6-hint-bitcoin-taproot",
   "chapter": "01",
   "section": "6",
   "title": "With the Bitcoin hint a Taproot string reads as type 9",
   "kind": "address-parse",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "bc1p5cyxnuxmeuwuvkwfem96lqzszd02n6xdcjrs20cac6yqjjwudpxqkedrcr",
    "chain": "bitcoin"
   },
   "expected": {
    "type": "9",
    "payload": "a60869f0dbcf1dc659c9cecbaf8050135ea9e8cdc487053f1dc6880949dc684c"
   },
   "note": "A Taproot, P2SH, P2WPKH or P2WSH string counts as Bitcoin."
  },
  {
   "id": "01-1-le32-dataset",
   "chapter": "01",
   "section": "1",
   "title": "The dataset account type 10 as LE32",
   "kind": "01-int-le",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "value": "10",
    "width": "4"
   },
   "expected": {
    "bytes": "0a000000"
   }
  },
  {
   "id": "01-1-le64-one-zbc",
   "chapter": "01",
   "section": "1",
   "title": "One ZBC (100,000,000 atomic units) as LE64",
   "kind": "01-int-le",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "value": "100000000",
    "width": "8"
   },
   "expected": {
    "bytes": "00e1f50500000000"
   }
  },
  {
   "id": "01-2-hash160",
   "chapter": "01",
   "section": "2",
   "title": "HASH160 of a compressed key (the Bitcoin wiki example)",
   "kind": "01-hash",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "algorithm": "hash160",
    "data": "0250863ad64a87ae8a2fe83c1af1a8403cb53f53e486d8511dad8a04887e5b2352"
   },
   "expected": {
    "digest": "f54a5851e9372b87810a8e60cdd2e7cfd80b6e31"
   }
  },
  {
   "id": "01-2-hash160-address",
   "chapter": "01",
   "section": "2",
   "title": "The same HASH160 read back from its P2PKH address",
   "kind": "address-parse",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "1PMycacnJaSqwwJqjawXBErnLsZ7RkXUAs"
   },
   "expected": {
    "type": "5",
    "payload": "f54a5851e9372b87810a8e60cdd2e7cfd80b6e31"
   }
  },
  {
   "id": "01-3-base58check",
   "chapter": "01",
   "section": "3",
   "title": "Decode a base58check string",
   "kind": "01-text-decode",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "encoding": "base58check",
    "text": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"
   },
   "expected": {
    "payload": "0062e907b15cbf27d5425399ebf6f0fb50ebb88f18"
   }
  },
  {
   "id": "01-3-bech32",
   "chapter": "01",
   "section": "3",
   "title": "Decode a bech32 SegWit address",
   "kind": "01-text-decode",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "encoding": "segwit",
    "text": "bc1q02eahpuu87g85zka8eapmwzc0rv56yw2s226c4"
   },
   "expected": {
    "hrp": "bc",
    "version": "0",
    "program": "7ab3db879c3f907a0add3e7a1db85878d94d11ca"
   }
  },
  {
   "id": "01-3-ss58",
   "chapter": "01",
   "section": "3",
   "title": "Decode an SS58 address and encode it again",
   "kind": "01-text-decode",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "encoding": "ss58",
    "text": "14j6ekb87LG6TgqexArYBTLsemPXshEzEkdWaufm95Sw3u2L"
   },
   "expected": {
    "prefix": "0",
    "account_id": "a4d007a95b28ce117e4051904503612abdcbd22b60475121f92a8b5dedac375a",
    "encoded": "14j6ekb87LG6TgqexArYBTLsemPXshEzEkdWaufm95Sw3u2L"
   }
  },
  {
   "id": "01-3-bech32-mixed-case",
   "chapter": "01",
   "section": "3",
   "title": "A bech32 string in mixed case is refused",
   "kind": "01-text-decode",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "encoding": "segwit",
    "text": "bc1q02eahpuu87g85zka8eapmwzc0rv56yw2s226C4"
   },
   "expected": {
    "error": "*"
   }
  },
  {
   "id": "01-3-ss58-two-byte-prefix",
   "chapter": "01",
   "section": "3",
   "title": "An SS58 string whose first byte has bit 0x40 set is refused",
   "kind": "01-text-decode",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "encoding": "ss58",
    "text": "7YtyTEnL6F7LcW8opn35j2dVfJgeScApVte3aLULEf6dM4Yz"
   },
   "expected": {
    "error": "*"
   },
   "note": "35 decoded bytes, first byte 0x41, with a correct checksum: only the single-byte prefix form is accepted."
  },
  {
   "id": "01-4-owner-account",
   "chapter": "01",
   "section": "4",
   "title": "The owner account of a genesis registered node of the TestNet genesis file",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "node_key": "02A50719C01D3B81030D5BB866B25E69F15668DE15160BA51B43CD0C1B352CA2",
    "owner_account": "00000000BCCB80820D3E3FCE6E62F1C283ACF6B0AB884A937AF47120DE2FFE88A393B4D6",
    "type": "0",
    "payload": "BCCB80820D3E3FCE6E62F1C283ACF6B0AB884A937AF47120DE2FFE88A393B4D6"
   },
   "note": "The nodes[] entry with node key ZNK_AKSQOGOA_…_FSRL4CNJ and owner ZBC_XTFYBAQN_…_WTLOGT6O; §5 decodes both texts."
  },
  {
   "id": "01-4-typed-account",
   "chapter": "01",
   "section": "4",
   "title": "A typed native account passes the embedded-address check",
   "kind": "01-embedded-address",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "00000000BCCB80820D3E3FCE6E62F1C283ACF6B0AB884A937AF47120DE2FFE88A393B4D6"
   },
   "expected": {
    "type": "0",
    "payload": "bccb80820d3e3fce6e62f1c283acf6b0ab884a937af47120de2ffe88a393b4d6"
   }
  },
  {
   "id": "01-4-bare-key",
   "chapter": "01",
   "section": "4",
   "title": "A bare 32-byte key is not an account",
   "kind": "01-embedded-address",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "address": "BCCB80820D3E3FCE6E62F1C283ACF6B0AB884A937AF47120DE2FFE88A393B4D6"
   },
   "expected": {
    "error": "accounts are typed: a bare 32-byte key is not an account on this chain"
   }
  },
  {
   "id": "01-4-cardano-32",
   "chapter": "01",
   "section": "4",
   "title": "A 32-byte address of type 13 is the typed Cardano account",
   "kind": "01-embedded-address",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "0d00000022abc5de5f77d9fe9d496f361214aad065e66fdcf2f250e2f845d243"
   },
   "expected": {
    "type": "13",
    "payload": "22abc5de5f77d9fe9d496f361214aad065e66fdcf2f250e2f845d243"
   }
  },
  {
   "id": "01-4-eth-account",
   "chapter": "01",
   "section": "4",
   "title": "The Ethereum account of the key with scalar 1 is 24 bytes and passes",
   "kind": "01-embedded-address",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "040000007e5f4552091a69125d5dfcb7b8c2659029395bdf"
   },
   "expected": {
    "type": "4",
    "payload": "7e5f4552091a69125d5dfcb7b8c2659029395bdf"
   }
  },
  {
   "id": "01-4-eth-full-key-shape",
   "chapter": "01",
   "section": "4",
   "title": "Its 68-byte full-key form passes the shape check",
   "kind": "01-embedded-address",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "0400000079be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"
   },
   "expected": {
    "type": "4",
    "payload": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"
   }
  },
  {
   "id": "01-4-eth-split-entry",
   "chapter": "01",
   "section": "4",
   "title": "The 24-byte Ethereum account as a SetSplitPolicy entry is accepted",
   "kind": "01-split-entry",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "040000007e5f4552091a69125d5dfcb7b8c2659029395bdf"
   },
   "expected": {
    "verdict": "valid"
   }
  },
  {
   "id": "01-4-eth-full-key-split",
   "chapter": "01",
   "section": "4",
   "title": "The 68-byte full-key form as a SetSplitPolicy entry is refused",
   "kind": "01-split-entry",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "address": "0400000079be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"
   },
   "expected": {
    "error": "SplitPolicy: a recipient: 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)"
   }
  },
  {
   "id": "01-4-p2pkh-account",
   "chapter": "01",
   "section": "4",
   "title": "The P2PKH account of the same key passes",
   "kind": "01-embedded-address",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "05000000751e76e8199196d454941c45d1b3a323f1433bd6"
   },
   "expected": {
    "type": "5",
    "payload": "751e76e8199196d454941c45d1b3a323f1433bd6"
   }
  },
  {
   "id": "01-4-p2pkh-full-key-shape",
   "chapter": "01",
   "section": "4",
   "title": "Its 37-byte full-key form passes the shape check",
   "kind": "01-embedded-address",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "050000000279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"
   },
   "expected": {
    "type": "5",
    "payload": "0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"
   }
  },
  {
   "id": "01-4-p2pkh-full-key-split",
   "chapter": "01",
   "section": "4",
   "title": "The 37-byte full-key form as a SetSplitPolicy entry is refused",
   "kind": "01-split-entry",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "address": "050000000279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"
   },
   "expected": {
    "error": "SplitPolicy: a recipient: 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)"
   }
  },
  {
   "id": "01-4-empty-recipient",
   "chapter": "01",
   "section": "4",
   "title": "The empty recipient is the four bytes 02000000",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "value": "02000000"
   }
  },
  {
   "id": "01-4-empty-not-account",
   "chapter": "01",
   "section": "4",
   "title": "The empty type is never valid as an account",
   "kind": "01-embedded-address",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "address": "02000000"
   },
   "expected": {
    "error": "Invalid account address type"
   },
   "note": "The chapter says type 2 is invalid; the refusal text is the reference's."
  },
  {
   "id": "01-4-dataset-address",
   "chapter": "01",
   "section": "4",
   "title": "The address of a dataset object created by a transaction",
   "kind": "01-dataset-address",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "creating_tx_hash": "058c3078711492773af075a3b4dd07b44a7e17bd3b3ea985f64677af96a4e467"
   },
   "expected": {
    "address": "0a000000058c3078711492773af075a3b4dd07b44a7e17bd3b3ea985f64677af96a4e467"
   },
   "note": "H here is the hash of the transaction of 02 §1; any 32-byte creating hash is placed the same way."
  },
  {
   "id": "01-5-reference-example",
   "chapter": "01",
   "section": "5",
   "title": "The reference's own example address decodes",
   "kind": "address-decode",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "address": "ZBC_UGQPUJBG_GHSRLK5Y_NIMS6HZ5_RXA3B4IA_SC2TEMNT_KPUGL36W_TKTE7GZ5"
   },
   "expected": {
    "prefix": "ZBC"
   }
  },
  {
   "id": "01-7-longevity",
   "chapter": "01",
   "section": "7",
   "title": "The longevity node pool",
   "kind": "01-pool-address",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "pool": "longevity"
   },
   "expected": {
    "address": "000000005a42434c4f4e4756000000000000000000000000000000000000000000000000",
    "system_pool": "true",
    "rent_exempt": "true"
   },
   "note": "system_pool and rent_exempt are the two sets of Defects (a)."
  },
  {
   "id": "01-7-storage",
   "chapter": "01",
   "section": "7",
   "title": "The storage reward pool",
   "kind": "01-pool-address",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "pool": "storage"
   },
   "expected": {
    "address": "000000005a424353544f5245000000000000000000000000000000000000000000000000",
    "system_pool": "true",
    "rent_exempt": "true"
   },
   "note": "system_pool and rent_exempt are the two sets of Defects (a)."
  },
  {
   "id": "01-7-apps",
   "chapter": "01",
   "section": "7",
   "title": "The apps pool",
   "kind": "01-pool-address",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "pool": "apps"
   },
   "expected": {
    "address": "000000005a42434150505300000000000000000000000000000000000000000000000000",
    "system_pool": "false",
    "rent_exempt": "true"
   },
   "note": "system_pool and rent_exempt are the two sets of Defects (a)."
  },
  {
   "id": "01-7-carry",
   "chapter": "01",
   "section": "7",
   "title": "The lottery carry",
   "kind": "01-pool-address",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "pool": "carry"
   },
   "expected": {
    "address": "000000005a42434341525259000000000000000000000000000000000000000000000000",
    "system_pool": "true",
    "rent_exempt": "true"
   },
   "note": "system_pool and rent_exempt are the two sets of Defects (a)."
  },
  {
   "id": "01-7-burn",
   "chapter": "01",
   "section": "7",
   "title": "The burn address",
   "kind": "01-pool-address",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "pool": "burn"
   },
   "expected": {
    "address": "00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
    "system_pool": "false",
    "rent_exempt": "false"
   },
   "note": "system_pool and rent_exempt are the two sets of Defects (a)."
  },
  {
   "id": "01-8-prove-a",
   "chapter": "01",
   "section": "8",
   "title": "Prove the first published VRF vector",
   "kind": "01-vrf-prove",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "0101010101010101010101010101010101010101010101010101010101010101",
    "alpha": ""
   },
   "expected": {
    "public_key": "8a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c",
    "counter": "28",
    "proof": "517ccd05e153b007e7eb7896ffdd5965617b0f33aee33037311c67d22cf43984662aaa14167daab69641139d5b8630a808cc6d59415604efa182578cf3efa49e63747e0ae2ae1f5ec86d7e4666e7b006",
    "beta": "c65e819682983e3e0ea06564f9ce821faee65fd56e36650a77fb37934726d2a68210fd72c10f9d7f150164d51ebea118524d26357df6537fae700bb9a5d474bc"
   }
  },
  {
   "id": "01-8-verify-a",
   "chapter": "01",
   "section": "8",
   "title": "Verify the first published VRF vector",
   "kind": "01-vrf-verify",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "public_key": "8a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c",
    "alpha": "",
    "proof": "517ccd05e153b007e7eb7896ffdd5965617b0f33aee33037311c67d22cf43984662aaa14167daab69641139d5b8630a808cc6d59415604efa182578cf3efa49e63747e0ae2ae1f5ec86d7e4666e7b006"
   },
   "expected": {
    "counter": "28",
    "beta": "c65e819682983e3e0ea06564f9ce821faee65fd56e36650a77fb37934726d2a68210fd72c10f9d7f150164d51ebea118524d26357df6537fae700bb9a5d474bc"
   }
  },
  {
   "id": "01-8-flipped-s",
   "chapter": "01",
   "section": "8",
   "title": "The same proof with one bit of s flipped is refused",
   "kind": "01-vrf-verify",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "public_key": "8a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c",
    "alpha": "",
    "proof": "517ccd05e153b007e7eb7896ffdd5965617b0f33aee33037311c67d22cf43984662aaa14167daab69641139d5b8630a809cc6d59415604efa182578cf3efa49e63747e0ae2ae1f5ec86d7e4666e7b006"
   },
   "expected": {
    "error": "VRF: the proof does not verify"
   },
   "note": "The lowest bit of s's first byte is flipped; the chapter names the refusal (a challenge mismatch), the text is the reference's."
  },
  {
   "id": "01-8-alpha-b",
   "chapter": "01",
   "section": "8",
   "title": "Block 1 of any chain: alpha is SHA3-256 of the genesis block's 64 zero seed bytes",
   "kind": "hash",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "algorithm": "sha3-256",
    "data": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
   },
   "expected": {
    "digest": "070fa1ab6fcc557ed14d42941f1967693048551eb9042a8d0a057afbd75e81e0"
   }
  },
  {
   "id": "01-8-prove-b",
   "chapter": "01",
   "section": "8",
   "title": "Prove block 1's seed under the key of vector (a)",
   "kind": "01-vrf-prove",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "0101010101010101010101010101010101010101010101010101010101010101",
    "alpha": "070fa1ab6fcc557ed14d42941f1967693048551eb9042a8d0a057afbd75e81e0"
   },
   "expected": {
    "public_key": "8a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c",
    "counter": "34",
    "proof": "542529a7c6e4557c0b133b605bfeda1850e8a6fcee80fa47fd892482afa6f4c8cd092d802ef89d6748dd49437f9a3b385c4869b410f02c864a3dc81b3d2d766796fc724a3dca71fe10e5c0b80cfa1d0b",
    "beta": "0aaaaa1285e87f89b1bddb73cebe33ee2966bf8d3291c4032bfa0445fa8aa242f50ec37f4d2315be1345bbbb2ed60ee130002e92a42a10c54e00018f69fd85b3"
   }
  },
  {
   "id": "01-8-verify-b",
   "chapter": "01",
   "section": "8",
   "title": "Block 1's proof verifies and its output is block 1's seed",
   "kind": "01-vrf-verify",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "public_key": "8a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c",
    "alpha": "070fa1ab6fcc557ed14d42941f1967693048551eb9042a8d0a057afbd75e81e0",
    "proof": "542529a7c6e4557c0b133b605bfeda1850e8a6fcee80fa47fd892482afa6f4c8cd092d802ef89d6748dd49437f9a3b385c4869b410f02c864a3dc81b3d2d766796fc724a3dca71fe10e5c0b80cfa1d0b"
   },
   "expected": {
    "counter": "34",
    "beta": "0aaaaa1285e87f89b1bddb73cebe33ee2966bf8d3291c4032bfa0445fa8aa242f50ec37f4d2315be1345bbbb2ed60ee130002e92a42a10c54e00018f69fd85b3"
   }
  },
  {
   "id": "01-8-last-byte-b",
   "chapter": "01",
   "section": "8",
   "title": "The same proof with its last byte changed to 0a is refused",
   "kind": "01-vrf-verify",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "public_key": "8a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c",
    "alpha": "070fa1ab6fcc557ed14d42941f1967693048551eb9042a8d0a057afbd75e81e0",
    "proof": "542529a7c6e4557c0b133b605bfeda1850e8a6fcee80fa47fd892482afa6f4c8cd092d802ef89d6748dd49437f9a3b385c4869b410f02c864a3dc81b3d2d766796fc724a3dca71fe10e5c0b80cfa1d0a"
   },
   "expected": {
    "error": "VRF: the proof does not verify"
   },
   "note": "The chapter names the refusal (a challenge mismatch); the text is the reference's."
  },
  {
   "id": "01-8-rfc9381-negative",
   "chapter": "01",
   "section": "8",
   "title": "Plain RFC 9381 on vector (a) gives another output",
   "kind": "01-vrf-rfc9381",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "0101010101010101010101010101010101010101010101010101010101010101",
    "alpha": ""
   },
   "expected": {
    "counter": "1",
    "h": "97e23d641a88aeee7a1704c25b500ac5977d9ad3e8c3031041c83ff2891a552d",
    "beta": "244dac2b152334d7613320bcbcfe6ecb582fe006fc23bc1a2a5d4a316b740a692f154ae18120dfe6c8797f57583ebfbe71898070e0285743e50ee306860131b0"
   },
   "note": "An implementation that produces this output has implemented the RFC, not the variant; the reference has no RFC code."
  }
 ]
}
