{
 "format": "zoobc-conformance-vectors/1",
 "edition": "0.6.1",
 "chapter": "34",
 "license": "CC BY 4.0, ZooBC Foundation",
 "cases": [
  {
   "id": "34-1-coins",
   "chapter": "34",
   "section": "1",
   "title": "The four bridge coins of the TestNet and DevNet genesis files",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "4": "ZBTC bitcoin native bc1q02eahpuu87g85zka8eapmwzc0rv56yw2s226c4 8",
    "5": "ZETH ethereum native 0x9A080FFFE4105361b023220bD21Be0B9418E908e 8",
    "13": "ZUSDC ethereum 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 0x9A080FFFE4105361b023220bD21Be0B9418E908e 8",
    "14": "ZUSDT ethereum 0xdAC17F958D2ee523a2206206994597C13D831ec7 0x9A080FFFE4105361b023220bD21Be0B9418E908e 8"
   },
   "note": "token_id, symbol, chain, asset, deposit_address, decimals; the other ten genesis tokens name no deposit address and have no row."
  },
  {
   "id": "34-1-supplies",
   "chapter": "34",
   "section": "1",
   "title": "The four bridge coins' supplies at height 0",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "ZBTC": "45000000000",
    "ZETH": "450000000000",
    "ZUSDC": "45000000000000",
    "ZUSDT": "45000000000000"
   },
   "note": "The treasury and the market maker each hold 10,000,000,000 ZBTC units, 100,000,000,000 ZETH and 10,000,000,000,000 ZUSDC and ZUSDT; 25 other accounts one tenth of each."
  },
  {
   "id": "34-1a-custody-zbtc",
   "chapter": "34",
   "section": "1a",
   "title": "The custody account of ZBTC (token 4)",
   "kind": "34-custody",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "token_id": "4",
    "symbol": "ZBTC",
    "chain": "bitcoin",
    "asset": "native"
   },
   "expected": {
    "preimage": "5a42432d4252494447452d435553544f44590400000000000000",
    "custody_account": "000000009c12546254570a0b0cf128e9b70f20c7a61a625dbce7a6dec7b873f6e458bff1",
    "zbc_withdraw_address": "ZBC_TQJFIYSU_K4FAWDHR_FDU3ODZA_Y6TBUYS5_XTT2NXWH_XBZ7NZCY_X7YUFPFA",
    "withdrawals_open": "false",
    "withdrawals_closed_reason": "withdrawals of ZBTC are not open: no release to bitcoin exists in this release"
   }
  },
  {
   "id": "34-1a-custody-zeth",
   "chapter": "34",
   "section": "1a",
   "title": "The custody account of ZETH (token 5), whose withdrawals are open",
   "kind": "34-custody",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "token_id": "5",
    "symbol": "ZETH",
    "chain": "ethereum",
    "asset": "native"
   },
   "expected": {
    "preimage": "5a42432d4252494447452d435553544f44590500000000000000",
    "custody_account": "00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2",
    "zbc_withdraw_address": "ZBC_WBYN35UM_GJYMHAYZ_Y7CMOYLG_ULDW3DU2_OXBWRRTW_TUH6LT2P_JXZAEBCI",
    "withdrawals_open": "true",
    "withdrawals_closed_reason": ""
   }
  },
  {
   "id": "34-1a-custody-zusdc",
   "chapter": "34",
   "section": "1a",
   "title": "The custody account of ZUSDC (token 13)",
   "kind": "34-custody",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "token_id": "13",
    "symbol": "ZUSDC",
    "chain": "ethereum",
    "asset": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
   },
   "expected": {
    "preimage": "5a42432d4252494447452d435553544f44590d00000000000000",
    "custody_account": "000000006326c1035c60736d62fcd27ae9e9807c9a60bf1e4be16c784b2757799067778f",
    "zbc_withdraw_address": "ZBC_MMTMCA24_MBZW2YX4_2J5OT2MA_PSNGBPY6_JPQWY6CL_E5LXTEDH_O6H75IJY",
    "withdrawals_open": "false",
    "withdrawals_closed_reason": "withdrawals of ZUSDC are not open: no release of an ethereum token contract exists in this release"
   }
  },
  {
   "id": "34-1a-custody-zusdt",
   "chapter": "34",
   "section": "1a",
   "title": "The custody account of ZUSDT (token 14)",
   "kind": "34-custody",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "token_id": "14",
    "symbol": "ZUSDT",
    "chain": "ethereum",
    "asset": "0xdAC17F958D2ee523a2206206994597C13D831ec7"
   },
   "expected": {
    "preimage": "5a42432d4252494447452d435553544f44590e00000000000000",
    "custody_account": "00000000a3de97bbe2310df7e069a32c109cc1e726fc0eff8073e10d21a00777458bae5e",
    "zbc_withdraw_address": "ZBC_UPPJPO7C_GEG7PYDJ_UMWBBHGB_44TPYDX7_QBZ6CDJB_UADXORML_VZPD4DXZ",
    "withdrawals_open": "false",
    "withdrawals_closed_reason": "withdrawals of ZUSDT are not open: no release of an ethereum token contract exists in this release"
   }
  },
  {
   "id": "34-1a-custody-no-symbol",
   "chapter": "34",
   "section": "1a",
   "title": "A coin with no symbol on another chain is named by its id and closed",
   "kind": "34-custody",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "token_id": "99",
    "symbol": "",
    "chain": "Solana",
    "asset": "native"
   },
   "expected": {
    "withdrawals_open": "false",
    "withdrawals_closed_reason": "withdrawals of token 99 are not open: no release to solana exists in this release"
   }
  },
  {
   "id": "34-2-quorum-1",
   "chapter": "34",
   "section": "2",
   "title": "1 counted registered node needs 1",
   "kind": "34-quorum",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "num": "2",
    "den": "3",
    "min_registry_size": "1",
    "n": "1"
   },
   "expected": {
    "quorum": "1"
   }
  },
  {
   "id": "34-2-quorum-2",
   "chapter": "34",
   "section": "2",
   "title": "2 counted registered nodes need 2",
   "kind": "34-quorum",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "num": "2",
    "den": "3",
    "min_registry_size": "1",
    "n": "2"
   },
   "expected": {
    "quorum": "2"
   }
  },
  {
   "id": "34-2-quorum-3",
   "chapter": "34",
   "section": "2",
   "title": "3 counted registered nodes need 2",
   "kind": "34-quorum",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "num": "2",
    "den": "3",
    "min_registry_size": "1",
    "n": "3"
   },
   "expected": {
    "quorum": "2"
   }
  },
  {
   "id": "34-2-quorum-4",
   "chapter": "34",
   "section": "2",
   "title": "4 counted registered nodes need 3",
   "kind": "34-quorum",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "num": "2",
    "den": "3",
    "min_registry_size": "1",
    "n": "4"
   },
   "expected": {
    "quorum": "3"
   }
  },
  {
   "id": "34-2-quorum-5",
   "chapter": "34",
   "section": "2",
   "title": "5 counted registered nodes need 4",
   "kind": "34-quorum",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "num": "2",
    "den": "3",
    "min_registry_size": "1",
    "n": "5"
   },
   "expected": {
    "quorum": "4"
   }
  },
  {
   "id": "34-2-quorum-6",
   "chapter": "34",
   "section": "2",
   "title": "6 counted registered nodes need 4",
   "kind": "34-quorum",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "num": "2",
    "den": "3",
    "min_registry_size": "1",
    "n": "6"
   },
   "expected": {
    "quorum": "4"
   }
  },
  {
   "id": "34-2-quorum-7",
   "chapter": "34",
   "section": "2",
   "title": "7 counted registered nodes need 5",
   "kind": "34-quorum",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "num": "2",
    "den": "3",
    "min_registry_size": "1",
    "n": "7"
   },
   "expected": {
    "quorum": "5"
   }
  },
  {
   "id": "34-2-quorum-8",
   "chapter": "34",
   "section": "2",
   "title": "8 counted registered nodes need 6",
   "kind": "34-quorum",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "num": "2",
    "den": "3",
    "min_registry_size": "1",
    "n": "8"
   },
   "expected": {
    "quorum": "6"
   }
  },
  {
   "id": "34-2-quorum-9",
   "chapter": "34",
   "section": "2",
   "title": "9 counted registered nodes need 6",
   "kind": "34-quorum",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "num": "2",
    "den": "3",
    "min_registry_size": "1",
    "n": "9"
   },
   "expected": {
    "quorum": "6"
   }
  },
  {
   "id": "34-2-quorum-10",
   "chapter": "34",
   "section": "2",
   "title": "10 counted registered nodes need 7",
   "kind": "34-quorum",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "num": "2",
    "den": "3",
    "min_registry_size": "1",
    "n": "10"
   },
   "expected": {
    "quorum": "7"
   }
  },
  {
   "id": "34-2-quorum-11",
   "chapter": "34",
   "section": "2",
   "title": "11 counted registered nodes need 8",
   "kind": "34-quorum",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "num": "2",
    "den": "3",
    "min_registry_size": "1",
    "n": "11"
   },
   "expected": {
    "quorum": "8"
   }
  },
  {
   "id": "34-2-quorum-12",
   "chapter": "34",
   "section": "2",
   "title": "12 counted registered nodes need 8",
   "kind": "34-quorum",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "num": "2",
    "den": "3",
    "min_registry_size": "1",
    "n": "12"
   },
   "expected": {
    "quorum": "8"
   }
  },
  {
   "id": "34-2-quorum-13",
   "chapter": "34",
   "section": "2",
   "title": "13 counted registered nodes need 9",
   "kind": "34-quorum",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "num": "2",
    "den": "3",
    "min_registry_size": "1",
    "n": "13"
   },
   "expected": {
    "quorum": "9"
   }
  },
  {
   "id": "34-2-quorum-20",
   "chapter": "34",
   "section": "2",
   "title": "20 counted registered nodes need 14",
   "kind": "34-quorum",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "num": "2",
    "den": "3",
    "min_registry_size": "1",
    "n": "20"
   },
   "expected": {
    "quorum": "14"
   }
  },
  {
   "id": "34-2-quorum-100",
   "chapter": "34",
   "section": "2",
   "title": "100 counted registered nodes need 67",
   "kind": "34-quorum",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "num": "2",
    "den": "3",
    "min_registry_size": "1",
    "n": "100"
   },
   "expected": {
    "quorum": "67"
   }
  },
  {
   "id": "34-2-below-floor",
   "chapter": "34",
   "section": "2",
   "title": "Six counted registered nodes on TestNet resolve no bridge event",
   "kind": "34-quorum",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "num": "2",
    "den": "3",
    "min_registry_size": "7",
    "n": "6"
   },
   "expected": {
    "floor_met": "false"
   }
  },
  {
   "id": "34-2-view",
   "chapter": "34",
   "section": "2",
   "title": "The quorum a recorded request's withdrawal view shows with the 11 genesis registered nodes",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "registry_size": "11",
    "quorum": "8",
    "quorum_num": "2",
    "quorum_den": "3"
   }
  },
  {
   "id": "34-3-deposit",
   "chapter": "34",
   "section": "3",
   "title": "A deposit attestation minting 1 ZETH",
   "kind": "34-attestation",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "chain": "ethereum",
    "ext_txid": "0xabababababababababababababababababababababababababababababababab",
    "log_index": "0",
    "token_id": "5",
    "amount": "100000000",
    "recipient": "0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6",
    "fee": "0",
    "sender": "registered"
   },
   "expected": {
    "event_id": "ZBRDEP1:ethereum:0xabababababababababababababababababababababababababababababababab:0",
    "event_length": "85",
    "value": "5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6",
    "value_length": "84",
    "body": "550000005a4252444550313a657468657265756d3a3078616261626162616261626162616261626162616261626162616261626162616261626162616261626162616261626162616261626162616261626162616261623a3054000000353a3130303030303030303a303030303030303033306365623263363330636562326336333063656232633633306365623263363330636562326336333063656232633633306365623263363330636562326336",
    "length": "177",
    "bridge": "true"
   }
  },
  {
   "id": "34-3-fee-1",
   "chapter": "34",
   "section": "3",
   "title": "The same attestation with a fee of 1",
   "kind": "34-attestation",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "chain": "ethereum",
    "ext_txid": "0xabababababababababababababababababababababababababababababababab",
    "log_index": "0",
    "token_id": "5",
    "amount": "100000000",
    "recipient": "0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6",
    "fee": "1",
    "sender": "registered"
   },
   "expected": {
    "error": "Transaction fee must be exactly 0: a node duty declares a fee of exactly zero (this one declares 1)"
   }
  },
  {
   "id": "34-3-not-node",
   "chapter": "34",
   "section": "3",
   "title": "The same attestation from an account that is no registered node",
   "kind": "34-attestation",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "chain": "ethereum",
    "ext_txid": "0xabababababababababababababababababababababababababababababababab",
    "log_index": "0",
    "token_id": "5",
    "amount": "100000000",
    "recipient": "0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6",
    "fee": "0",
    "sender": "other"
   },
   "expected": {
    "error": "Bridge attestation must be signed by a registered node"
   }
  },
  {
   "id": "34-3-survival",
   "chapter": "34",
   "section": "3",
   "title": "The same attestation while the next block's survival flag is true",
   "kind": "34-attestation",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "chain": "ethereum",
    "ext_txid": "0xabababababababababababababababababababababababababababababababab",
    "log_index": "0",
    "token_id": "5",
    "amount": "100000000",
    "recipient": "0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6",
    "fee": "0",
    "sender": "registered",
    "survival": "true"
   },
   "expected": {
    "error": "SurvivalMode: transaction type 17 is not accepted while fewer than survival_min_producers distinct producers made the last 120 blocks (survival mode: governance and bridge are frozen until N produce again)"
   },
   "note": "survival_min_producers 5 and no blocksmith in the window of the next block."
  },
  {
   "id": "34-4-eighth",
   "chapter": "34",
   "section": "4",
   "title": "The eighth of eleven attesters resolves the deposit and mints",
   "kind": "34-deposit",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "event_id": "ZBRDEP1:ethereum:0xabababababababababababababababababababababababababababababababab:0",
    "n": "11",
    "quorum": "8",
    "supply": "450000000000",
    "balance": "0",
    "attestations": "0 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6\n1 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6\n2 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6\n3 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6\n4 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6\n5 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6\n6 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6\n7 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6"
   },
   "expected": {
    "resolved": "true",
    "value": "5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6",
    "supply": "450100000000",
    "balance": "100000000"
   }
  },
  {
   "id": "34-4-seventh",
   "chapter": "34",
   "section": "4",
   "title": "Seven attesters are not enough",
   "kind": "34-deposit",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "event_id": "ZBRDEP1:ethereum:0xabababababababababababababababababababababababababababababababab:0",
    "n": "11",
    "quorum": "8",
    "supply": "450000000000",
    "balance": "0",
    "attestations": "0 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6\n1 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6\n2 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6\n3 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6\n4 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6\n5 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6\n6 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6"
   },
   "expected": {
    "resolved": "false",
    "supply": "450000000000",
    "balance": "0"
   }
  },
  {
   "id": "34-4-cap-50",
   "chapter": "34",
   "section": "4",
   "title": "A first mint of 50 ZETH in 5,760 blocks needs two thirds",
   "kind": "34-quorum",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "num": "2",
    "den": "3",
    "min_registry_size": "1",
    "n": "11",
    "supply": "450000000000",
    "minted_today": "0",
    "amount": "5000000000"
   },
   "expected": {
    "quorum": "8",
    "cap": "45000000000"
   }
  },
  {
   "id": "34-4-cap-500",
   "chapter": "34",
   "section": "4",
   "title": "A mint of 500 ZETH needs every counted registered node",
   "kind": "34-quorum",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "num": "2",
    "den": "3",
    "min_registry_size": "1",
    "n": "11",
    "supply": "450000000000",
    "minted_today": "0",
    "amount": "50000000000"
   },
   "expected": {
    "quorum": "11"
   }
  },
  {
   "id": "34-4-unknown-token",
   "chapter": "34",
   "section": "4",
   "title": "Eight attesters agreeing on token 99, which does not exist",
   "kind": "34-deposit",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "event_id": "ZBRDEP1:ethereum:0xabababababababababababababababababababababababababababababababab:0",
    "n": "11",
    "quorum": "8",
    "supply": "450000000000",
    "balance": "0",
    "attestations": "0 99:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6\n1 99:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6\n2 99:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6\n3 99:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6\n4 99:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6\n5 99:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6\n6 99:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6\n7 99:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6"
   },
   "expected": {
    "error": "Bridge mint: unknown token"
   },
   "note": "Logged; no result row: the event stays pending."
  },
  {
   "id": "34-4-unknown-token-later",
   "chapter": "34",
   "section": "4",
   "title": "Eight later attestations on the correct value resolve the same event",
   "kind": "34-deposit",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "event_id": "ZBRDEP1:ethereum:0xabababababababababababababababababababababababababababababababab:0",
    "n": "11",
    "quorum": "8",
    "supply": "450000000000",
    "balance": "0",
    "attestations": "0 99:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6 990\n1 99:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6 990\n2 99:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6 990\n3 99:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6 990\n4 99:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6 990\n5 99:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6 990\n6 99:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6 990\n7 99:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6 990\n0 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6 995\n1 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6 995\n2 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6 995\n3 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6 995\n4 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6 995\n5 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6 995\n6 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6 995\n7 5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6 995"
   },
   "expected": {
    "resolved": "true",
    "value": "5:100000000:0000000030ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c630ceb2c6",
    "supply": "450100000000",
    "balance": "100000000",
    "log": "Bridge mint: unknown token"
   },
   "note": "The block after 990 logs the refusal; each attester's later row retires its earlier one."
  },
  {
   "id": "34-4-full-key",
   "chapter": "34",
   "section": "4",
   "title": "Eight attesters agreeing on the 68-byte full-key form of an Ethereum account",
   "kind": "34-deposit",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "event_id": "ZBRDEP1:ethereum:0xabababababababababababababababababababababababababababababababab:0",
    "n": "11",
    "quorum": "8",
    "supply": "450000000000",
    "balance": "0",
    "attestations": "0 5:100000000:040000002c67e6ec6aa795e8ae01447ac9f3a57616dc2cf17ddbe367d8dfc564e923c1e268487e15e10d153c32c41a2820a383628098d155fc6eefb44ba37e93e99f05f1\n1 5:100000000:040000002c67e6ec6aa795e8ae01447ac9f3a57616dc2cf17ddbe367d8dfc564e923c1e268487e15e10d153c32c41a2820a383628098d155fc6eefb44ba37e93e99f05f1\n2 5:100000000:040000002c67e6ec6aa795e8ae01447ac9f3a57616dc2cf17ddbe367d8dfc564e923c1e268487e15e10d153c32c41a2820a383628098d155fc6eefb44ba37e93e99f05f1\n3 5:100000000:040000002c67e6ec6aa795e8ae01447ac9f3a57616dc2cf17ddbe367d8dfc564e923c1e268487e15e10d153c32c41a2820a383628098d155fc6eefb44ba37e93e99f05f1\n4 5:100000000:040000002c67e6ec6aa795e8ae01447ac9f3a57616dc2cf17ddbe367d8dfc564e923c1e268487e15e10d153c32c41a2820a383628098d155fc6eefb44ba37e93e99f05f1\n5 5:100000000:040000002c67e6ec6aa795e8ae01447ac9f3a57616dc2cf17ddbe367d8dfc564e923c1e268487e15e10d153c32c41a2820a383628098d155fc6eefb44ba37e93e99f05f1\n6 5:100000000:040000002c67e6ec6aa795e8ae01447ac9f3a57616dc2cf17ddbe367d8dfc564e923c1e268487e15e10d153c32c41a2820a383628098d155fc6eefb44ba37e93e99f05f1\n7 5:100000000:040000002c67e6ec6aa795e8ae01447ac9f3a57616dc2cf17ddbe367d8dfc564e923c1e268487e15e10d153c32c41a2820a383628098d155fc6eefb44ba37e93e99f05f1"
   },
   "expected": {
    "error": "Bridge deposit: 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)"
   },
   "note": "Type 4 followed by the 64-byte key of the Ethereum private key of 33 §3; logged, nothing minted, no result row."
  },
  {
   "id": "34-4-custody",
   "chapter": "34",
   "section": "4",
   "title": "Eight attesters agreeing on ZETH's custody account as the recipient",
   "kind": "34-deposit",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "event_id": "ZBRDEP1:ethereum:0xabababababababababababababababababababababababababababababababab:0",
    "n": "11",
    "quorum": "8",
    "supply": "450000000000",
    "balance": "0",
    "attestations": "0 5:100000000:00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2\n1 5:100000000:00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2\n2 5:100000000:00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2\n3 5:100000000:00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2\n4 5:100000000:00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2\n5 5:100000000:00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2\n6 5:100000000:00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2\n7 5:100000000:00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2"
   },
   "expected": {
    "error": "Bridge deposit: the recipient is the custody account of ZETH, which receives only withdrawals"
   },
   "note": "Logged; nothing minted, no result row: the deposit waits."
  },
  {
   "id": "34-4-full-key-address",
   "chapter": "34",
   "section": "4",
   "title": "The same deposit naming the 20-byte address of that key resolves",
   "kind": "34-deposit",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "event_id": "ZBRDEP1:ethereum:0xabababababababababababababababababababababababababababababababab:0",
    "n": "11",
    "quorum": "8",
    "supply": "450000000000",
    "balance": "0",
    "attestations": "0 5:100000000:040000003bc64c92d9bb1c5826643b081108b892e2e7f590\n1 5:100000000:040000003bc64c92d9bb1c5826643b081108b892e2e7f590\n2 5:100000000:040000003bc64c92d9bb1c5826643b081108b892e2e7f590\n3 5:100000000:040000003bc64c92d9bb1c5826643b081108b892e2e7f590\n4 5:100000000:040000003bc64c92d9bb1c5826643b081108b892e2e7f590\n5 5:100000000:040000003bc64c92d9bb1c5826643b081108b892e2e7f590\n6 5:100000000:040000003bc64c92d9bb1c5826643b081108b892e2e7f590\n7 5:100000000:040000003bc64c92d9bb1c5826643b081108b892e2e7f590"
   },
   "expected": {
    "resolved": "true",
    "value": "5:100000000:040000003bc64c92d9bb1c5826643b081108b892e2e7f590",
    "supply": "450100000000",
    "balance": "100000000"
   }
  },
  {
   "id": "34-5-trigger",
   "chapter": "34",
   "section": "5",
   "title": "A withdrawal of 1 ZETH to an Ethereum address, sent to ZETH's custody account, mined at 10,000 and credited",
   "kind": "34-withdrawal-trigger",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "token_id": "5",
    "amount": "100000000",
    "destination": "0x9A080FFFE4105361b023220bD21Be0B9418E908e",
    "custody": "00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2",
    "height": "10000",
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21",
    "held": "100000000"
   },
   "expected": {
    "body": "050000000000000000e1f50500000000",
    "message": "5a4257317c307839413038304646464534313035333631623032333232306244323142653042393431384539303865",
    "message_length": "47",
    "request": "5 100000000 0x9A080FFFE4105361b023220bD21Be0B9418E908e 10000 1",
    "custody_address": "00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2"
   },
   "note": "The destination's mixed case is a valid EIP-55 checksum."
  },
  {
   "id": "34-5-lower",
   "chapter": "34",
   "section": "5",
   "title": "The same destination all in lower case passes",
   "kind": "34-withdrawal-trigger",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "token_id": "5",
    "amount": "100000000",
    "destination": "0x9a080fffe4105361b023220bd21be0b9418e908e",
    "custody": "00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2",
    "height": "10000",
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21"
   },
   "expected": {
    "message_length": "47"
   }
  },
  {
   "id": "34-5-upper",
   "chapter": "34",
   "section": "5",
   "title": "The same destination all in upper case passes",
   "kind": "34-withdrawal-trigger",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "token_id": "5",
    "amount": "100000000",
    "destination": "0x9A080FFFE4105361B023220BD21BE0B9418E908E",
    "custody": "00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2",
    "height": "10000",
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21"
   },
   "expected": {
    "message_length": "47"
   }
  },
  {
   "id": "34-5-no-prefix",
   "chapter": "34",
   "section": "5",
   "title": "The same destination without 0x passes",
   "kind": "34-withdrawal-trigger",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "token_id": "5",
    "amount": "100000000",
    "destination": "9A080FFFE4105361b023220bD21Be0B9418E908e",
    "custody": "00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2",
    "height": "10000",
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21"
   },
   "expected": {
    "message_length": "45"
   }
  },
  {
   "id": "34-5-no-op",
   "chapter": "34",
   "section": "5",
   "title": "The same transfer from a sender that no longer holds the units writes no request row",
   "kind": "34-withdrawal-trigger",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "token_id": "5",
    "amount": "100000000",
    "destination": "0x9A080FFFE4105361b023220bD21Be0B9418E908e",
    "custody": "00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2",
    "height": "10000",
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21",
    "held": "0"
   },
   "expected": {
    "request": "none"
   },
   "note": "A paid no-op (14): no withdrawal can ever name it."
  },
  {
   "id": "34-5-eip55",
   "chapter": "34",
   "section": "5",
   "title": "The destination with its first letter in lower case (a wrong EIP-55 checksum)",
   "kind": "34-withdrawal-trigger",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "token_id": "5",
    "amount": "100000000",
    "destination": "0x9a080FFFE4105361b023220bD21Be0B9418E908e",
    "custody": "00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2",
    "height": "10000",
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21"
   },
   "expected": {
    "error": "TransferToken: the withdrawal destination cannot be paid on ethereum: the Ethereum destination is in mixed case, so it carries an EIP-55 checksum, and the checksum does not match: a character is wrong"
   },
   "note": "Refused at admission; a block carrying it is invalid."
  },
  {
   "id": "34-5-19-bytes",
   "chapter": "34",
   "section": "5",
   "title": "A 19-byte destination",
   "kind": "34-withdrawal-trigger",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "token_id": "5",
    "amount": "100000000",
    "destination": "0x9A080FFFE4105361b023220bD21Be0B9418E90",
    "custody": "00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2",
    "height": "10000",
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21"
   },
   "expected": {
    "error": "TransferToken: the withdrawal destination cannot be paid on ethereum: an Ethereum destination is 0x and 40 hex digits (a 20-byte address)"
   },
   "note": "Refused at admission; a block carrying it is invalid."
  },
  {
   "id": "34-5-chain-named",
   "chapter": "34",
   "section": "5",
   "title": "The chain named in the message",
   "kind": "34-withdrawal-trigger",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "token_id": "5",
    "amount": "100000000",
    "destination": "ethereum|0x9A080FFFE4105361b023220bD21Be0B9418E908e",
    "custody": "00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2",
    "height": "10000",
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21"
   },
   "expected": {
    "error": "TransferToken: the withdrawal destination cannot be paid on ethereum: a destination is printable ASCII with no space and no '|'"
   },
   "note": "Refused at admission; a block carrying it is invalid."
  },
  {
   "id": "34-5-space",
   "chapter": "34",
   "section": "5",
   "title": "A destination with a space",
   "kind": "34-withdrawal-trigger",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "token_id": "5",
    "amount": "100000000",
    "destination": "0x9A080FFF E4105361b023220bD21Be0B9418E908e",
    "custody": "00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2",
    "height": "10000",
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21"
   },
   "expected": {
    "error": "TransferToken: the withdrawal destination cannot be paid on ethereum: a destination is printable ASCII with no space and no '|'"
   },
   "note": "Refused at admission; a block carrying it is invalid."
  },
  {
   "id": "34-5-empty",
   "chapter": "34",
   "section": "5",
   "title": "The message ZBW1| alone",
   "kind": "34-withdrawal-trigger",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "token_id": "5",
    "amount": "100000000",
    "destination": "",
    "custody": "00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2",
    "height": "10000",
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21"
   },
   "expected": {
    "error": "TransferToken: the withdrawal destination cannot be paid on ethereum: the withdrawal names no destination"
   },
   "note": "Refused at admission; a block carrying it is invalid."
  },
  {
   "id": "34-5-not-custody",
   "chapter": "34",
   "section": "5",
   "title": "Sent to another account",
   "kind": "34-withdrawal-trigger",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "token_id": "5",
    "amount": "100000000",
    "destination": "0x9A080FFFE4105361b023220bD21Be0B9418E908e",
    "custody": "00000000c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5",
    "height": "10000",
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21"
   },
   "expected": {
    "error": "TransferToken: a withdrawal of ZETH is sent to its custody account ZBC_WBYN35UM_GJYMHAYZ_Y7CMOYLG_ULDW3DU2_OXBWRRTW_TUH6LT2P_JXZAEBCI, and this one is not"
   },
   "note": "Refused at admission; a block carrying it is invalid."
  },
  {
   "id": "34-5-escrow",
   "chapter": "34",
   "section": "5",
   "title": "With an escrow part",
   "kind": "34-withdrawal-trigger",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "token_id": "5",
    "amount": "100000000",
    "destination": "0x9A080FFFE4105361b023220bD21Be0B9418E908e",
    "custody": "00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2",
    "height": "10000",
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21",
    "escrow_approver": "00000000a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1"
   },
   "expected": {
    "error": "TransferToken: a withdrawal cannot carry an escrow (its approval would put the tokens in custody with no withdrawal request)"
   },
   "note": "Refused at admission; a block carrying it is invalid."
  },
  {
   "id": "34-5-zusdc",
   "chapter": "34",
   "section": "5",
   "title": "A withdrawal of ZUSDC (token 13)",
   "kind": "34-withdrawal-trigger",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "token_id": "13",
    "amount": "100000000",
    "destination": "0x9A080FFFE4105361b023220bD21Be0B9418E908e",
    "custody": "000000006326c1035c60736d62fcd27ae9e9807c9a60bf1e4be16c784b2757799067778f",
    "height": "10000",
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21"
   },
   "expected": {
    "error": "TransferToken: withdrawals of ZUSDC are not open: no release of an ethereum token contract exists in this release"
   },
   "note": "Refused at admission; a block carrying it is invalid."
  },
  {
   "id": "34-5-zbtc",
   "chapter": "34",
   "section": "5",
   "title": "A withdrawal of ZBTC (token 4) to a Bitcoin address",
   "kind": "34-withdrawal-trigger",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "token_id": "4",
    "amount": "100000000",
    "destination": "bc1q02eahpuu87g85zka8eapmwzc0rv56yw2s226c4",
    "custody": "00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2",
    "height": "10000",
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21"
   },
   "expected": {
    "error": "TransferToken: withdrawals of ZBTC are not open: no release to bitcoin exists in this release"
   },
   "note": "Refused at admission; a block carrying it is invalid."
  },
  {
   "id": "34-5-not-bridge-coin",
   "chapter": "34",
   "section": "5",
   "title": "A ZBW1| transfer of token 1, which is no bridge coin",
   "kind": "34-withdrawal-trigger",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "token_id": "1",
    "amount": "100000000",
    "destination": "0x9A080FFFE4105361b023220bD21Be0B9418E908e",
    "custody": "00000000c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5c5",
    "height": "10000",
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21"
   },
   "expected": {
    "error": "TransferToken: a message starting ZBW1| is a withdrawal, and token 1 is not a bridge coin, so it has none"
   },
   "note": "Refused at admission; a block carrying it is invalid."
  },
  {
   "id": "34-5a-sendzbc",
   "chapter": "34",
   "section": "5a",
   "title": "A SendZBC of 1 ZBC to ZETH's custody account",
   "kind": "34-bridge-check",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "type": "1",
    "body": "00e1f50500000000",
    "sender": "00000000d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1",
    "recipient": "00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2"
   },
   "expected": {
    "error": "the recipient is the custody account of ZETH, which receives only withdrawals of ZETH (a TransferToken with a ZBW1| message): nothing else sent to it could ever leave it"
   }
  },
  {
   "id": "34-5a-zusdc",
   "chapter": "34",
   "section": "5a",
   "title": "A TransferToken of 1 ZUSDC without a message to ZUSDC's custody account",
   "kind": "34-bridge-check",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "type": "11",
    "body": "0d0000000000000000e1f50500000000",
    "sender": "00000000d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1",
    "recipient": "000000006326c1035c60736d62fcd27ae9e9807c9a60bf1e4be16c784b2757799067778f"
   },
   "expected": {
    "error": "the recipient is the custody account of ZUSDC, which receives only withdrawals of ZUSDC (a TransferToken with a ZBW1| message, not open in this release): nothing else sent to it could ever leave it"
   }
  },
  {
   "id": "34-5a-batch",
   "chapter": "34",
   "section": "5a",
   "title": "A SendZBCBatch whose second payment is to ZETH's custody account",
   "kind": "34-bridge-check",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "type": "257",
    "body": "02002400000000d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d200e1f505000000002400000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df200e1f50500000000",
    "sender": "00000000d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1"
   },
   "expected": {
    "error": "an account in the transaction's body is the custody account of ZETH, which receives only withdrawals of ZETH (a TransferToken with a ZBW1| message): nothing else sent to it could ever leave it"
   },
   "note": "Body: count 2 (u16 LE), then two payments of 1 ZBC (length 36, address, amount); the 32 bytes after the custody account's type are found in the body."
  },
  {
   "id": "34-5a-approver",
   "chapter": "34",
   "section": "5a",
   "title": "An escrowed SendZBC whose approver is ZBTC's custody account",
   "kind": "34-bridge-check",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "type": "1",
    "body": "00e1f50500000000",
    "sender": "00000000d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1d1",
    "recipient": "00000000d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2",
    "escrow_approver": "000000009c12546254570a0b0cf128e9b70f20c7a61a625dbce7a6dec7b873f6e458bff1"
   },
   "expected": {
    "error": "the escrow approver is the custody account of ZBTC, which receives only withdrawals of ZBTC (a TransferToken with a ZBW1| message, not open in this release): nothing else sent to it could ever leave it"
   }
  },
  {
   "id": "34-6-burn",
   "chapter": "34",
   "section": "6",
   "title": "The eighth agreeing attester burns the custody's units",
   "kind": "34-withdrawal",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21",
    "n": "11",
    "quorum": "8",
    "request": "5 100000000 0x9A080FFFE4105361b023220bD21Be0B9418E908e",
    "height": "10100",
    "custody": "100000000",
    "supply": "450000000000",
    "attestations": "0 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n1 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n2 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n3 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n4 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n5 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n6 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n7 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|"
   },
   "expected": {
    "event_id": "ZBWDR1:d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21",
    "resolved": "true",
    "agreed": "5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e",
    "custody": "0",
    "supply": "449900000000"
   }
  },
  {
   "id": "34-6-seventh",
   "chapter": "34",
   "section": "6",
   "title": "Seven agreeing attesters burn nothing",
   "kind": "34-withdrawal",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21",
    "n": "11",
    "quorum": "8",
    "request": "5 100000000 0x9A080FFFE4105361b023220bD21Be0B9418E908e",
    "height": "10100",
    "custody": "100000000",
    "supply": "450000000000",
    "attestations": "0 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n1 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n2 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n3 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n4 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n5 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n6 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|"
   },
   "expected": {
    "resolved": "false",
    "custody": "100000000",
    "supply": "450000000000"
   }
  },
  {
   "id": "34-6-amount-mismatch",
   "chapter": "34",
   "section": "6",
   "title": "Eight attesters agreeing on twice the request row's amount",
   "kind": "34-withdrawal",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21",
    "n": "11",
    "quorum": "8",
    "request": "5 100000000 0x9A080FFFE4105361b023220bD21Be0B9418E908e",
    "height": "10100",
    "custody": "100000000",
    "supply": "450000000000",
    "attestations": "0 5:200000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n1 5:200000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n2 5:200000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n3 5:200000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n4 5:200000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n5 5:200000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n6 5:200000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n7 5:200000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|"
   },
   "expected": {
    "error": "Bridge withdrawal: token/amount do not match the executed credit"
   },
   "note": "Logged; nothing burned, the event stays open."
  },
  {
   "id": "34-6-destination-mismatch",
   "chapter": "34",
   "section": "6",
   "title": "Eight attesters agreeing on another destination",
   "kind": "34-withdrawal",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21",
    "n": "11",
    "quorum": "8",
    "request": "5 100000000 0x9A080FFFE4105361b023220bD21Be0B9418E908e",
    "height": "10100",
    "custody": "100000000",
    "supply": "450000000000",
    "attestations": "0 5:100000000:0x9a080fffe4105361b023220bd21be0b9418e908e|\n1 5:100000000:0x9a080fffe4105361b023220bd21be0b9418e908e|\n2 5:100000000:0x9a080fffe4105361b023220bd21be0b9418e908e|\n3 5:100000000:0x9a080fffe4105361b023220bd21be0b9418e908e|\n4 5:100000000:0x9a080fffe4105361b023220bd21be0b9418e908e|\n5 5:100000000:0x9a080fffe4105361b023220bd21be0b9418e908e|\n6 5:100000000:0x9a080fffe4105361b023220bd21be0b9418e908e|\n7 5:100000000:0x9a080fffe4105361b023220bd21be0b9418e908e|"
   },
   "expected": {
    "error": "Bridge withdrawal: destination does not match the executed credit"
   },
   "note": "The destination is compared as written."
  },
  {
   "id": "34-6-no-row",
   "chapter": "34",
   "section": "6",
   "title": "An event id ZBWDR1:00ff naming no request row",
   "kind": "34-withdrawal",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "trigger_hash": "00ff",
    "n": "11",
    "quorum": "8",
    "height": "10100",
    "custody": "100000000",
    "supply": "450000000000",
    "attestations": "0 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n1 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n2 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n3 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n4 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n5 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n6 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n7 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|"
   },
   "expected": {
    "error": "Bridge withdrawal: no executed custody credit for this trigger"
   }
  },
  {
   "id": "34-6-old-request",
   "chapter": "34",
   "section": "6",
   "title": "A request row credited at 10,000 still burns at block 1,000,000",
   "kind": "34-withdrawal",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21",
    "n": "11",
    "quorum": "8",
    "request": "5 100000000 0x9A080FFFE4105361b023220bD21Be0B9418E908e",
    "height": "1000000",
    "custody": "100000000",
    "supply": "450000000000",
    "attestations": "0 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n1 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n2 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n3 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n4 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n5 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n6 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|\n7 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|"
   },
   "expected": {
    "resolved": "true",
    "custody": "0"
   },
   "note": "A request row has no window of its own."
  },
  {
   "id": "34-7-last",
   "chapter": "34",
   "section": "7",
   "title": "An event attested at 135,000 is a candidate at 135,720",
   "kind": "34-idle",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "newest": "135000",
    "height": "135720"
   },
   "expected": {
    "candidate": "true"
   }
  },
  {
   "id": "34-7-dropped",
   "chapter": "34",
   "section": "7",
   "title": "It is dropped from 135,721",
   "kind": "34-idle",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "newest": "135000",
    "height": "135721"
   },
   "expected": {
    "candidate": "false"
   }
  },
  {
   "id": "34-7-survival-last",
   "chapter": "34",
   "section": "7",
   "title": "With the survival flag stored true at 135,100 … 135,199 it is a candidate at 135,820",
   "kind": "34-idle",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "newest": "135000",
    "survival_from": "135100",
    "survival_to": "135199",
    "height": "135820"
   },
   "expected": {
    "candidate": "true"
   }
  },
  {
   "id": "34-7-survival-dropped",
   "chapter": "34",
   "section": "7",
   "title": "… and dropped from 135,821",
   "kind": "34-idle",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "newest": "135000",
    "survival_from": "135100",
    "survival_to": "135199",
    "height": "135821"
   },
   "expected": {
    "candidate": "false"
   }
  },
  {
   "id": "34-8-coins",
   "chapter": "34",
   "section": "8",
   "title": "/bridge/coins",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "body": "{\"bridge_withdrawal_credit\":true,\"coins\":[{\"token_id\":\"4\",\"symbol\":\"ZBTC\",\"chain\":\"bitcoin\",\"asset\":\"native\",\"deposit_address\":\"bc1q02eahpuu87g85zka8eapmwzc0rv56yw2s226c4\",\"custody_account\":\"000000009c12546254570a0b0cf128e9b70f20c7a61a625dbce7a6dec7b873f6e458bff1\",\"zbc_withdraw_address\":\"ZBC_TQJFIYSU_K4FAWDHR_FDU3ODZA_Y6TBUYS5_XTT2NXWH_XBZ7NZCY_X7YUFPFA\",\"withdrawals_open\":false,\"withdrawals_closed_reason\":\"withdrawals of ZBTC are not open: no release to bitcoin exists in this release\",\"decimals\":8},{\"token_id\":\"5\",\"symbol\":\"ZETH\",\"chain\":\"ethereum\",\"asset\":\"native\",\"deposit_address\":\"0x9A080FFFE4105361b023220bD21Be0B9418E908e\",\"custody_account\":\"00000000b070ddf68c3270c38319c7c4c76166a2c76d8e9a75c368c6769d0fe5cf4f4df2\",\"zbc_withdraw_address\":\"ZBC_WBYN35UM_GJYMHAYZ_Y7CMOYLG_ULDW3DU2_OXBWRRTW_TUH6LT2P_JXZAEBCI\",\"withdrawals_open\":true,\"withdrawals_closed_reason\":\"\",\"decimals\":8},…]}"
   },
   "note": "The rows of §1 with the custody keys of §1a (computed by 34-custody), token_id a string."
  },
  {
   "id": "34-8-deposits-none",
   "chapter": "34",
   "section": "8",
   "title": "/bridge/deposits?recipient=00 with no keeper file",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "status": "200",
    "body": "{\"deposits\":[]}"
   }
  },
  {
   "id": "34-8-withdrawal-no-row",
   "chapter": "34",
   "section": "8",
   "title": "/bridge/withdrawals/00ff with no request row",
   "kind": "34-withdrawal-view",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "trigger_hash": "00ff"
   },
   "expected": {
    "error": "no executed custody credit for this trigger"
   },
   "note": "Answered 404 {\"success\":false,\"error\":\"no executed custody credit for this trigger\",\"code\":404}."
  },
  {
   "id": "34-8-requests-no-custody",
   "chapter": "34",
   "section": "8",
   "title": "/bridge/withdrawal-requests without custody",
   "kind": "reference",
   "validity": "invalid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "status": "400",
    "error": "custody (hex account address) is required"
   }
  },
  {
   "id": "34-8-withdrawal-resolved",
   "chapter": "34",
   "section": "8",
   "title": "The §6 example resolved at height 1,200",
   "kind": "34-withdrawal-view",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21",
    "request": "5 100000000 0x9A080FFFE4105361b023220bD21Be0B9418E908e",
    "n": "11",
    "result_height": "1200",
    "attestations": "0 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e| 1199\n1 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e| 1199\n2 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e| 1199\n3 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e| 1199\n4 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e| 1199\n5 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e| 1199\n6 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e| 1199\n7 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e| 1199"
   },
   "expected": {
    "event_id": "ZBWDR1:d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21",
    "oracle_result_height": "1200",
    "withdrawal_id": "0x3b4a638b4f6e7f3f3bc034171f0c22d4473966d1227b86260a049f6a15419a8e",
    "resolved": "true",
    "token_id": "5",
    "amount": "100000000",
    "destination": "0x9A080FFFE4105361b023220bD21Be0B9418E908e",
    "registry_size": "11",
    "quorum": "8",
    "signature_count": "0",
    "release_amount_wei": "0x0000000000000000000000000000000000000000000000000de0b6b3a7640000"
   },
   "note": "withdrawal_id = Keccak-256 of the trigger hash ‖ b0040000; no signature yet: the first attestations carry none."
  },
  {
   "id": "34-8-withdrawal-pending",
   "chapter": "34",
   "section": "8",
   "title": "The same request before any attestation",
   "kind": "34-withdrawal-view",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21",
    "request": "5 100000000 0x9A080FFFE4105361b023220bD21Be0B9418E908e",
    "n": "11"
   },
   "expected": {
    "oracle_result_height": "0",
    "withdrawal_id": "",
    "resolved": "false",
    "token_id": "0",
    "amount": "0",
    "destination": "",
    "signature_count": "0",
    "release_amount_wei": ""
   }
  },
  {
   "id": "34-9-values",
   "chapter": "34",
   "section": "9",
   "title": "The keeper's values for the §6 example resolved at height 1,200",
   "kind": "34-keeper-release",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "token_id": "5",
    "amount": "100000000",
    "destination": "0x9A080FFFE4105361b023220bD21Be0B9418E908e",
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21",
    "result_height": "1200"
   },
   "expected": {
    "first_value": "5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|",
    "release_value": "5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|R1200|",
    "withdrawal_id": "0x3b4a638b4f6e7f3f3bc034171f0c22d4473966d1227b86260a049f6a15419a8e",
    "release_wei": "0x0000000000000000000000000000000000000000000000000de0b6b3a7640000"
   },
   "note": "The published value is the release value followed by the signature hex; 100,000,000 units x 10^10 = 10^18 wei."
  },
  {
   "id": "34-9-published",
   "chapter": "34",
   "section": "9",
   "title": "The keepers' signatures published once the burn resolved at 1,200",
   "kind": "34-withdrawal-view",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21",
    "request": "5 100000000 0x9A080FFFE4105361b023220bD21Be0B9418E908e",
    "n": "11",
    "result_height": "1200",
    "attestations": "0 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e| 1199\n1 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e| 1199\n2 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e| 1199\n3 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e| 1199\n4 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e| 1199\n5 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e| 1199\n6 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e| 1199\n7 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e| 1199\n0 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|R1200|1010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010 1201\n1 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|R1200|1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 1201\n2 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|R1200|1212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212 1201\n3 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|R1200|1313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313 1201\n4 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|R1200|1414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414 1201\n5 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|R1200|1515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515 1201\n6 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|R1200|1616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616 1201\n7 5:100000000:0x9A080FFFE4105361b023220bD21Be0B9418E908e|R1200|1717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717 1201"
   },
   "expected": {
    "resolved": "true",
    "withdrawal_id": "0x3b4a638b4f6e7f3f3bc034171f0c22d4473966d1227b86260a049f6a15419a8e",
    "signature_count": "8",
    "signatures": "1010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010\n1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111\n1212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212\n1313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313\n1414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414\n1515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515\n1616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616\n1717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717"
   },
   "note": "Each keeper's second attestation retires its first; the signatures here stand for the keepers' EIP-712 signatures."
  },
  {
   "id": "34-9-one-unit",
   "chapter": "34",
   "section": "9",
   "title": "A withdrawal of 1 unit pays 10^10 wei",
   "kind": "34-keeper-release",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "token_id": "5",
    "amount": "1",
    "destination": "0x9A080FFFE4105361b023220bD21Be0B9418E908e",
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21",
    "result_height": "1200"
   },
   "expected": {
    "release_wei": "0x00000000000000000000000000000000000000000000000000000002540be400"
   }
  },
  {
   "id": "34-9-short-destination",
   "chapter": "34",
   "section": "9",
   "title": "A recorded request of the Ethereum-mapped coin with a 19-byte destination is skipped, never signed",
   "kind": "34-keeper-release",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "token_id": "5",
    "amount": "100000000",
    "destination": "0x9A080FFFE4105361b023220bD21Be0B9418E90",
    "trigger_hash": "d75df025be21ac74af3327c20186b415927367402a5b5028447e95c224f74d21",
    "result_height": "1200"
   },
   "expected": {
    "error": "an Ethereum destination is 0x and 40 hex digits (a 20-byte address)"
   },
   "note": "Logged once and marked seen with refused: and the reason; the scan goes on. On a 0.6.1 chain §5 refuses such a transfer."
  },
  {
   "id": "34-9-deposit-1-eth",
   "chapter": "34",
   "section": "9",
   "title": "A deposit of 10^18 wei",
   "kind": "34-keeper-deposit",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "wei": "1000000000000000000",
    "decimals": "8"
   },
   "expected": {
    "units": "100000000",
    "remainder_wei": "0"
   }
  },
  {
   "id": "34-9-deposit-odd",
   "chapter": "34",
   "section": "9",
   "title": "A deposit of 1,234,567,890,123,456,789 wei",
   "kind": "34-keeper-deposit",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "wei": "1234567890123456789",
    "decimals": "8"
   },
   "expected": {
    "units": "123456789",
    "remainder_wei": "123456789"
   }
  },
  {
   "id": "34-9-deposit-9-decimals",
   "chapter": "34",
   "section": "9",
   "title": "The same with the mainnet template's 9 decimals",
   "kind": "34-keeper-deposit",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "wei": "1234567890123456789",
    "decimals": "9"
   },
   "expected": {
    "units": "123456789",
    "remainder_wei": "123456789"
   }
  },
  {
   "id": "34-9-deposit-one-unit",
   "chapter": "34",
   "section": "9",
   "title": "A deposit of 10^10 wei",
   "kind": "34-keeper-deposit",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "wei": "10000000000",
    "decimals": "8"
   },
   "expected": {
    "units": "1",
    "remainder_wei": "0"
   }
  },
  {
   "id": "34-9-deposit-hex",
   "chapter": "34",
   "section": "9",
   "title": "A deposit given as 0x-hex",
   "kind": "34-keeper-deposit",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "wei": "0x0de0b6b3a7640000",
    "decimals": "8"
   },
   "expected": {
    "units": "100000000",
    "remainder_wei": "0"
   }
  },
  {
   "id": "34-9-deposit-grain",
   "chapter": "34",
   "section": "9",
   "title": "A deposit of a coin with 6 decimals rounds to its grain",
   "kind": "34-keeper-deposit",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "wei": "1234567890123456789",
    "decimals": "6"
   },
   "expected": {
    "units": "123456700",
    "remainder_wei": "890123456789"
   }
  },
  {
   "id": "34-9-deposit-dust",
   "chapter": "34",
   "section": "9",
   "title": "A deposit of 9,999,999,999 wei",
   "kind": "34-keeper-deposit",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "wei": "9999999999",
    "decimals": "8"
   },
   "expected": {
    "error": "the deposit is under one unit of the coin; it stays in the foreign custody"
   },
   "note": "The keeper prints not attested: and the reason."
  },
  {
   "id": "34-10-btc-outpoint",
   "chapter": "34",
   "section": "10",
   "title": "The Bitcoin carrier outpoint on the shipped TestNet genesis",
   "kind": "34-btc-binding",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "genesis": "3a2897e7c5ad6143429bab33a92d14d11ffd6fc281f2b62a6fd6b49c183b863d"
   },
   "expected": {
    "outpoint": "3a2897e7c5ad6143429bab33a92d14d11ffd6fc281f2b62a6fd6b49c183b863dffffffff",
    "display_txid": "3d863b189cb4d66f2ab6f281c26ffd1fd1142da933ab9b424361adc5e797283a",
    "verdict": "bound"
   },
   "note": "A live chain substitutes the block-0 hash it announces at launch."
  },
  {
   "id": "34-10-btc-reversed",
   "chapter": "34",
   "section": "10",
   "title": "The outpoint with the hash reversed in the serialized bytes",
   "kind": "34-btc-binding",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "3a2897e7c5ad6143429bab33a92d14d11ffd6fc281f2b62a6fd6b49c183b863d",
    "outpoints": "3d863b189cb4d66f2ab6f281c26ffd1fd1142da933ab9b424361adc5e797283affffffff"
   },
   "expected": {
    "error": "Bitcoin carrier input must spend the ZooBC genesis hash at index 0xFFFFFFFF"
   }
  },
  {
   "id": "34-10-btc-two-inputs",
   "chapter": "34",
   "section": "10",
   "title": "A Bitcoin carrier with two inputs",
   "kind": "34-btc-binding",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "3a2897e7c5ad6143429bab33a92d14d11ffd6fc281f2b62a6fd6b49c183b863d",
    "outpoints": "3a2897e7c5ad6143429bab33a92d14d11ffd6fc281f2b62a6fd6b49c183b863dffffffff\n3a2897e7c5ad6143429bab33a92d14d11ffd6fc281f2b62a6fd6b49c183b863dffffffff"
   },
   "expected": {
    "error": "Bitcoin carrier needs exactly one genesis outpoint"
   }
  },
  {
   "id": "34-10-sol-1280",
   "chapter": "34",
   "section": "10",
   "title": "A Solana carrier included at 2,000 citing block 1,280",
   "kind": "34-solana-binding",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "01b739127b48d5db6a08636d6cceab1db5d1296cb656f7015e18259920c7ab251139b83a5bc79998616186897d01bce235c03d6ad9aa43a38f42165ced980cf000010001038a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c8139770ea87d175f56a35466c34c7ecccb8d8a91b4ee37a25df60f5b8fc9b3940000000000000000000000000000000000000000000000000000000000000000070707070707070707070707070707070707070707070707070707070707070701020200010c0200000087d6120000000000",
    "including_height": "2000",
    "cited_height": "1280"
   },
   "expected": {
    "recent_blockhash": "0707070707070707070707070707070707070707070707070707070707070707",
    "verdict": "bound"
   },
   "note": "A signed System-Program transfer of 1,234,567 lamports (from the key of seed 01 × 32 to that of seed 02 × 32) whose recent_blockhash is 07 × 32."
  },
  {
   "id": "34-10-sol-2000",
   "chapter": "34",
   "section": "10",
   "title": "A Solana carrier included at 2,000 citing block 2,000",
   "kind": "34-solana-binding",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "01b739127b48d5db6a08636d6cceab1db5d1296cb656f7015e18259920c7ab251139b83a5bc79998616186897d01bce235c03d6ad9aa43a38f42165ced980cf000010001038a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c8139770ea87d175f56a35466c34c7ecccb8d8a91b4ee37a25df60f5b8fc9b3940000000000000000000000000000000000000000000000000000000000000000070707070707070707070707070707070707070707070707070707070707070701020200010c0200000087d6120000000000",
    "including_height": "2000",
    "cited_height": "2000"
   },
   "expected": {
    "recent_blockhash": "0707070707070707070707070707070707070707070707070707070707070707",
    "verdict": "bound"
   },
   "note": "A signed System-Program transfer of 1,234,567 lamports (from the key of seed 01 × 32 to that of seed 02 × 32) whose recent_blockhash is 07 × 32."
  },
  {
   "id": "34-10-sol-1279",
   "chapter": "34",
   "section": "10",
   "title": "The same carrier citing block 1,279",
   "kind": "34-solana-binding",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "message": "01b739127b48d5db6a08636d6cceab1db5d1296cb656f7015e18259920c7ab251139b83a5bc79998616186897d01bce235c03d6ad9aa43a38f42165ced980cf000010001038a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c8139770ea87d175f56a35466c34c7ecccb8d8a91b4ee37a25df60f5b8fc9b3940000000000000000000000000000000000000000000000000000000000000000070707070707070707070707070707070707070707070707070707070707070701020200010c0200000087d6120000000000",
    "including_height": "2000",
    "cited_height": "1279"
   },
   "expected": {
    "error": "Solana carrier recent_blockhash is not a main chain ancestor within 720 blocks"
   },
   "note": "A signed System-Program transfer of 1,234,567 lamports (from the key of seed 01 × 32 to that of seed 02 × 32) whose recent_blockhash is 07 × 32."
  },
  {
   "id": "34-10-eth-fee",
   "chapter": "34",
   "section": "10",
   "title": "An Ethereum carrier at 47,619,047,620 wei gas price and 21,000 gas",
   "kind": "34-carrier-fee",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "gas_price": "47619047620",
    "gas_limit": "21000",
    "fee": "100000"
   },
   "expected": {
    "wei": "1000000000020000",
    "fee": "100000"
   }
  },
  {
   "id": "34-10-eth-fee-other",
   "chapter": "34",
   "section": "10",
   "title": "The same carrier declaring another fee",
   "kind": "34-carrier-fee",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "gas_price": "47619047620",
    "gas_limit": "21000",
    "fee": "100001"
   },
   "expected": {
    "error": "Ethereum carrier fee must equal the signed gas fields"
   }
  },
  {
   "id": "34-10-nonce-second-4",
   "chapter": "34",
   "section": "10",
   "title": "A second carrier at nonce 4 while one at nonce 4 is pooled",
   "kind": "34-carrier-nonce",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "account_nonce": "4",
    "pooled": "4",
    "nonce": "4",
    "stage": "admission"
   },
   "expected": {
    "error": "carrier nonce 4, account nonce 5"
   }
  },
  {
   "id": "34-10-nonce-5-admitted",
   "chapter": "34",
   "section": "10",
   "title": "A carrier at nonce 5 while one at nonce 4 is pooled is admitted",
   "kind": "34-carrier-nonce",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "account_nonce": "4",
    "pooled": "4",
    "nonce": "5",
    "stage": "admission"
   },
   "expected": {
    "count": "4",
    "pending": "5",
    "verdict": "accepted"
   }
  },
  {
   "id": "34-10-eth-tx-count",
   "chapter": "34",
   "section": "10",
   "title": "eth-tx-count with carriers at nonces 4 and 5 pooled",
   "kind": "34-carrier-nonce",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "account_nonce": "4",
    "pooled": "4\n5",
    "nonce": "4",
    "stage": "count"
   },
   "expected": {
    "count": "4",
    "pending": "6"
   },
   "note": "eth_getTransactionCount answers \"0x6\" for the pending tag and \"0x4\" for latest."
  },
  {
   "id": "34-10-assembly-4",
   "chapter": "34",
   "section": "10",
   "title": "At block assembly the nonce-4 carrier is eligible",
   "kind": "34-carrier-nonce",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "account_nonce": "4",
    "pooled": "4\n5",
    "nonce": "4",
    "stage": "assembly"
   },
   "expected": {
    "verdict": "accepted"
   }
  },
  {
   "id": "34-10-assembly-5",
   "chapter": "34",
   "section": "10",
   "title": "At block assembly the nonce-5 carrier waits",
   "kind": "34-carrier-nonce",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "account_nonce": "4",
    "pooled": "4\n5",
    "nonce": "5",
    "stage": "assembly"
   },
   "expected": {
    "error": "carrier nonce 5, account nonce 4"
   }
  },
  {
   "id": "34-10-block-nonce-5",
   "chapter": "34",
   "section": "10",
   "title": "A block carrying the carrier at nonce 5 while the account nonce is 4",
   "kind": "34-carrier-nonce",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "account_nonce": "4",
    "nonce": "5",
    "stage": "block"
   },
   "expected": {
    "error": "ForeignCarrierNonce: carrier nonce 5, account nonce 4 (a block carrying it is invalid)"
   },
   "note": "The block is invalid; nothing is charged and the nonce stays 4."
  }
 ]
}
