{
 "format": "zoobc-conformance-vectors/1",
 "edition": "0.6.1",
 "chapter": "27",
 "license": "CC BY 4.0, ZooBC Foundation",
 "cases": [
  {
   "id": "27-1-frame",
   "chapter": "27",
   "section": "1",
   "title": "A GetBlockHashes request, its bytes and its gRPC frame",
   "kind": "27-proto-encode",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "GetBlockHashesRequest",
    "fields": "start_height=12000\nend_height=12002",
    "method": "GetBlockHashes"
   },
   "expected": {
    "bytes": "08E05D10E25D",
    "length": "6",
    "path": "/service.P2PServiceExtended/GetBlockHashes",
    "frame": "000000000608E05D10E25D"
   }
  },
  {
   "id": "27-1-limits",
   "chapter": "27",
   "section": "1",
   "title": "The transport limits",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "server_max_receive_bytes": "2097152",
    "client_max_message_bytes": "8388608",
    "server_keepalive_s": "60/20",
    "client_keepalive_s": "30/10",
    "server_handler_threads": "128",
    "reconnect_backoff_ms": "1000-5000"
   }
  },
  {
   "id": "27-1-deadlines",
   "chapter": "27",
   "section": "1",
   "title": "The client deadlines",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "8000_ms": "GetMorePeers, SendPeers, SendNodeAddressInfo, GetPeerInfo, Handshake, Heartbeat, GetNextBlockIDs, RequestSpineBlockSignature, RequestSpineRefusal, GetBlockHashes, GetStoragePiece, PutStoragePiece",
    "12000_ms": "GetCommonMilestoneBlockIDs",
    "16000_ms": "SendTransaction, GetNextBlocks",
    "10000_ms": "GetCumulativeDifficulty, direct SendBlock, BroadcastBlockCandidate",
    "5000_ms": "the producer's block broadcast, the relays, the discovery GetMorePeers",
    "15000_ms": "RequestBlockTransactions and the SendBlockTransactions that answers it"
   }
  },
  {
   "id": "27-1a-message",
   "chapter": "27",
   "section": "1a",
   "title": "The signing message of a GetNextBlockIDs call to node B",
   "kind": "27-signed-call",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "method": "GetNextBlockIDs",
    "receiver": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "body": "10F6E5B1A6AAFBC4C3E8011832",
    "timestamp": "1794211200",
    "nonce": "0102030405060708",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96"
   },
   "expected": {
    "digest": "7879EE9C76FC9FC11AB2312AFA46A497776A531DC7C8D2B254C81A4AF8BC0D11",
    "message": "5A42432D5032502D5250432D5633004765744E657874426C6F636B4944730020F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3807DF16A000000007879EE9C76FC9FC11AB2312AFA46A497776A531DC7C8D2B254C81A4AF8BC0D110102030405060708",
    "length": "112"
   }
  },
  {
   "id": "27-1a-handshake-message",
   "chapter": "27",
   "section": "1a",
   "title": "A Handshake by address names no receiver: the 74-byte signing message",
   "kind": "27-signed-call",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "method": "Handshake",
    "receiver": "",
    "body": "10F6E5B1A6AAFBC4C3E8011832",
    "timestamp": "1794211200",
    "nonce": "0102030405060708",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96"
   },
   "expected": {
    "digest": "7879EE9C76FC9FC11AB2312AFA46A497776A531DC7C8D2B254C81A4AF8BC0D11",
    "message": "5A42432D5032502D5250432D56330048616E647368616B650000807DF16A000000007879EE9C76FC9FC11AB2312AFA46A497776A531DC7C8D2B254C81A4AF8BC0D110102030405060708",
    "length": "74"
   }
  },
  {
   "id": "27-1a-verified",
   "chapter": "27",
   "section": "1a",
   "title": "Node B serves the call: signed for it, fresh, from a key with a handshake",
   "kind": "27-signed-call",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "method": "GetNextBlockIDs",
    "receiver": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "body": "10F6E5B1A6AAFBC4C3E8011832",
    "timestamp": "1794211200",
    "nonce": "0102030405060708",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "own_key": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "now": "1794211200",
    "handshake": "true"
   },
   "expected": {
    "answer": "verified",
    "strikes": "0"
   },
   "note": "The caller is the test seed's key; B is the receiving node's key."
  },
  {
   "id": "27-1a-replay",
   "chapter": "27",
   "section": "1a",
   "title": "The same call served again inside 600 s",
   "kind": "27-signed-call",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "method": "GetNextBlockIDs",
    "receiver": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "body": "10F6E5B1A6AAFBC4C3E8011832",
    "timestamp": "1794211200",
    "nonce": "0102030405060708",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "own_key": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "now": "1794211200",
    "handshake": "true",
    "served": "2"
   },
   "expected": {
    "answer": "UNAUTHENTICATED: GetNextBlockIDs: signed request seen before",
    "strikes": "1"
   }
  },
  {
   "id": "27-1a-other-node",
   "chapter": "27",
   "section": "1a",
   "title": "A call made with receiver A, received by node B",
   "kind": "27-signed-call",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "method": "GetNextBlockIDs",
    "receiver": "EB89F581920CAC9343663A33911D76CEF5C89390F25865651D902792B881AD65",
    "body": "10F6E5B1A6AAFBC4C3E8011832",
    "timestamp": "1794211200",
    "nonce": "0102030405060708",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "own_key": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "now": "1794211200",
    "handshake": "true"
   },
   "expected": {
    "answer": "UNAUTHENTICATED: GetNextBlockIDs: signed request was made to another node",
    "strikes": "1"
   }
  },
  {
   "id": "27-1a-clock",
   "chapter": "27",
   "section": "1a",
   "title": "A call stamped 1,794,211,900 at a receiver whose clock reads 1,794,211,200: refused, no strike",
   "kind": "27-signed-call",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "method": "GetNextBlockIDs",
    "receiver": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "body": "10F6E5B1A6AAFBC4C3E8011832",
    "timestamp": "1794211900",
    "nonce": "0102030405060708",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "own_key": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "now": "1794211200",
    "handshake": "true"
   },
   "expected": {
    "answer": "UNAUTHENTICATED: GetNextBlockIDs: signed request timestamp outside the 600 s window; check NTP",
    "strikes": "0"
   }
  },
  {
   "id": "27-1a-unsigned",
   "chapter": "27",
   "section": "1a",
   "title": "A call with none of the six entries",
   "kind": "27-signed-call",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "method": "GetNextBlockIDs",
    "receiver": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "body": "10F6E5B1A6AAFBC4C3E8011832",
    "timestamp": "1794211200",
    "nonce": "0102030405060708",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "own_key": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "now": "1794211200",
    "handshake": "true",
    "omit": "all"
   },
   "expected": {
    "answer": "UNAUTHENTICATED: GetNextBlockIDs: P2P calls must be signed by a node key",
    "strikes": "1"
   }
  },
  {
   "id": "27-1a-no-signature",
   "chapter": "27",
   "section": "1a",
   "title": "A call whose signature entry is missing",
   "kind": "27-signed-call",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "method": "GetNextBlockIDs",
    "receiver": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "body": "10F6E5B1A6AAFBC4C3E8011832",
    "timestamp": "1794211200",
    "nonce": "0102030405060708",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "own_key": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "now": "1794211200",
    "handshake": "true",
    "omit": "signature"
   },
   "expected": {
    "answer": "UNAUTHENTICATED: GetNextBlockIDs: signed request metadata malformed",
    "strikes": "1"
   }
  },
  {
   "id": "27-1a-repeated-nonce",
   "chapter": "27",
   "section": "1a",
   "title": "A call carrying the nonce entry twice",
   "kind": "27-signed-call",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "method": "GetNextBlockIDs",
    "receiver": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "body": "10F6E5B1A6AAFBC4C3E8011832",
    "timestamp": "1794211200",
    "nonce": "0102030405060708",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "own_key": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "now": "1794211200",
    "handshake": "true",
    "repeat": "nonce"
   },
   "expected": {
    "answer": "UNAUTHENTICATED: GetNextBlockIDs: signed request metadata malformed",
    "strikes": "1"
   }
  },
  {
   "id": "27-1a-short-nonce",
   "chapter": "27",
   "section": "1a",
   "title": "A call with a 7-byte nonce",
   "kind": "27-signed-call",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "method": "GetNextBlockIDs",
    "receiver": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "body": "10F6E5B1A6AAFBC4C3E8011832",
    "timestamp": "1794211200",
    "nonce": "01020304050607",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "own_key": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "now": "1794211200",
    "handshake": "true"
   },
   "expected": {
    "answer": "UNAUTHENTICATED: GetNextBlockIDs: signed request metadata malformed",
    "strikes": "1"
   }
  },
  {
   "id": "27-1a-no-receiver",
   "chapter": "27",
   "section": "1a",
   "title": "A GetNextBlockIDs call that names no receiver",
   "kind": "27-signed-call",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "method": "GetNextBlockIDs",
    "receiver": "",
    "body": "10F6E5B1A6AAFBC4C3E8011832",
    "timestamp": "1794211200",
    "nonce": "0102030405060708",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "own_key": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "now": "1794211200",
    "handshake": "true"
   },
   "expected": {
    "answer": "UNAUTHENTICATED: GetNextBlockIDs: signed request was made to another node",
    "strikes": "1"
   }
  },
  {
   "id": "27-1a-timestamp-text",
   "chapter": "27",
   "section": "1a",
   "title": "A timestamp entry that is not a plain decimal integer",
   "kind": "27-signed-call",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "method": "GetNextBlockIDs",
    "receiver": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "body": "10F6E5B1A6AAFBC4C3E8011832",
    "timestamp": "1794211200",
    "nonce": "0102030405060708",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "own_key": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "now": "1794211200",
    "handshake": "true",
    "timestamp_text": "+1794211200"
   },
   "expected": {
    "answer": "UNAUTHENTICATED: GetNextBlockIDs: signed request metadata malformed",
    "strikes": "1"
   },
   "note": "A timestamp that does not parse is malformed (with a strike), not a wrong clock."
  },
  {
   "id": "27-1a-bad-signature",
   "chapter": "27",
   "section": "1a",
   "title": "A call whose signature does not verify",
   "kind": "27-signed-call",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "method": "GetNextBlockIDs",
    "receiver": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "body": "10F6E5B1A6AAFBC4C3E8011832",
    "timestamp": "1794211200",
    "nonce": "0102030405060708",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "own_key": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "now": "1794211200",
    "handshake": "true",
    "tamper": "true"
   },
   "expected": {
    "answer": "UNAUTHENTICATED: GetNextBlockIDs: signed request signature does not verify",
    "strikes": "1"
   }
  },
  {
   "id": "27-1a-other-body",
   "chapter": "27",
   "section": "1a",
   "title": "A signed header delivered with another body",
   "kind": "27-signed-call",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "method": "GetNextBlockIDs",
    "receiver": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "body": "10F6E5B1A6AAFBC4C3E8011832",
    "timestamp": "1794211200",
    "nonce": "0102030405060708",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "own_key": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "now": "1794211200",
    "handshake": "true",
    "sent_body": "10F6E5B1A6AAFBC4C3E8011833"
   },
   "expected": {
    "answer": "UNAUTHENTICATED: GetNextBlockIDs: signed request digest is not this request's",
    "strikes": "1"
   }
  },
  {
   "id": "27-1a-no-handshake",
   "chapter": "27",
   "section": "1a",
   "title": "A verified call from a key with no handshake with this node",
   "kind": "27-signed-call",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "method": "GetNextBlockIDs",
    "receiver": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "body": "10F6E5B1A6AAFBC4C3E8011832",
    "timestamp": "1794211200",
    "nonce": "0102030405060708",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "own_key": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "now": "1794211200",
    "handshake": "false"
   },
   "expected": {
    "answer": "FAILED_PRECONDITION: no handshake for this chain",
    "strikes": "0"
   }
  },
  {
   "id": "27-1a-handshake-by-address",
   "chapter": "27",
   "section": "1a",
   "title": "A Handshake that names no receiver passes the signed-call checks",
   "kind": "27-signed-call",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "method": "Handshake",
    "receiver": "",
    "body": "",
    "timestamp": "1794211200",
    "nonce": "0102030405060708",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "own_key": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "now": "1794211200",
    "handshake": "false"
   },
   "expected": {
    "answer": "verified",
    "strikes": "0"
   },
   "note": "The body is an empty HandshakeRequest; the handshake's own checks (§3) follow the signed-call checks."
  },
  {
   "id": "27-1a-strikes",
   "chapter": "27",
   "section": "1a",
   "title": "Five refused calls from one host within 60 s throttle its unbound blocks",
   "kind": "27-call-strikes",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "unsigned_calls": "5"
   },
   "expected": {
    "strikes": "5",
    "throttled": "true",
    "answer": "RESOURCE_EXHAUSTED: Invalid block rate limit exceeded for unbound sender"
   }
  },
  {
   "id": "27-1a-skew-no-strike",
   "chapter": "27",
   "section": "1a",
   "title": "Five calls with a wrong clock strike nothing",
   "kind": "27-call-strikes",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "skewed_calls": "5"
   },
   "expected": {
    "strikes": "0",
    "throttled": "false",
    "answer": "not throttled"
   }
  },
  {
   "id": "27-1a-four-strikes",
   "chapter": "27",
   "section": "1a",
   "title": "Four refused calls do not throttle",
   "kind": "27-call-strikes",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "unsigned_calls": "4"
   },
   "expected": {
    "strikes": "4",
    "throttled": "false",
    "answer": "not throttled"
   }
  },
  {
   "id": "27-2-send-transaction",
   "chapter": "27",
   "section": "2",
   "title": "A SendTransaction request (ChainType 0 is left out)",
   "kind": "27-proto-encode",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "SendTransactionRequest",
    "fields": "TransactionBytes=010203\nChainType=0\nSenderPublicKey=EB89F581920CAC9343663A33911D76CEF5C89390F25865651D902792B881AD65\nSenderSignature=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
   },
   "expected": {
    "bytes": "0A030102031A20EB89F581920CAC9343663A33911D76CEF5C89390F25865651D902792B881AD652240AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
    "length": "105"
   }
  },
  {
   "id": "27-2-negative-id",
   "chapter": "27",
   "section": "2",
   "title": "A negative block id is a ten-byte varint",
   "kind": "27-proto-encode",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "GetNextBlockIdsRequest",
    "fields": "ChainType=0\nBlockId=-1691361305265671434\nLimit=50"
   },
   "expected": {
    "bytes": "10F6E5B1A6AAFBC4C3E8011832",
    "length": "13"
   }
  },
  {
   "id": "27-2-decode-2000",
   "chapter": "27",
   "section": "2",
   "title": "A served Block with 2,000 transaction ids decodes",
   "kind": "27-block-decode",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "max_transactions_per_block": "2000",
    "height": "12000",
    "hash": "2222222222222222222222222222222222222222222222222222222222222222",
    "side": "serve",
    "transaction_ids": "2000"
   },
   "expected": {
    "height": "12000",
    "hash": "2222222222222222222222222222222222222222222222222222222222222222"
   }
  },
  {
   "id": "27-2-decode-2001-served",
   "chapter": "27",
   "section": "2",
   "title": "A served Block with 2,001 transaction ids decodes to an empty block",
   "kind": "27-block-decode",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "max_transactions_per_block": "2000",
    "height": "12000",
    "hash": "2222222222222222222222222222222222222222222222222222222222222222",
    "side": "serve",
    "transaction_ids": "2001"
   },
   "expected": {
    "height": "0",
    "hash": ""
   },
   "note": "The cap is max(500, max_transactions_per_block) = 2,000 on both chains; the empty block is refused by every consumer."
  },
  {
   "id": "27-2-decode-2001-answer",
   "chapter": "27",
   "section": "2",
   "title": "An answer carrying a Block with 2,001 transactions is refused",
   "kind": "27-block-decode",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "max_transactions_per_block": "2000",
    "height": "12000",
    "hash": "2222222222222222222222222222222222222222222222222222222222222222",
    "side": "answer",
    "transactions": "2001"
   },
   "expected": {
    "error": "GoProtoToBlock: oversized repeated field (anti-amplification)"
   }
  },
  {
   "id": "27-2-decode-refusals",
   "chapter": "27",
   "section": "2",
   "title": "An answer carrying a Block with 65,537 non-signing statements is refused",
   "kind": "27-block-decode",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "max_transactions_per_block": "2000",
    "height": "12000",
    "hash": "2222222222222222222222222222222222222222222222222222222222222222",
    "side": "answer",
    "refusals": "65537"
   },
   "expected": {
    "error": "GoProtoToBlock: oversized repeated field (anti-amplification)"
   }
  },
  {
   "id": "27-2-decode-receipts",
   "chapter": "27",
   "section": "2",
   "title": "A served Block with 65,537 published receipts decodes to an empty block",
   "kind": "27-block-decode",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "max_transactions_per_block": "2000",
    "height": "12000",
    "hash": "2222222222222222222222222222222222222222222222222222222222222222",
    "side": "serve",
    "receipts": "65537"
   },
   "expected": {
    "height": "0",
    "hash": ""
   }
  },
  {
   "id": "27-2-decode-answer-2000",
   "chapter": "27",
   "section": "2",
   "title": "An answer carrying a Block with 2,000 transaction ids decodes",
   "kind": "27-block-decode",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "max_transactions_per_block": "2000",
    "height": "12000",
    "hash": "2222222222222222222222222222222222222222222222222222222222222222",
    "side": "answer",
    "transaction_ids": "2000"
   },
   "expected": {
    "height": "12000",
    "hash": "2222222222222222222222222222222222222222222222222222222222222222"
   }
  },
  {
   "id": "27-2-schema-Empty",
   "chapter": "27",
   "section": "2",
   "title": "The fields of Empty",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "Empty"
   },
   "expected": {
    "fields": ""
   }
  },
  {
   "id": "27-2-schema-GetPeerInfoRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of GetPeerInfoRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "GetPeerInfoRequest"
   },
   "expected": {
    "fields": ""
   }
  },
  {
   "id": "27-2-schema-Block",
   "chapter": "27",
   "section": "2",
   "title": "The fields of Block",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "Block"
   },
   "expected": {
    "fields": "1 ID int64\n2 BlockHash bytes\n3 PreviousBlockHash bytes\n4 Height uint32\n5 Timestamp int64\n6 BlockSeed bytes\n7 BlockSignature bytes\n8 CumulativeDifficulty string\n9 BlocksmithPublicKey bytes\n10 TotalAmount int64\n11 TotalFee int64\n12 TotalCoinBase int64\n13 Version uint32\n14 PayloadLength uint32\n15 PayloadHash bytes\n16 MerkleRoot bytes\n17 MerkleTree bytes\n18 ReferenceBlockHeight uint32\n19 Transactions repeated Transaction\n20 PublishedReceipts repeated PublishedReceipt\n21 SpinePublicKeys repeated SpinePublicKey\n22 SpineBlockManifests repeated SpineBlockManifest\n23 TransactionIDs repeated int64\n24 BlockSeedProof bytes\n25 ReferenceCommitment bytes\n26 SpineRefusals repeated SpineRefusal"
   }
  },
  {
   "id": "27-2-schema-Transaction",
   "chapter": "27",
   "section": "2",
   "title": "The fields of Transaction",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "Transaction"
   },
   "expected": {
    "fields": "1 Version uint32\n2 ID int64\n3 BlockID int64\n4 Height uint32\n5 SenderAccountAddress bytes\n6 RecipientAccountAddress bytes\n7 TransactionType uint32\n8 Fee int64\n9 Timestamp int64\n10 TransactionHash bytes\n11 TransactionBodyLength uint32\n12 TransactionBodyBytes bytes\n13 TransactionIndex uint32\n14 MultisigChild bool\n31 Signature bytes\n32 TransactionBytes bytes\n33 Message bytes\n34 Survival int64\n35 Expiry uint32"
   }
  },
  {
   "id": "27-2-schema-Receipt",
   "chapter": "27",
   "section": "2",
   "title": "The fields of Receipt",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "Receipt"
   },
   "expected": {
    "fields": "1 SenderPublicKey bytes\n2 RecipientPublicKey bytes\n3 DatumType uint32\n4 DatumHash bytes\n5 ReferenceBlockHeight uint32\n6 ReferenceBlockHash bytes\n7 RMR bytes\n8 RecipientSignature bytes"
   }
  },
  {
   "id": "27-2-schema-PublishedReceipt",
   "chapter": "27",
   "section": "2",
   "title": "The fields of PublishedReceipt",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "PublishedReceipt"
   },
   "expected": {
    "fields": "1 Receipt Receipt\n2 IntermediateHashes bytes\n3 BlockHeight uint32\n4 PublishedIndex uint32\n5 RMRLinked bytes\n6 RMRLinkedIndex uint32"
   }
  },
  {
   "id": "27-2-schema-SpinePublicKey",
   "chapter": "27",
   "section": "2",
   "title": "The fields of SpinePublicKey",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "SpinePublicKey"
   },
   "expected": {
    "fields": "1 NodePublicKey bytes\n2 NodeID int64\n3 PublicKeyAction uint32\n4 MainBlockHeight uint32\n5 Height uint32"
   }
  },
  {
   "id": "27-2-schema-SpineBlockManifest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of SpineBlockManifest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "SpineBlockManifest"
   },
   "expected": {
    "fields": "1 ID int64\n2 FullFileHash bytes\n3 FileChunkHashes bytes\n4 ManifestReferenceHeight uint32\n5 ManifestSpineBlockHeight uint32\n6 ChainType uint32\n7 ExpirationTimestamp int64\n8 ChainGenesisHash bytes"
   }
  },
  {
   "id": "27-2-schema-Node",
   "chapter": "27",
   "section": "2",
   "title": "The fields of Node",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "Node"
   },
   "expected": {
    "fields": "1 ID int64\n2 PublicKey bytes\n3 RegistrationHeight int64\n4 Address string\n5 Port uint32\n6 SharedAddress uint32\n7 RegistrationStatus int64\n8 Height int64\n9 Version string\n10 CodeName string\n11 ArchivalApiUrl string"
   }
  },
  {
   "id": "27-2-schema-Peer",
   "chapter": "27",
   "section": "2",
   "title": "The fields of Peer",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "Peer"
   },
   "expected": {
    "fields": "1 Info Node\n2 LastInboundRequest int64\n3 BlacklistingCause int64\n4 BlacklistingTime int64\n5 ConnectionState string"
   }
  },
  {
   "id": "27-2-schema-SendBlockRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of SendBlockRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "SendBlockRequest"
   },
   "expected": {
    "fields": "1 Block Block\n2 ChainType int32\n3 SenderPublicKey bytes\n4 SenderChainHeight uint32\n5 SenderCumulativeDifficulty string\n6 SenderSignature bytes"
   }
  },
  {
   "id": "27-2-schema-SendBlockResponse",
   "chapter": "27",
   "section": "2",
   "title": "The fields of SendBlockResponse",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "SendBlockResponse"
   },
   "expected": {
    "fields": "1 Receipt Receipt"
   }
  },
  {
   "id": "27-2-schema-SendTransactionRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of SendTransactionRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "SendTransactionRequest"
   },
   "expected": {
    "fields": "1 TransactionBytes bytes\n2 ChainType int32\n3 SenderPublicKey bytes\n4 SenderSignature bytes"
   }
  },
  {
   "id": "27-2-schema-SendTransactionResponse",
   "chapter": "27",
   "section": "2",
   "title": "The fields of SendTransactionResponse",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "SendTransactionResponse"
   },
   "expected": {
    "fields": "1 Receipt Receipt"
   }
  },
  {
   "id": "27-2-schema-SendBlockTransactionsRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of SendBlockTransactionsRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "SendBlockTransactionsRequest"
   },
   "expected": {
    "fields": "1 ChainType int32\n2 TransactionsBytes repeated bytes\n3 SenderPublicKey bytes\n4 SenderSignature bytes"
   }
  },
  {
   "id": "27-2-schema-SendBlockTransactionsResponse",
   "chapter": "27",
   "section": "2",
   "title": "The fields of SendBlockTransactionsResponse",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "SendBlockTransactionsResponse"
   },
   "expected": {
    "fields": "1 Receipts repeated Receipt"
   }
  },
  {
   "id": "27-2-schema-RequestBlockTransactionsRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of RequestBlockTransactionsRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "RequestBlockTransactionsRequest"
   },
   "expected": {
    "fields": "1 TransactionIDs repeated int64\n2 ChainType int32\n3 BlockID int64\n4 RequesterPublicKey bytes"
   }
  },
  {
   "id": "27-2-schema-GetCumulativeDifficultyRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of GetCumulativeDifficultyRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "GetCumulativeDifficultyRequest"
   },
   "expected": {
    "fields": "1 ChainType int32"
   }
  },
  {
   "id": "27-2-schema-GetCumulativeDifficultyResponse",
   "chapter": "27",
   "section": "2",
   "title": "The fields of GetCumulativeDifficultyResponse",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "GetCumulativeDifficultyResponse"
   },
   "expected": {
    "fields": "1 CumulativeDifficulty string\n2 Height uint32"
   }
  },
  {
   "id": "27-2-schema-GetCommonMilestoneBlockIdsRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of GetCommonMilestoneBlockIdsRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "GetCommonMilestoneBlockIdsRequest"
   },
   "expected": {
    "fields": "1 ChainType int32\n2 LastBlockID int64\n3 LastMilestoneBlockID int64"
   }
  },
  {
   "id": "27-2-schema-GetCommonMilestoneBlockIdsResponse",
   "chapter": "27",
   "section": "2",
   "title": "The fields of GetCommonMilestoneBlockIdsResponse",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "GetCommonMilestoneBlockIdsResponse"
   },
   "expected": {
    "fields": "1 BlockIds repeated int64\n2 Last bool"
   }
  },
  {
   "id": "27-2-schema-GetNextBlockIdsRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of GetNextBlockIdsRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "GetNextBlockIdsRequest"
   },
   "expected": {
    "fields": "1 ChainType int32\n2 BlockId int64\n3 Limit uint32"
   }
  },
  {
   "id": "27-2-schema-BlockIdsResponse",
   "chapter": "27",
   "section": "2",
   "title": "The fields of BlockIdsResponse",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "BlockIdsResponse"
   },
   "expected": {
    "fields": "1 BlockIds repeated int64"
   }
  },
  {
   "id": "27-2-schema-GetNextBlocksRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of GetNextBlocksRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "GetNextBlocksRequest"
   },
   "expected": {
    "fields": "1 ChainType int32\n2 BlockId int64\n3 BlockIds repeated int64"
   }
  },
  {
   "id": "27-2-schema-BlocksData",
   "chapter": "27",
   "section": "2",
   "title": "The fields of BlocksData",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "BlocksData"
   },
   "expected": {
    "fields": "1 NextBlocks repeated Block"
   }
  },
  {
   "id": "27-2-schema-SpineBlockSignature",
   "chapter": "27",
   "section": "2",
   "title": "The fields of SpineBlockSignature",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "SpineBlockSignature"
   },
   "expected": {
    "fields": "1 node_public_key bytes\n2 signature bytes\n3 node_id int64\n4 timestamp int64"
   }
  },
  {
   "id": "27-2-schema-SpineRefusal",
   "chapter": "27",
   "section": "2",
   "title": "The fields of SpineRefusal",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "SpineRefusal"
   },
   "expected": {
    "fields": "1 spine_height uint32\n2 refused_block_hash bytes\n3 node_public_key bytes\n4 signature bytes"
   }
  },
  {
   "id": "27-2-schema-SpineBlockSignatureRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of SpineBlockSignatureRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "SpineBlockSignatureRequest"
   },
   "expected": {
    "fields": "1 block Block\n2 refusals repeated SpineRefusal"
   }
  },
  {
   "id": "27-2-schema-SpineBlockSignatureResponse",
   "chapter": "27",
   "section": "2",
   "title": "The fields of SpineBlockSignatureResponse",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "SpineBlockSignatureResponse"
   },
   "expected": {
    "fields": "1 accepted bool\n2 error string\n3 signature SpineBlockSignature\n4 promised_block_hash bytes\n5 promised_bar uint32\n6 promised_block Block"
   }
  },
  {
   "id": "27-2-schema-SpineRefusalRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of SpineRefusalRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "SpineRefusalRequest"
   },
   "expected": {
    "fields": "1 spine_height uint32\n2 refused_block_hash bytes\n3 proposal Block"
   }
  },
  {
   "id": "27-2-schema-SpineRefusalResponse",
   "chapter": "27",
   "section": "2",
   "title": "The fields of SpineRefusalResponse",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "SpineRefusalResponse"
   },
   "expected": {
    "fields": "1 given bool\n2 error string\n3 refusal SpineRefusal"
   }
  },
  {
   "id": "27-2-schema-GetPeerInfoResponse",
   "chapter": "27",
   "section": "2",
   "title": "The fields of GetPeerInfoResponse",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "GetPeerInfoResponse"
   },
   "expected": {
    "fields": "1 HostInfo Node"
   }
  },
  {
   "id": "27-2-schema-GetMorePeersResponse",
   "chapter": "27",
   "section": "2",
   "title": "The fields of GetMorePeersResponse",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "GetMorePeersResponse"
   },
   "expected": {
    "fields": "1 Peers repeated Node"
   }
  },
  {
   "id": "27-2-schema-SendPeersRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of SendPeersRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "SendPeersRequest"
   },
   "expected": {
    "fields": "1 Peers repeated Node"
   }
  },
  {
   "id": "27-2-schema-NodeAddressInfo",
   "chapter": "27",
   "section": "2",
   "title": "The fields of NodeAddressInfo",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "NodeAddressInfo"
   },
   "expected": {
    "fields": "1 NodeID int64\n2 Address string\n3 Port uint32\n4 BlockHash bytes\n5 BlockHeight uint32\n6 Signature bytes\n7 Status uint32"
   }
  },
  {
   "id": "27-2-schema-GetNodeAddressesInfoRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of GetNodeAddressesInfoRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "GetNodeAddressesInfoRequest"
   },
   "expected": {
    "fields": "1 NodeIDs repeated int64"
   }
  },
  {
   "id": "27-2-schema-GetNodeAddressesInfoResponse",
   "chapter": "27",
   "section": "2",
   "title": "The fields of GetNodeAddressesInfoResponse",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "GetNodeAddressesInfoResponse"
   },
   "expected": {
    "fields": "1 NodeAddressesInfo repeated NodeAddressInfo"
   }
  },
  {
   "id": "27-2-schema-SendNodeAddressInfoRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of SendNodeAddressInfoRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "SendNodeAddressInfoRequest"
   },
   "expected": {
    "fields": "1 NodeAddressInfoMessage repeated NodeAddressInfo"
   }
  },
  {
   "id": "27-2-schema-GetNodeProofOfOriginRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of GetNodeProofOfOriginRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "GetNodeProofOfOriginRequest"
   },
   "expected": {
    "fields": "1 ChallengeMessage bytes\n2 Timestamp int64"
   }
  },
  {
   "id": "27-2-schema-ProofOfOrigin",
   "chapter": "27",
   "section": "2",
   "title": "The fields of ProofOfOrigin",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "ProofOfOrigin"
   },
   "expected": {
    "fields": "1 MessageBytes bytes\n2 Timestamp int64\n3 Signature bytes"
   }
  },
  {
   "id": "27-2-schema-FileDownloadRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of FileDownloadRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "FileDownloadRequest"
   },
   "expected": {
    "fields": "1 SnapshotHash bytes\n2 FileChunkNames repeated string"
   }
  },
  {
   "id": "27-2-schema-FileDownloadResponse",
   "chapter": "27",
   "section": "2",
   "title": "The fields of FileDownloadResponse",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "FileDownloadResponse"
   },
   "expected": {
    "fields": "1 FileChunks repeated bytes\n2 Failed repeated string"
   }
  },
  {
   "id": "27-2-schema-HandshakeRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of HandshakeRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "HandshakeRequest"
   },
   "expected": {
    "fields": "1 node_public_key bytes\n2 version string\n3 chain_height uint32\n4 genesis_hash bytes\n5 listen_address string\n6 timestamp int64\n7 signature bytes\n8 archival_api_url string"
   }
  },
  {
   "id": "27-2-schema-HandshakeResponse",
   "chapter": "27",
   "section": "2",
   "title": "The fields of HandshakeResponse",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "HandshakeResponse"
   },
   "expected": {
    "fields": "1 accepted bool\n2 node_public_key bytes\n3 chain_height uint32\n4 message string\n5 genesis_hash bytes\n6 timestamp int64\n7 signature bytes\n8 archival_api_url string"
   }
  },
  {
   "id": "27-2-schema-HeartbeatRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of HeartbeatRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "HeartbeatRequest"
   },
   "expected": {
    "fields": "1 node_public_key bytes\n2 chain_height uint32\n3 timestamp int64\n4 signature bytes"
   }
  },
  {
   "id": "27-2-schema-HeartbeatResponse",
   "chapter": "27",
   "section": "2",
   "title": "The fields of HeartbeatResponse",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "HeartbeatResponse"
   },
   "expected": {
    "fields": "1 alive bool\n2 node_public_key bytes\n3 chain_height uint32"
   }
  },
  {
   "id": "27-2-schema-BlockCandidateMessage",
   "chapter": "27",
   "section": "2",
   "title": "The fields of BlockCandidateMessage",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "BlockCandidateMessage"
   },
   "expected": {
    "fields": "1 block Block\n2 creator_public_key bytes\n3 priority_position int32\n4 received_at int64"
   }
  },
  {
   "id": "27-2-schema-BroadcastBlockCandidateRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of BroadcastBlockCandidateRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "BroadcastBlockCandidateRequest"
   },
   "expected": {
    "fields": "1 candidate BlockCandidateMessage"
   }
  },
  {
   "id": "27-2-schema-BroadcastBlockCandidateResponse",
   "chapter": "27",
   "section": "2",
   "title": "The fields of BroadcastBlockCandidateResponse",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "BroadcastBlockCandidateResponse"
   },
   "expected": {
    "fields": "1 accepted bool\n2 message string"
   }
  },
  {
   "id": "27-2-schema-GetBlockHashesRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of GetBlockHashesRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "GetBlockHashesRequest"
   },
   "expected": {
    "fields": "1 start_height uint32\n2 end_height uint32\n3 chain_type int32"
   }
  },
  {
   "id": "27-2-schema-BlockHashInfo",
   "chapter": "27",
   "section": "2",
   "title": "The fields of BlockHashInfo",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "BlockHashInfo"
   },
   "expected": {
    "fields": "1 height uint32\n2 block_hash bytes\n3 block_id int64"
   }
  },
  {
   "id": "27-2-schema-GetBlockHashesResponse",
   "chapter": "27",
   "section": "2",
   "title": "The fields of GetBlockHashesResponse",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "GetBlockHashesResponse"
   },
   "expected": {
    "fields": "1 block_hashes repeated BlockHashInfo\n2 complete bool"
   }
  },
  {
   "id": "27-2-schema-GetStateSampleRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of GetStateSampleRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "GetStateSampleRequest"
   },
   "expected": {
    "fields": "1 height uint32\n2 account_addresses repeated bytes\n3 node_ids repeated int64"
   }
  },
  {
   "id": "27-2-schema-AccountSample",
   "chapter": "27",
   "section": "2",
   "title": "The fields of AccountSample",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "AccountSample"
   },
   "expected": {
    "fields": "1 account_address bytes\n2 balance int64\n3 found bool"
   }
  },
  {
   "id": "27-2-schema-NodeSample",
   "chapter": "27",
   "section": "2",
   "title": "The fields of NodeSample",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "NodeSample"
   },
   "expected": {
    "fields": "1 node_id int64\n2 node_public_key bytes\n3 registration_status uint32\n4 found bool"
   }
  },
  {
   "id": "27-2-schema-GetStateSampleResponse",
   "chapter": "27",
   "section": "2",
   "title": "The fields of GetStateSampleResponse",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "GetStateSampleResponse"
   },
   "expected": {
    "fields": "1 available bool\n2 error string\n3 accounts repeated AccountSample\n4 nodes repeated NodeSample"
   }
  },
  {
   "id": "27-2-schema-GetStoragePieceRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of GetStoragePieceRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "GetStoragePieceRequest"
   },
   "expected": {
    "fields": "1 piece_id bytes\n2 requester_public_key bytes\n3 timestamp int64\n4 signature bytes"
   }
  },
  {
   "id": "27-2-schema-GetStoragePieceResponse",
   "chapter": "27",
   "section": "2",
   "title": "The fields of GetStoragePieceResponse",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "GetStoragePieceResponse"
   },
   "expected": {
    "fields": "1 found bool\n2 data bytes"
   }
  },
  {
   "id": "27-2-schema-PutStoragePieceRequest",
   "chapter": "27",
   "section": "2",
   "title": "The fields of PutStoragePieceRequest",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "PutStoragePieceRequest"
   },
   "expected": {
    "fields": "1 piece_id bytes\n2 data bytes"
   }
  },
  {
   "id": "27-2-schema-PutStoragePieceResponse",
   "chapter": "27",
   "section": "2",
   "title": "The fields of PutStoragePieceResponse",
   "kind": "27-proto-schema",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "PutStoragePieceResponse"
   },
   "expected": {
    "fields": "1 accepted bool"
   }
  },
  {
   "id": "27-3-request",
   "chapter": "27",
   "section": "3",
   "title": "The handshake request: its signed bytes and the message",
   "kind": "27-handshake-request",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "public_key": "EB89F581920CAC9343663A33911D76CEF5C89390F25865651D902792B881AD65",
    "version": "0.6.1",
    "height": "12465",
    "genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "listen": "203.0.113.7:8001",
    "timestamp": "1794211200",
    "signature": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96"
   },
   "expected": {
    "preimage": "EB89F581920CAC9343663A33911D76CEF5C89390F25865651D902792B881AD65302E362E31B1300000E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B33028713230332E302E3131332E373A38303031807DF16A00000000",
    "request": "0A20EB89F581920CAC9343663A33911D76CEF5C89390F25865651D902792B881AD651205302E362E3118B1612220E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B33028712A103230332E302E3131332E373A383030313080FBC5D7063A40AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
   },
   "note": "The signature field carries stand-in bytes; the signature output is made with the test seed over the same bytes."
  },
  {
   "id": "27-3-response",
   "chapter": "27",
   "section": "3",
   "title": "The handshake response's signed bytes",
   "kind": "27-handshake-response",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "public_key": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "height": "12466",
    "genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "timestamp": "1794211201",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96"
   },
   "expected": {
    "preimage": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3B2300000E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871817DF16A00000000"
   }
  },
  {
   "id": "27-3-accepted",
   "chapter": "27",
   "section": "3",
   "title": "A signed, fresh handshake on the same chain is accepted",
   "kind": "27-handshake-verdict",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "version": "0.6.1",
    "height": "12465",
    "genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "listen": "203.0.113.7:8001",
    "timestamp": "1794211200",
    "now": "1794211200",
    "own_genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "tamper": "false"
   },
   "expected": {
    "message": "Handshake accepted"
   },
   "note": "Signed with the test seed's key, so that the signature verifies."
  },
  {
   "id": "27-3-clock",
   "chapter": "27",
   "section": "3",
   "title": "A handshake received 700 s after it was stamped",
   "kind": "27-handshake-verdict",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "version": "0.6.1",
    "height": "12465",
    "genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "listen": "203.0.113.7:8001",
    "timestamp": "1794211200",
    "now": "1794211900",
    "own_genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "tamper": "false"
   },
   "expected": {
    "error": "handshake timestamp out of window: your clock is -700 s from ours (limit 600 s); check NTP"
   }
  },
  {
   "id": "27-3-clock-ahead",
   "chapter": "27",
   "section": "3",
   "title": "A handshake stamped 601 s ahead of the receiver",
   "kind": "27-handshake-verdict",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "version": "0.6.1",
    "height": "12465",
    "genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "listen": "203.0.113.7:8001",
    "timestamp": "1794211200",
    "now": "1794210599",
    "own_genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "tamper": "false"
   },
   "expected": {
    "error": "handshake timestamp out of window: your clock is +601 s from ours (limit 600 s); check NTP"
   }
  },
  {
   "id": "27-3-edge",
   "chapter": "27",
   "section": "3",
   "title": "A handshake 600 s old is still inside the window",
   "kind": "27-handshake-verdict",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "version": "0.6.1",
    "height": "12465",
    "genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "listen": "203.0.113.7:8001",
    "timestamp": "1794211200",
    "now": "1794211800",
    "own_genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "tamper": "false"
   },
   "expected": {
    "message": "Handshake accepted"
   }
  },
  {
   "id": "27-3-genesis",
   "chapter": "27",
   "section": "3",
   "title": "A handshake from another chain (first genesis byte changed)",
   "kind": "27-handshake-verdict",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "version": "0.6.1",
    "height": "12465",
    "genesis": "E103E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "listen": "203.0.113.7:8001",
    "timestamp": "1794211200",
    "now": "1794211200",
    "own_genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "tamper": "false"
   },
   "expected": {
    "error": "Genesis hash mismatch - different chain configuration"
   }
  },
  {
   "id": "27-3-no-genesis",
   "chapter": "27",
   "section": "3",
   "title": "A handshake without a genesis hash",
   "kind": "27-handshake-verdict",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "version": "0.6.1",
    "height": "12465",
    "genesis": "",
    "listen": "203.0.113.7:8001",
    "timestamp": "1794211200",
    "now": "1794211200",
    "own_genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "tamper": "false"
   },
   "expected": {
    "error": "Genesis hash required"
   }
  },
  {
   "id": "27-3-bad-signature",
   "chapter": "27",
   "section": "3",
   "title": "A handshake whose signature does not verify",
   "kind": "27-handshake-verdict",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "version": "0.6.1",
    "height": "12465",
    "genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "listen": "203.0.113.7:8001",
    "timestamp": "1794211200",
    "now": "1794211200",
    "own_genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "tamper": "true"
   },
   "expected": {
    "error": "Invalid signature - authentication failed"
   }
  },
  {
   "id": "27-3-inbound-only",
   "chapter": "27",
   "section": "3",
   "title": "A handshake advertising 0.0.0.0:8001 from 203.0.113.7: an inbound-only entry",
   "kind": "28-peer-event",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "table": "",
    "events": "inbound A 203.0.113.7 0.0.0.0:8001",
    "hosts": "203.0.113.7"
   },
   "expected": {
    "results": "accepted",
    "entry": "no address handshake=true chain=false from=203.0.113.7",
    "counts": "1"
   }
  },
  {
   "id": "27-3-gossiped-nat",
   "chapter": "27",
   "section": "3",
   "title": "The same handshake for A held from gossip at 198.51.100.9:8001",
   "kind": "28-peer-event",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "table": "A 198.51.100.9:8001",
    "events": "inbound A 203.0.113.7 0.0.0.0:8001",
    "hosts": "198.51.100.9\n203.0.113.7"
   },
   "expected": {
    "results": "accepted",
    "entry": "198.51.100.9:8001 handshake=true chain=false from=203.0.113.7",
    "counts": "1\n1"
   },
   "note": "A may call this node; its gossiped address stays unverified and the entry counts against both hosts."
  },
  {
   "id": "27-3-ninth-key",
   "chapter": "27",
   "section": "3",
   "title": "A ninth unregistered key from one host",
   "kind": "28-peer-event",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "table": "U1 203.0.113.7:8001\nU2 203.0.113.7:8002\nU3 203.0.113.7:8003\nU4 203.0.113.7:8004\nU5 203.0.113.7:8005\nU6 203.0.113.7:8006\nU7 203.0.113.7:8007\nU8 203.0.113.7:8008",
    "events": "inbound N9 203.0.113.7 203.0.113.7:8001"
   },
   "expected": {
    "results": "Too many unregistered peers from host 203.0.113.7",
    "entry": "none"
   }
  },
  {
   "id": "27-3-gossiped-capped",
   "chapter": "27",
   "section": "3",
   "title": "The gossiped A from behind NAT when 203.0.113.7 holds eight others",
   "kind": "28-peer-event",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "table": "A 198.51.100.9:8001\nU1 203.0.113.7:8001\nU2 203.0.113.7:8002\nU3 203.0.113.7:8003\nU4 203.0.113.7:8004\nU5 203.0.113.7:8005\nU6 203.0.113.7:8006\nU7 203.0.113.7:8007\nU8 203.0.113.7:8008",
    "events": "inbound A 203.0.113.7 0.0.0.0:8001"
   },
   "expected": {
    "results": "Too many unregistered peers from host 203.0.113.7",
    "entry": "198.51.100.9:8001 handshake=false chain=false from=-"
   },
   "note": "Nothing changes: A is not handshake-verified, so its calls stay refused \"no handshake for this chain\"."
  },
  {
   "id": "27-3-gossiped-capped-routable",
   "chapter": "27",
   "section": "3",
   "title": "The gossiped A advertising 203.0.113.7:8001 when that host holds eight others",
   "kind": "28-peer-event",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "table": "A 198.51.100.9:8001\nU1 203.0.113.7:8001\nU2 203.0.113.7:8002\nU3 203.0.113.7:8003\nU4 203.0.113.7:8004\nU5 203.0.113.7:8005\nU6 203.0.113.7:8006\nU7 203.0.113.7:8007\nU8 203.0.113.7:8008",
    "events": "inbound A 203.0.113.7 203.0.113.7:8001"
   },
   "expected": {
    "results": "Too many unregistered peers from host 203.0.113.7",
    "entry": "198.51.100.9:8001 handshake=false chain=false from=-"
   }
  },
  {
   "id": "27-3-dial-capped",
   "chapter": "27",
   "section": "3",
   "title": "A dial of 203.0.113.7:8001 answered by K stored at 198.51.100.9:8001, the host holding eight",
   "kind": "28-peer-event",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "table": "K 198.51.100.9:8001\nU1 203.0.113.7:8001\nU2 203.0.113.7:8002\nU3 203.0.113.7:8003\nU4 203.0.113.7:8004\nU5 203.0.113.7:8005\nU6 203.0.113.7:8006\nU7 203.0.113.7:8007\nU8 203.0.113.7:8008",
    "events": "dial K 203.0.113.7:8001"
   },
   "expected": {
    "results": "Not moved to 203.0.113.7:8001: already 8 unregistered peers from host 203.0.113.7; the entry keeps 198.51.100.9:8001 and this dial verified nothing",
    "entry": "198.51.100.9:8001 handshake=false chain=false from=-",
    "failure": "false"
   }
  },
  {
   "id": "27-3-dial-other-key",
   "chapter": "27",
   "section": "3",
   "title": "A dial of a known key answered by another key",
   "kind": "28-peer-event",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "table": "K 203.0.113.7:8001",
    "events": "dial L 203.0.113.7:8001 expect K",
    "watch": "K"
   },
   "expected": {
    "results": "dial answered by another key",
    "entry": "203.0.113.7:8001 handshake=false chain=false from=-",
    "failure": "true"
   }
  },
  {
   "id": "27-3-strikes",
   "chapter": "27",
   "section": "3",
   "title": "Five failed introductions within 300 s ban the address for 900 s",
   "kind": "27-intro-strikes",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "times": "0\n10\n20\n30\n40\n500\n939\n940"
   },
   "expected": {
    "verdicts": "strike 1\nstrike 2\nstrike 3\nstrike 4\nban until 940\nbanned\nbanned\nstrike 1"
   }
  },
  {
   "id": "27-3-strikes-window",
   "chapter": "27",
   "section": "3",
   "title": "Failures more than 300 s apart start a new window",
   "kind": "27-intro-strikes",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "times": "0\n100\n200\n300\n310"
   },
   "expected": {
    "verdicts": "strike 1\nstrike 2\nstrike 3\nstrike 1\nstrike 2"
   }
  },
  {
   "id": "27-4-preimage",
   "chapter": "27",
   "section": "4",
   "title": "The heartbeat's signed bytes",
   "kind": "27-heartbeat",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "public_key": "EB89F581920CAC9343663A33911D76CEF5C89390F25865651D902792B881AD65",
    "height": "12465",
    "timestamp": "1794211200",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96"
   },
   "expected": {
    "preimage": "EB89F581920CAC9343663A33911D76CEF5C89390F25865651D902792B881AD65B1300000807DF16A00000000"
   }
  },
  {
   "id": "27-4-zero-signature",
   "chapter": "27",
   "section": "4",
   "title": "A heartbeat with 64 zero bytes as signature",
   "kind": "27-heartbeat",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "public_key": "EB89F581920CAC9343663A33911D76CEF5C89390F25865651D902792B881AD65",
    "height": "12465",
    "timestamp": "1794211200",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "signature": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
   },
   "expected": {
    "error": "UNAUTHENTICATED: Invalid signature"
   }
  },
  {
   "id": "27-4-in-window",
   "chapter": "27",
   "section": "4",
   "title": "A signed heartbeat received in its window",
   "kind": "27-heartbeat",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "public_key": "5e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152",
    "height": "12465",
    "timestamp": "1794211200",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "now": "1794211200"
   },
   "expected": {
    "alive": "true"
   },
   "note": "Signed by the test seed's key, so that the signature verifies."
  },
  {
   "id": "27-4-out-of-window",
   "chapter": "27",
   "section": "4",
   "title": "A signed heartbeat received at 1,794,211,900",
   "kind": "27-heartbeat",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "public_key": "5e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152",
    "height": "12465",
    "timestamp": "1794211200",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "now": "1794211900"
   },
   "expected": {
    "error": "FAILED_PRECONDITION: heartbeat timestamp out of window"
   },
   "note": "Signed by the test seed's key, so that the signature verifies."
  },
  {
   "id": "27-5-public-literal",
   "chapter": "27",
   "section": "5",
   "title": "The public-literal rule",
   "kind": "27-public-literal",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "addresses": "203.0.113.7:8001\n10.0.0.5:8001\n[fe80::1]:8001\nnode.example:8001"
   },
   "expected": {
    "public": "true\nfalse\nfalse\nfalse"
   }
  },
  {
   "id": "27-5-public-literal-ranges",
   "chapter": "27",
   "section": "5",
   "title": "Private and reserved ranges are not public",
   "kind": "27-public-literal",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "addresses": "172.16.0.1:8001\n172.32.0.1:8001\n100.64.0.1:8001\n169.254.1.1:8001\n224.0.0.1:8001\n[2001:db8::1]:8001\n[::1]:8001\n8.8.8.8"
   },
   "expected": {
    "public": "false\ntrue\nfalse\nfalse\nfalse\ntrue\nfalse\ntrue"
   }
  },
  {
   "id": "27-5-host-group",
   "chapter": "27",
   "section": "5",
   "title": "The host a caller is keyed on",
   "kind": "27-host-group",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "hosts": "2001:db8:1:2:3:4:5:6\n::ffff:203.0.113.7\n203.0.113.7\nipv6:%5B2001:db8:1:2::9%5D:40000\nipv4:203.0.113.7:51234"
   },
   "expected": {
    "groups": "2001:db8:1:2::/64\n203.0.113.7\n203.0.113.7\n2001:db8:1:2::/64\n203.0.113.7"
   }
  },
  {
   "id": "27-6-preimage",
   "chapter": "27",
   "section": "6",
   "title": "The signed bytes of a node address announcement",
   "kind": "27-node-address",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "node_id": "1417521806099974635",
    "address": "203.0.113.7:8001",
    "port": "8001",
    "height": "12000",
    "hash": "2222222222222222222222222222222222222222222222222222222222222222",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96"
   },
   "expected": {
    "preimage": "EB89F581920CAC13100000003230332E302E3131332E373A38303031411F0000E02E00002222222222222222222222222222222222222222222222222222222222222222"
   }
  },
  {
   "id": "27-7-message",
   "chapter": "27",
   "section": "7",
   "title": "The proof-of-origin message bytes",
   "kind": "27-proof-of-origin",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "challenge": "zoobc-spec-27",
    "timestamp": "1794211200",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96"
   },
   "expected": {
    "message_bytes": "5A42432D504F4F317A6F6F62632D737065632D3237807DF16A00000000"
   }
  },
  {
   "id": "27-8-block",
   "chapter": "27",
   "section": "8",
   "title": "The receipt request for a pushed block",
   "kind": "receipt-request",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "datum_type": "1",
    "datum_hash": "F672CCA4DA1387E8C3416BE94009B4CDEB1E03872EB930F9AB81DBFC669C538A",
    "recipient": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96"
   },
   "expected": {
    "preimage": "5A42432D52435054E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B330287101F672CCA4DA1387E8C3416BE94009B4CDEB1E03872EB930F9AB81DBFC669C538AF5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "digest": "32292419342661667964E21D80FA61711C6FEB6331BF5708D58DC3032C551E84"
   }
  },
  {
   "id": "27-8-tx-datum",
   "chapter": "27",
   "section": "8",
   "title": "The datum of a pushed transaction",
   "kind": "datum-hash",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "pieces": "010203"
   },
   "expected": {
    "datum_hash": "FD1780A6FC9EE0DAB26CEB4B3941AB03E66CCD970D1DB91612C66DF4515B0A0A"
   }
  },
  {
   "id": "27-8-tx",
   "chapter": "27",
   "section": "8",
   "title": "The receipt request for a pushed transaction",
   "kind": "receipt-request",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "datum_type": "2",
    "datum_hash": "FD1780A6FC9EE0DAB26CEB4B3941AB03E66CCD970D1DB91612C66DF4515B0A0A",
    "recipient": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96"
   },
   "expected": {
    "digest": "1171BC4AA8A3617076C4C489E366A7BBA922217EE7658258C9A08ACB4ACFB83F"
   }
  },
  {
   "id": "27-8-batch-datum",
   "chapter": "27",
   "section": "8",
   "title": "The datum of a pushed batch",
   "kind": "datum-hash",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "pieces": "010203\n0405"
   },
   "expected": {
    "datum_hash": "B8AB469AEEAE0CC5A78AECAB95FE9A4A3020DAD8CD968D916E2E0F231F1C3FEB"
   }
  },
  {
   "id": "27-8-batch",
   "chapter": "27",
   "section": "8",
   "title": "The receipt request for a pushed batch",
   "kind": "receipt-request",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "datum_type": "3",
    "datum_hash": "B8AB469AEEAE0CC5A78AECAB95FE9A4A3020DAD8CD968D916E2E0F231F1C3FEB",
    "recipient": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96"
   },
   "expected": {
    "digest": "95ECA129180816C882AD3D88D81474C4E477152AC73934608FA2D26702D722DA"
   }
  },
  {
   "id": "27-8-other-recipient",
   "chapter": "27",
   "section": "8",
   "title": "A request signed for B does not verify at another node",
   "kind": "27-receipt-request-check",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "datum_type": "1",
    "datum_hash": "F672CCA4DA1387E8C3416BE94009B4CDEB1E03872EB930F9AB81DBFC669C538A",
    "signed_for": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "checker": "EB89F581920CAC9343663A33911D76CEF5C89390F25865651D902792B881AD65",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96"
   },
   "expected": {
    "valid": "false"
   }
  },
  {
   "id": "27-8-own-recipient",
   "chapter": "27",
   "section": "8",
   "title": "The same request verifies at B",
   "kind": "27-receipt-request-check",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "datum_type": "1",
    "datum_hash": "F672CCA4DA1387E8C3416BE94009B4CDEB1E03872EB930F9AB81DBFC669C538A",
    "signed_for": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "checker": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96"
   },
   "expected": {
    "valid": "true"
   }
  },
  {
   "id": "27-9-too-many-ids",
   "chapter": "27",
   "section": "9",
   "title": "A SendBlock carrying 2,001 transaction ids",
   "kind": "27-rpc-refusal",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "rpc": "SendBlock",
    "fields": "Block=ba01d10f010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",
    "max_transactions_per_block": "2000"
   },
   "expected": {
    "error": "INVALID_ARGUMENT: Too many transaction IDs in block"
   },
   "note": "The maximum is max(500, max_transactions_per_block) = 2,000 on both chains."
  },
  {
   "id": "27-9-too-many-transactions",
   "chapter": "27",
   "section": "9",
   "title": "A SendBlock carrying 2,001 transactions",
   "kind": "27-rpc-refusal",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "rpc": "SendBlock",
    "fields": "Block=9a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a010208019a01020801",
    "max_transactions_per_block": "2000"
   },
   "expected": {
    "error": "INVALID_ARGUMENT: Too many transactions in block"
   }
  },
  {
   "id": "27-9-throttle",
   "chapter": "27",
   "section": "9",
   "title": "Five invalid blocks charged to the sender's host in the last 60 s: its next unbound block is throttled",
   "kind": "27-call-strikes",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "invalid_blocks": "5"
   },
   "expected": {
    "strikes": "5",
    "throttled": "true",
    "answer": "RESOURCE_EXHAUSTED: Invalid block rate limit exceeded for unbound sender"
   }
  },
  {
   "id": "27-9-duplicate",
   "chapter": "27",
   "section": "9",
   "title": "A block received twice in byte-identical messages",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "second_copy": "answered OK with nothing done"
   }
  },
  {
   "id": "27-9-no-parent",
   "chapter": "27",
   "section": "9",
   "title": "An ids-only block whose parent this node does not hold, from a sender that is not bound and registered",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "result": "dropped (OK) before any pool lookup"
   }
  },
  {
   "id": "27-10-batch-501",
   "chapter": "27",
   "section": "10",
   "title": "A SendBlockTransactions with 501 entries",
   "kind": "27-rpc-refusal",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "rpc": "SendBlockTransactions",
    "fields": "TransactionsBytes=01*501"
   },
   "expected": {
    "error": "INVALID_ARGUMENT: Too many transactions in request"
   }
  },
  {
   "id": "27-10-request-501",
   "chapter": "27",
   "section": "10",
   "title": "A RequestBlockTransactions naming 501 ids",
   "kind": "27-rpc-refusal",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "rpc": "RequestBlockTransactions",
    "fields": "TransactionIDs=7*501"
   },
   "expected": {
    "error": "INVALID_ARGUMENT: Too many transaction IDs requested"
   }
  },
  {
   "id": "27-10-stray-rate",
   "chapter": "27",
   "section": "10",
   "title": "A sender neither registered nor queued: the 11th transaction in a minute is refused",
   "kind": "28-tx-rate",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "tier": "stray",
    "count": "21"
   },
   "expected": {
    "first_refused": "11"
   }
  },
  {
   "id": "27-10-queued-rate",
   "chapter": "27",
   "section": "10",
   "title": "A queued sender: the 21st transaction in a minute is refused",
   "kind": "28-tx-rate",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "tier": "queued",
    "count": "21"
   },
   "expected": {
    "first_refused": "21"
   }
  },
  {
   "id": "27-10-pending-50",
   "chapter": "27",
   "section": "10",
   "title": "A SendTransaction whose sender already has 50 pending transactions",
   "kind": "27-staging-cap",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "pending": "50",
    "cap": "50"
   },
   "expected": {
    "answer": "RESOURCE_EXHAUSTED: Too many pending transactions from this sender (max 50)",
    "recorded": "false"
   },
   "note": "Backpressure: nothing is recorded against the relay."
  },
  {
   "id": "27-10-pending-49",
   "chapter": "27",
   "section": "10",
   "title": "A sender with 49 pending transactions is staged",
   "kind": "27-staging-cap",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "pending": "49",
    "cap": "50"
   },
   "expected": {
    "answer": "staged",
    "recorded": "false"
   }
  },
  {
   "id": "27-10-duty-pending",
   "chapter": "27",
   "section": "10",
   "title": "A duty of this node for this window already pending",
   "kind": "27-staging-cap",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "pending": "0",
    "cap": "50",
    "duty_pending": "true"
   },
   "expected": {
    "answer": "RESOURCE_EXHAUSTED: A duty transaction for this window is already pending from this node",
    "recorded": "false"
   }
  },
  {
   "id": "27-10-reply-signature",
   "chapter": "27",
   "section": "10",
   "title": "The reply to RequestBlockTransactions is signed over the batch digest",
   "kind": "receipt-request",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "datum_type": "3",
    "datum_hash": "B8AB469AEEAE0CC5A78AECAB95FE9A4A3020DAD8CD968D916E2E0F231F1C3FEB",
    "recipient": "F5692B269E6323FF07078505671DCAA4CF40A0753423D02C54EC9B110977CDD3",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96"
   },
   "expected": {
    "digest": "95ECA129180816C882AD3D88D81474C4E477152AC73934608FA2D26702D722DA"
   }
  },
  {
   "id": "27-11-chain-type",
   "chapter": "27",
   "section": "11",
   "title": "GetCumulativeDifficulty with ChainType 7",
   "kind": "27-rpc-refusal",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "rpc": "GetCumulativeDifficulty",
    "fields": "ChainType=7"
   },
   "expected": {
    "error": "INVALID_ARGUMENT: Invalid chain type"
   }
  },
  {
   "id": "27-11-no-spine",
   "chapter": "27",
   "section": "11",
   "title": "GetCumulativeDifficulty for the spine on a node without one",
   "kind": "27-rpc-refusal",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "rpc": "GetCumulativeDifficulty",
    "fields": "ChainType=1"
   },
   "expected": {
    "error": "FAILED_PRECONDITION: Spine blockchain not configured"
   }
  },
  {
   "id": "27-11-milestone-empty",
   "chapter": "27",
   "section": "11",
   "title": "GetCommonMilestoneBlockIDs with neither id",
   "kind": "27-rpc-refusal",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "rpc": "GetCommonMilestoneBlockIDs",
    "fields": "ChainType=0"
   },
   "expected": {
    "error": "INVALID_ARGUMENT: either LastBlockID or LastMilestoneBlockID has to be supplied"
   }
  },
  {
   "id": "27-11-next-blocks-51",
   "chapter": "27",
   "section": "11",
   "title": "GetNextBlocks naming 51 ids",
   "kind": "27-rpc-refusal",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "rpc": "GetNextBlocks",
    "fields": "BlockIds=5*51"
   },
   "expected": {
    "error": "INVALID_ARGUMENT: Too many block IDs requested"
   }
  },
  {
   "id": "27-11-hashes-reversed",
   "chapter": "27",
   "section": "11",
   "title": "GetBlockHashes with end below start",
   "kind": "27-block-hashes",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "start": "10",
    "end": "5",
    "tip": "12465"
   },
   "expected": {
    "rows": "0",
    "complete": "false"
   }
  },
  {
   "id": "27-11-hashes-clamped",
   "chapter": "27",
   "section": "11",
   "title": "GetBlockHashes clamped to the tip",
   "kind": "27-block-hashes",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "start": "12000",
    "end": "4000000000",
    "tip": "12465"
   },
   "expected": {
    "rows": "466",
    "first": "12000",
    "last": "12465",
    "complete": "true"
   }
  },
  {
   "id": "27-11-hashes-cap",
   "chapter": "27",
   "section": "11",
   "title": "GetBlockHashes clamped to 1,000 rows",
   "kind": "27-block-hashes",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "start": "100",
    "end": "5000",
    "tip": "12465"
   },
   "expected": {
    "rows": "1000",
    "first": "100",
    "last": "1099",
    "complete": "true"
   }
  },
  {
   "id": "27-11-budget-200",
   "chapter": "27",
   "section": "11",
   "title": "200 GetNextBlockIDs calls from one registered key within 10 s are answered",
   "kind": "27-read-budget",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "callers": "K 200 registered"
   },
   "expected": {
    "allowed": "200"
   }
  },
  {
   "id": "27-11-budget-201",
   "chapter": "27",
   "section": "11",
   "title": "The 201st call from one registered key within 10 s",
   "kind": "27-read-budget",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "callers": "K 201 registered"
   },
   "expected": {
    "error": "RESOURCE_EXHAUSTED: block read budget: 200 calls per 10 s per caller"
   }
  },
  {
   "id": "27-11-budget-host-1600",
   "chapter": "27",
   "section": "11",
   "title": "1,600 calls from one host spread over eight keys are answered",
   "kind": "27-read-budget",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "callers": "K1 200\nK2 200\nK3 200\nK4 200\nK5 200\nK6 200\nK7 200\nK8 200"
   },
   "expected": {
    "allowed": "1600"
   }
  },
  {
   "id": "27-11-budget-host-1601",
   "chapter": "27",
   "section": "11",
   "title": "The 1,601st call from one host, spread over nine keys",
   "kind": "27-read-budget",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "callers": "K1 200\nK2 200\nK3 200\nK4 200\nK5 200\nK6 200\nK7 200\nK8 200\nK9 1"
   },
   "expected": {
    "error": "RESOURCE_EXHAUSTED: block read budget: 200 calls per 10 s per caller"
   }
  },
  {
   "id": "27-12-refusal-message",
   "chapter": "27",
   "section": "12",
   "title": "The SpineRefusal message (a non-signing statement) on the worked candidate by key A",
   "kind": "27-proto-encode",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "message": "SpineRefusal",
    "fields": "spine_height=3\nrefused_block_hash=DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6\nnode_public_key=EB89F581920CAC9343663A33911D76CEF5C89390F25865651D902792B881AD65\nsignature=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
   },
   "expected": {
    "bytes": "08031220DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB61A20EB89F581920CAC9343663A33911D76CEF5C89390F25865651D902792B881AD652240AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
    "length": "136"
   },
   "note": "The signature field carries stand-in bytes (AA x 64) in place of the statement's signature."
  },
  {
   "id": "27-12-no-candidate",
   "chapter": "27",
   "section": "12",
   "title": "A SpineRefusalRequest without a spine block candidate",
   "kind": "27-rpc-refusal",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "rpc": "RequestSpineRefusal",
    "fields": "spine_height=3"
   },
   "expected": {
    "error": "no proposal to refuse (the request must carry it)"
   }
  },
  {
   "id": "27-13-empty-hash",
   "chapter": "27",
   "section": "13",
   "title": "A chunk request with an empty snapshot hash",
   "kind": "27-rpc-refusal",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "rpc": "RequestFileDownload",
    "fields": "FileChunkNames=FPYeC1MqlWaAE1nDI4zPwltmssZIFTk0mP_B9g_HMeY="
   },
   "expected": {
    "error": "INVALID_ARGUMENT: empty snapshot hash"
   }
  },
  {
   "id": "27-13-no-names",
   "chapter": "27",
   "section": "13",
   "title": "A chunk request naming no file",
   "kind": "27-rpc-refusal",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "rpc": "RequestFileDownload",
    "fields": "SnapshotHash=B295B329983547C2ADD8C42F779B9987C2B52839B73D7957DAC5798A1678DC30"
   },
   "expected": {
    "error": "INVALID_ARGUMENT: request does not contain any file name"
   }
  },
  {
   "id": "27-13-33-names",
   "chapter": "27",
   "section": "13",
   "title": "A chunk request naming 33 files",
   "kind": "27-rpc-refusal",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "rpc": "RequestFileDownload",
    "fields": "SnapshotHash=B295B329983547C2ADD8C42F779B9987C2B52839B73D7957DAC5798A1678DC30\nFileChunkNames=x*33"
   },
   "expected": {
    "error": "INVALID_ARGUMENT: Too many file chunks requested"
   }
  },
  {
   "id": "27-13-served",
   "chapter": "27",
   "section": "13",
   "title": "Chunks served and failed",
   "kind": "reference",
   "validity": "valid",
   "source": "computed",
   "inputs": {},
   "expected": {
    "request": "hash B295B329...DC30, names [FPYeC1Mq...MeY=, nope]",
    "FileChunks": "[the 102,400 bytes of chunk 0]",
    "Failed": "[\"nope\"]"
   }
  },
  {
   "id": "27-14-piece-id",
   "chapter": "27",
   "section": "14",
   "title": "The piece id of the example",
   "kind": "hash",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "algorithm": "sha3-256",
    "data": "7069656365"
   },
   "expected": {
    "digest": "88C2C5C10BB1B738D33C84800F03628AAF99E8A6CEFDB13BA4863753D3AE845D"
   }
  },
  {
   "id": "27-14-piece-request",
   "chapter": "27",
   "section": "14",
   "title": "The signed bytes of a piece request",
   "kind": "27-piece-request",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "piece_id": "88C2C5C10BB1B738D33C84800F03628AAF99E8A6CEFDB13BA4863753D3AE845D",
    "timestamp": "1794211200",
    "requester": "EB89F581920CAC9343663A33911D76CEF5C89390F25865651D902792B881AD65",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96"
   },
   "expected": {
    "preimage": "5A42432D50494543452D524551E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B330287188C2C5C10BB1B738D33C84800F03628AAF99E8A6CEFDB13BA4863753D3AE845D807DF16A00000000EB89F581920CAC9343663A33911D76CEF5C89390F25865651D902792B881AD65"
   }
  },
  {
   "id": "27-14-piece-late",
   "chapter": "27",
   "section": "14",
   "title": "A piece request checked 301 s after it was signed",
   "kind": "27-piece-request",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "piece_id": "88C2C5C10BB1B738D33C84800F03628AAF99E8A6CEFDB13BA4863753D3AE845D",
    "timestamp": "1794211200",
    "requester": "EB89F581920CAC9343663A33911D76CEF5C89390F25865651D902792B881AD65",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "now": "1794211501"
   },
   "expected": {
    "error": "PERMISSION_DENIED: old snapshot chunks of the archive are served to registered nodes only (the request's time is outside the 300-second window)"
   },
   "note": "The chapter names the status (PERMISSION_DENIED) and the text with an open reason; the reason given is the holder's."
  },
  {
   "id": "27-14-piece-proven",
   "chapter": "27",
   "section": "14",
   "title": "A piece request signed by its requester, checked in time",
   "kind": "27-piece-request",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "piece_id": "88C2C5C10BB1B738D33C84800F03628AAF99E8A6CEFDB13BA4863753D3AE845D",
    "timestamp": "1794211200",
    "requester": "5e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "now": "1794211500"
   },
   "expected": {
    "requester": "5e8eb28dccaa94a992f7169fa67966207d96aa55df7d24d2d6ec1f538c9f2152"
   }
  },
  {
   "id": "27-14-piece-wrong-key",
   "chapter": "27",
   "section": "14",
   "title": "A piece request naming a key that did not sign it",
   "kind": "27-piece-request",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "E003E4E3557EF19F0519BD345009DEA7FB43B3445EAA043920C5DC23B3302871",
    "piece_id": "88C2C5C10BB1B738D33C84800F03628AAF99E8A6CEFDB13BA4863753D3AE845D",
    "timestamp": "1794211200",
    "requester": "EB89F581920CAC9343663A33911D76CEF5C89390F25865651D902792B881AD65",
    "seed": "51bae95d58f32304a5c9d894819989a4fb04da6115d9a43612a026e7a5dd5d96",
    "now": "1794211200"
   },
   "expected": {
    "error": "PERMISSION_DENIED: old snapshot chunks of the archive are served to registered nodes only (the request's signature does not verify for the key it names)"
   }
  },
  {
   "id": "27-15-above-tip",
   "chapter": "27",
   "section": "15",
   "title": "A state sample above the tip",
   "kind": "27-state-sample",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "tip": "12465",
    "height": "12466",
    "addresses": "1",
    "node_ids": "1"
   },
   "expected": {
    "error": "height above my tip"
   }
  },
  {
   "id": "27-15-too-large",
   "chapter": "27",
   "section": "15",
   "title": "A state sample of 33 addresses",
   "kind": "27-state-sample",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "tip": "12465",
    "height": "12000",
    "addresses": "33",
    "node_ids": "1"
   },
   "expected": {
    "error": "sample too large"
   }
  },
  {
   "id": "27-15-rate",
   "chapter": "27",
   "section": "15",
   "title": "A second call from the same key 3 s after the first",
   "kind": "27-state-sample",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "tip": "12465",
    "height": "12000",
    "addresses": "1",
    "node_ids": "1",
    "gap": "3"
   },
   "expected": {
    "error": "rate limited"
   }
  },
  {
   "id": "27-15-ninth-key",
   "chapter": "27",
   "section": "15",
   "title": "A ninth key from one host within 10 s",
   "kind": "27-state-sample",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "tip": "12465",
    "height": "12000",
    "addresses": "1",
    "node_ids": "1",
    "callers": "9"
   },
   "expected": {
    "error": "rate limited"
   }
  },
  {
   "id": "27-15-eighth-key",
   "chapter": "27",
   "section": "15",
   "title": "An eighth key from one host within 10 s is answered",
   "kind": "27-state-sample",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "tip": "12465",
    "height": "12000",
    "addresses": "1",
    "node_ids": "1",
    "callers": "8"
   },
   "expected": {
    "available": "true"
   }
  },
  {
   "id": "27-16-p2p-level",
   "chapter": "27",
   "section": "16",
   "title": "The P2P level of four samples",
   "kind": "27-load-level",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "resource": "p2p",
    "samples": "850\n900\n700\n800"
   },
   "expected": {
    "average": "812",
    "level": "High"
   },
   "note": "The count samples are averaged in whole numbers, rounded down."
  },
  {
   "id": "27-16-p2p-gate",
   "chapter": "27",
   "section": "16",
   "title": "SendTransaction at the High P2P level",
   "kind": "27-load-level",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "resource": "p2p",
    "samples": "850\n900\n700\n800",
    "gate": "true"
   },
   "expected": {
    "error": "RESOURCE_EXHAUSTED: P2P request limit reached"
   }
  },
  {
   "id": "27-16-memory",
   "chapter": "27",
   "section": "16",
   "title": "A resident set averaging 3.2 GiB under a 4 GiB limit is High",
   "kind": "27-load-level",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "resource": "memory",
    "limit": "4294967296",
    "samples": "3435973836\n3435973836\n3435973836\n3435973836"
   },
   "expected": {
    "level": "High"
   },
   "note": "80 % of the limit is 84 % of the 95 % memory limit."
  },
  {
   "id": "27-16-memory-gate",
   "chapter": "27",
   "section": "16",
   "title": "SendTransaction at the High memory level",
   "kind": "27-load-level",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "resource": "memory",
    "limit": "4294967296",
    "samples": "3435973836\n3435973836\n3435973836\n3435973836",
    "gate": "true"
   },
   "expected": {
    "error": "RESOURCE_EXHAUSTED: System memory pressure - try again later"
   }
  },
  {
   "id": "27-16-medium",
   "chapter": "27",
   "section": "16",
   "title": "A Medium level does not refuse a transaction",
   "kind": "27-load-level",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "resource": "p2p",
    "samples": "100\n600\n600\n600\n600",
    "gate": "true"
   },
   "expected": {
    "average": "600",
    "level": "Medium"
   }
  }
 ]
}
