{
 "format": "zoobc-conformance-vectors/1",
 "edition": "0.6.1",
 "chapter": "25",
 "license": "CC BY 4.0, ZooBC Foundation",
 "cases": [
  {
   "id": "25-1-candidate",
   "chapter": "25",
   "section": "1",
   "title": "The worked spine block candidate: header, identity, hash and id",
   "kind": "block-header",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "version": "1",
    "timestamp": "1793768227",
    "total_amount": "0",
    "total_fee": "0",
    "total_coinbase": "0",
    "payload_length": "44",
    "payload_hash": "610200CC27549FA81B53B39B8B5186AC1443940C95E1B97D4EBA27BE9264BF7B",
    "blocksmith": "3333333333333333333333333333333333333333333333333333333333333333",
    "seed": "44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444",
    "previous_hash": "5FB8B0EE676469806C0D5682C6B8A2A62543257AF6A32076B01BC366C246F7F2",
    "seed_proof": "",
    "signature": "55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555"
   },
   "expected": {
    "unsigned": "0100000023BBEA6A000000000000000000000000000000000000000000000000000000002C00000000000000610200CC27549FA81B53B39B8B5186AC1443940C95E1B97D4EBA27BE9264BF7B3333333333333333333333333333333333333333333333333333333333333333444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444445FB8B0EE676469806C0D5682C6B8A2A62543257AF6A32076B01BC366C246F7F2",
    "length": "204",
    "identity": "DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "hash": "F672CCA4DA1387E8C3416BE94009B4CDEB1E03872EB930F9AB81DBFC669C538A",
    "id": "-1691361305265671434"
   }
  },
  {
   "id": "25-2-payload",
   "chapter": "25",
   "section": "2",
   "title": "The payload hash of one key change and the reference commitment",
   "kind": "spine-payload",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "key_changes": "1000 1111111111111111111111111111111111111111111111111111111111111111 0 3",
    "reference_height": "12000",
    "reference_hash": "2222222222222222222222222222222222222222222222222222222222222222",
    "reference_difficulty": "123456789"
   },
   "expected": {
    "payload": "E803000011111111111111111111111111111111111111111111111111111111111111110000000003000000",
    "commitment": "E02E00002222222222222222222222222222222222222222222222222222222222222222313233343536373839",
    "payload_length": "44",
    "payload_hash": "610200CC27549FA81B53B39B8B5186AC1443940C95E1B97D4EBA27BE9264BF7B"
   }
  },
  {
   "id": "25-5-draw",
   "chapter": "25",
   "section": "5",
   "title": "The spine blocksmith selection for rounds 1 to 3 over 11 registered nodes",
   "kind": "spine-draw",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444",
    "signers": "11",
    "rounds": "1\n2\n3"
   },
   "expected": {
    "indexes": "7\n4\n10"
   },
   "note": "Round 1's digest is 0586A41A4332986770874F6285372832B107B9A4EACFD4853A69A6B90330B910."
  },
  {
   "id": "25-5-round",
   "chapter": "25",
   "section": "5",
   "title": "The round of a 86,600-second gap",
   "kind": "spine-round",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "gap": "86600",
    "period": "86400",
    "time_gap": "100"
   },
   "expected": {
    "round": "3"
   }
  },
  {
   "id": "25-6-required-signatures",
   "chapter": "25",
   "section": "6",
   "title": "Required spine signatures for 1 to 12 counting spine signers: normal, fallback, late",
   "kind": "25-required",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "signers": "1\n2\n3\n4\n5\n6\n7\n8\n11\n12",
    "min_signatures": "5",
    "percent": "67",
    "period": "3600",
    "late_after": "10800",
    "fallback_periods": "3"
   },
   "expected": {
    "required": "5\n5\n2\n3\n4\n5\n5\n6\n8\n9",
    "fallback_required": "5\n5\n2\n3\n4\n5\n5\n5\n6\n7",
    "late_required": "1\n2\n2\n3\n3\n4\n4\n5\n6\n7",
    "release": "1\n1\n2\n2\n2\n2\n3\n3\n4\n4"
   },
   "note": "The fallback column is a fallback block that is not late (on the DevNet's timing a gap of three periods, 10,800 s, comes before the late threshold of 14,400 s); with the TestNet's period every fallback block is also late."
  },
  {
   "id": "25-6b-non-signing",
   "chapter": "25",
   "section": "6b",
   "title": "The non-signing statement digest of the worked spine block candidate",
   "kind": "spine-refusal",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "height": "3",
    "identity": "DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "seed": ""
   },
   "expected": {
    "preimage": "5A42432D5350494E452D524546555345e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b330287103000000DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "digest": "AD753566D7D623FF65CD642D61B425737F08F15180F084D5ABE70A7E0761C390"
   }
  },
  {
   "id": "25-6b-non-signing-2",
   "chapter": "25",
   "section": "6b",
   "title": "A second non-signing statement digest",
   "kind": "spine-refusal",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "height": "3",
    "identity": "A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A",
    "seed": ""
   },
   "expected": {
    "digest": "D22DD7A43A0AEB1D04F96E668EA08BE6829CD0D7EFA50B3BDED745E6DB72A65C"
   }
  },
  {
   "id": "25-2-payload-valid",
   "chapter": "25",
   "section": "2",
   "title": "The worked spine block candidate's payload passes its check",
   "kind": "25-payload-check",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "key_changes": "1000 1111111111111111111111111111111111111111111111111111111111111111 0 3",
    "reference_height": "12000",
    "commitment": "E02E00002222222222222222222222222222222222222222222222222222222222222222313233343536373839",
    "payload_length": "44",
    "payload_hash": "610200CC27549FA81B53B39B8B5186AC1443940C95E1B97D4EBA27BE9264BF7B"
   },
   "expected": {
    "payload_length": "44",
    "payload_hash": "610200CC27549FA81B53B39B8B5186AC1443940C95E1B97D4EBA27BE9264BF7B"
   }
  },
  {
   "id": "25-2-payload-length",
   "chapter": "25",
   "section": "2",
   "title": "A claimed payload length of 45 is refused",
   "kind": "25-payload-check",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "key_changes": "1000 1111111111111111111111111111111111111111111111111111111111111111 0 3",
    "reference_height": "12000",
    "commitment": "E02E00002222222222222222222222222222222222222222222222222222222222222222313233343536373839",
    "payload_length": "45",
    "payload_hash": "610200CC27549FA81B53B39B8B5186AC1443940C95E1B97D4EBA27BE9264BF7B"
   },
   "expected": {
    "error": "InvalidBlockPayload: length mismatch (expected 45, got 44)"
   },
   "note": "The text names the block's own payload_length first and the recomputed length second."
  },
  {
   "id": "25-2-commitment-height",
   "chapter": "25",
   "section": "2",
   "title": "A commitment naming main height 12,001 for a reference of 12,000 is refused",
   "kind": "25-payload-check",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "key_changes": "1000 1111111111111111111111111111111111111111111111111111111111111111 0 3",
    "reference_height": "12000",
    "commitment": "E12E00002222222222222222222222222222222222222222222222222222222222222222313233343536373839",
    "payload_length": "44",
    "payload_hash": ""
   },
   "expected": {
    "error": "InvalidBlockPayload: the reference commitment names main height 12001, the block's reference is 12000"
   }
  },
  {
   "id": "25-2-commitment-short",
   "chapter": "25",
   "section": "2",
   "title": "A commitment of 36 bytes is refused",
   "kind": "25-payload-check",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "key_changes": "1000 1111111111111111111111111111111111111111111111111111111111111111 0 3",
    "reference_height": "12000",
    "commitment": "E02E00002222222222222222222222222222222222222222222222222222222222222222",
    "payload_length": "44",
    "payload_hash": ""
   },
   "expected": {
    "error": "InvalidBlockPayload: the reference commitment is missing or short (36 bytes)"
   }
  },
  {
   "id": "25-2-commitment-decimal",
   "chapter": "25",
   "section": "2",
   "title": "A commitment whose difficulty is not decimal is refused",
   "kind": "25-payload-check",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "key_changes": "1000 1111111111111111111111111111111111111111111111111111111111111111 0 3",
    "reference_height": "12000",
    "commitment": "E02E00002222222222222222222222222222222222222222222222222222222222222222333133323358",
    "payload_length": "44",
    "payload_hash": ""
   },
   "expected": {
    "error": "InvalidBlockPayload: the reference commitment's difficulty is not decimal"
   }
  },
  {
   "id": "25-2-payload-hash",
   "chapter": "25",
   "section": "2",
   "title": "A payload hash that does not match is refused",
   "kind": "25-payload-check",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "key_changes": "1000 1111111111111111111111111111111111111111111111111111111111111111 0 3",
    "reference_height": "12000",
    "commitment": "E02E00002222222222222222222222222222222222222222222222222222222222222222313233343536373839",
    "payload_length": "44",
    "payload_hash": "0000000000000000000000000000000000000000000000000000000000000000"
   },
   "expected": {
    "error": "InvalidBlockPayload: hash mismatch"
   }
  },
  {
   "id": "25-3-genesis-signers",
   "chapter": "25",
   "section": "3",
   "title": "The TestNet spine genesis: its 11 keys as add records at height 0, the spine signers sorted by node id",
   "kind": "25-genesis-signers",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "keys": "ZNK_AKSQOGOA_DU5YCAYN_LO4GNMS6_NHYVM2G6_CULAXJI3_IPGQYGZV_FSRL4CNJ\nZNK_K6HRYARU_J53UJZ4E_JNVJVRK5_NE6TBKMA_HAQAE6BS_4ILZZDNI_RZROSENN\nZNK_M2RLFRTV_MWHLGJ4Y_F4HMOU45_4GVVD5JI_2WDP6L4T_QGX2CX4G_5N7EBXNW\nZNK_NONKLR6K_P4I4GKZ3_Y3QAMVYT_DGTVEGVK_I4XTYQRP_KJRG4SGD_QM7KMOED\nZNK_NTCBXDPZ_MGXSYD7A_LPQQ2MUI_7EYWDNJI_FWBXU24D_A75EC54P_DTRJCBCV\nZNK_OFPKRYXV_DO6LO6FC_NZU5OO6R_ARH6HJB5_O3FRZ5WL_YOU2MYNC_7OWAOVEQ\nZNK_QHQ776AK_Z7IM5FCA_QOB4VUHF_YUKBQKMY_XWI6S5FQ_REXZZSH6_H3OYYGWA\nZNK_U7UJWJNS_JQIRMXDI_MQNO7PTF_FGD526MM_ACHC74E6_FGGFPICI_4Y2DHPIO\nZNK_5OE7LAMS_BSWJGQ3G_HIZZCHLW_Z324RE4Q_6JMGKZI5_SATZFOEB_VVSQ7LVF\nZNK_6RBPKBET_FUKVULLK_GFFWNLDC_LXWYY32Q_346DWOFR_XVRNFHYN_6VTGYG62\nZNK_6VUSWJU6_MMR76BYH_QUCWOHOK_UTHUBIDV_GQR5ALCU_5SNRCCLX_ZXJ4PHV6"
   },
   "expected": {
    "signers": "02a50719c01d3b81030d5bb866b25e69f15668de15160ba51b43cd0c1b352ca2\neb89f581920cac9343663a33911d76cef5c89390f25865651d902792b881ad65\na7e89b25b24c11165c68641aefbe652987dd798c008e2ff09e298c57a048e634\n6cc41b8df961af2c0fe05be10d3288f93161b5282d837a6b8307fa41778f1ce2\n66a2b2c675658eb327982f0ec7539de1ab51f528d586ff2f9381afa15f86eb7e\n715ea8e2f51bbcb778a26e69d73bd1044fe3a43d76cb1cf6cbc3a9a661a2fbac\n6b9aa5c7ca7f11c32b3bc6e006571319a7521aaa472f3c422f52626e48c3833e\n578f1c02344f7744e7844b6a9ac55d693d30a9803820027832e2179c8da88e62\n81e1fff80acfd0ce94408383cad0e5c514182998bd91e974b0892f9cc8fe3edd\nf442f504932d155a2d6a314b66ac625ded8c6f50df3c3b38b1bd62d29f0df566\nf5692b269e6323ff07078505671dcaa4cf40a0753423d02c54ec9b110977cdd3",
    "node_ids": "88697328554714370\n1417521806099974635\n1590136471457360039\n3219899983035352172\n3715018299146412646\n4016115710591262321\n4832784384054893163\n4933499001599987543\n5679266776148337025\n6491144547391062772\n9161275597898082805",
    "records": "11"
   },
   "note": "The spine signers for validating spine block 1: every add record of spine block 0, ordered by node id (the first 8 key bytes as a little-endian integer with the top bit cleared)."
  },
  {
   "id": "25-3-late-removals",
   "chapter": "25",
   "section": "3",
   "title": "Late spine block 4 carries the removal of K_2 and leaves the addition of K_9 pending",
   "kind": "25-key-changes",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "signers": "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11",
    "period": "86400",
    "late_after": "10800",
    "spine": "2 1793595427 11240\n3 1793681827 12000",
    "registry": "12100 2 deleted\n12200 9 registered",
    "block": "4 1793779027 12760"
   },
   "expected": {
    "late": "true",
    "additions_from": "12000",
    "changes": "12100 2 remove 4"
   }
  },
  {
   "id": "25-3-after-late",
   "chapter": "25",
   "section": "3",
   "title": "Spine block 5, not late, takes the additions over (12,000, 13,520] and the removals over (12,760, 13,520]",
   "kind": "25-key-changes",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "signers": "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11",
    "period": "86400",
    "late_after": "10800",
    "spine": "2 1793595427 11240\n3 1793681827 12000\n4 1793779027 12760",
    "registry": "12100 2 deleted\n12200 9 registered\n13000 4 deleted",
    "block": "5 1793865427 13520"
   },
   "expected": {
    "late": "false",
    "additions_from": "12000",
    "changes": "12200 9 add 5\n13000 4 remove 5"
   },
   "note": "K_2's addition-and-removal is not repeated: its Deleted row at 12,100 lies below the previous reference 12,760."
  },
  {
   "id": "25-3-not-late",
   "chapter": "25",
   "section": "3",
   "title": "A spine block that is not late carries the additions and the removals of its range",
   "kind": "25-key-changes",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "signers": "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11",
    "period": "86400",
    "late_after": "10800",
    "spine": "2 1793595427 11240\n3 1793681827 12000",
    "registry": "12100 2 deleted\n12200 9 registered",
    "block": "4 1793768227 12760"
   },
   "expected": {
    "late": "false",
    "additions_from": "12000",
    "changes": "12100 2 remove 4\n12200 9 add 4"
   }
  },
  {
   "id": "25-4-expiry",
   "chapter": "25",
   "section": "4",
   "title": "A DevNet snapshot manifest expires after the 30-day minimum",
   "kind": "25-manifest-expiry",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "timestamp": "1793600000",
    "interval": "240",
    "block_time": "15",
    "override": "0"
   },
   "expected": {
    "lifetime": "2592000",
    "expiration": "1796192000"
   }
  },
  {
   "id": "25-5-round-1",
   "chapter": "25",
   "section": "5",
   "title": "A gap of exactly one period is round 1",
   "kind": "spine-round",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "gap": "86400",
    "period": "86400",
    "time_gap": "100"
   },
   "expected": {
    "round": "1"
   },
   "note": "The TestNet spine timestamps 1,793,509,027 / 1,793,595,427 / 1,793,681,827 are 86,400 s apart: each block is round 1."
  },
  {
   "id": "25-5-drawn-round-2",
   "chapter": "25",
   "section": "5",
   "title": "K_5 at a gap of 86,600 s (round 3) is drawn in round 2",
   "kind": "25-producer-check",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444",
    "signers": "11",
    "previous_timestamp": "1793681827",
    "period": "86400",
    "time_gap": "100",
    "tolerance": "150",
    "blocksmith": "5",
    "timestamp": "1793768427"
   },
   "expected": {
    "round": "3",
    "drawn_round": "2"
   }
  },
  {
   "id": "25-5-drawn-round-1",
   "chapter": "25",
   "section": "5",
   "title": "K_8 at a gap of 86,400 s is drawn in round 1",
   "kind": "25-producer-check",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "seed": "44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444",
    "signers": "11",
    "previous_timestamp": "1793681827",
    "period": "86400",
    "time_gap": "100",
    "tolerance": "150",
    "blocksmith": "8",
    "timestamp": "1793768227"
   },
   "expected": {
    "round": "1",
    "drawn_round": "1"
   }
  },
  {
   "id": "25-5-not-drawn",
   "chapter": "25",
   "section": "5",
   "title": "K_1 at a gap of 86,600 s is not drawn",
   "kind": "25-producer-check",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "seed": "44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444",
    "signers": "11",
    "previous_timestamp": "1793681827",
    "period": "86400",
    "time_gap": "100",
    "tolerance": "150",
    "blocksmith": "1",
    "timestamp": "1793768427"
   },
   "expected": {
    "error": "SpineBlocksmithNotDrawn: the blocksmith is not the producer the reference seed draws for any round up to 3"
   }
  },
  {
   "id": "25-5-too-early",
   "chapter": "25",
   "section": "5",
   "title": "A gap of 86,249 s is too early",
   "kind": "25-producer-check",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "seed": "44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444",
    "signers": "11",
    "previous_timestamp": "1793681827",
    "period": "86400",
    "time_gap": "100",
    "tolerance": "150",
    "blocksmith": "5",
    "timestamp": "1793768076"
   },
   "expected": {
    "error": "SpineBlockTooEarly: timestamp 1793768076 is before the previous spine block's 1793681827 + period - tolerance (1793768077)"
   },
   "note": "The chapter gives the text as \"SpineBlockTooEarly: …\"; the full text is shown."
  },
  {
   "id": "25-6a-commitment-binds",
   "chapter": "25",
   "section": "6a",
   "title": "A registered node committed to P does not sign Q and names its signing commitment",
   "kind": "25-cosign",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "identity": "A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A",
    "proposal_timestamp": "1793768327",
    "now": "1793768337",
    "window": "60",
    "tolerance": "150",
    "stored": "",
    "promised": "DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "promised_bar": "8",
    "refused": "",
    "refusals": "",
    "reference_height": "12000",
    "previous_reference": "11000",
    "main_tip": "12760",
    "safety_gap": "760"
   },
   "expected": {
    "accepted": "false",
    "reason": "refused: promised another proposal at spine height 3; it is released only by 4 refusal(s) of it (0 shown)",
    "promised_block_hash": "DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "promised_bar": "8"
   }
  },
  {
   "id": "25-6a-released",
   "chapter": "25",
   "section": "6a",
   "title": "Four verified non-signing statements on P release the signing commitment and Q is signed",
   "kind": "25-cosign",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "identity": "A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A",
    "proposal_timestamp": "1793768327",
    "now": "1793768337",
    "window": "60",
    "tolerance": "150",
    "stored": "",
    "promised": "DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "promised_bar": "8",
    "refused": "",
    "refusals": "2 3 DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6\n3 3 DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6\n4 3 DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6\n5 3 DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "reference_height": "12000",
    "previous_reference": "11000",
    "main_tip": "12760",
    "safety_gap": "760"
   },
   "expected": {
    "accepted": "true",
    "promise": "A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A",
    "refusals_counted": "4"
   }
  },
  {
   "id": "25-6a-wrong-height",
   "chapter": "25",
   "section": "6a",
   "title": "A request for height 5 while the tip is 3 is not judged",
   "kind": "25-cosign",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "spine_height": "5",
    "tip": "3",
    "spine_signers": "11",
    "identity": "A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A",
    "proposal_timestamp": "1793768327",
    "now": "1793768337",
    "window": "60",
    "tolerance": "150",
    "stored": "",
    "promised": "DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "promised_bar": "8",
    "refused": "",
    "refusals": "",
    "reference_height": "12000",
    "previous_reference": "11000",
    "main_tip": "12760",
    "safety_gap": "760"
   },
   "expected": {
    "accepted": "false",
    "reason": "spine height 5 is not the one being collected (my tip is 3)"
   }
  },
  {
   "id": "25-6a-stale",
   "chapter": "25",
   "section": "6a",
   "title": "A spine block candidate stamped 61 s before the registered node's clock is not signed",
   "kind": "25-cosign",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "identity": "A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A",
    "proposal_timestamp": "1793768227",
    "now": "1793768288",
    "window": "60",
    "tolerance": "150",
    "stored": "",
    "promised": "",
    "promised_bar": "0",
    "refused": "",
    "refusals": "",
    "reference_height": "12000",
    "previous_reference": "11000",
    "main_tip": "12760",
    "safety_gap": "760"
   },
   "expected": {
    "accepted": "false",
    "reason": "refused: the proposal (stamped 1793768227) is older than my collection window of 60 s (now 1793768288)"
   }
  },
  {
   "id": "25-6a-ahead",
   "chapter": "25",
   "section": "6a",
   "title": "A spine block candidate stamped 151 s ahead of the registered node's clock is not signed",
   "kind": "25-cosign",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "identity": "A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A",
    "proposal_timestamp": "1793768378",
    "now": "1793768227",
    "window": "60",
    "tolerance": "150",
    "stored": "",
    "promised": "",
    "promised_bar": "0",
    "refused": "",
    "refusals": "",
    "reference_height": "12000",
    "previous_reference": "11000",
    "main_tip": "12760",
    "safety_gap": "760"
   },
   "expected": {
    "accepted": "false",
    "reason": "refused: the proposal is stamped 151 s ahead of my clock"
   }
  },
  {
   "id": "25-6a-refused-before",
   "chapter": "25",
   "section": "6a",
   "title": "A spine block candidate the registered node stated it did not sign is never signed",
   "kind": "25-cosign",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "identity": "A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A",
    "proposal_timestamp": "1793768327",
    "now": "1793768337",
    "window": "60",
    "tolerance": "150",
    "stored": "",
    "promised": "",
    "promised_bar": "0",
    "refused": "A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A",
    "refusals": "",
    "reference_height": "12000",
    "previous_reference": "11000",
    "main_tip": "12760",
    "safety_gap": "760"
   },
   "expected": {
    "accepted": "false",
    "reason": "refused: I refused this proposal at spine height 3 (signed a refusal of it): never signing it"
   }
  },
  {
   "id": "25-6a-held-other",
   "chapter": "25",
   "section": "6a",
   "title": "A block held at the height binds for good",
   "kind": "25-cosign",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "identity": "A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A",
    "proposal_timestamp": "1793768327",
    "now": "1793768337",
    "window": "60",
    "tolerance": "150",
    "stored": "DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "promised": "DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "promised_bar": "8",
    "refused": "",
    "refusals": "",
    "reference_height": "12000",
    "previous_reference": "11000",
    "main_tip": "12760",
    "safety_gap": "760"
   },
   "expected": {
    "accepted": "false",
    "reason": "refused: already co-signed a different block at spine height 3"
   }
  },
  {
   "id": "25-6a-empty-block",
   "chapter": "25",
   "section": "6a",
   "title": "A reference that does not advance is refused",
   "kind": "25-cosign",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "identity": "A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A",
    "proposal_timestamp": "1793768327",
    "now": "1793768337",
    "window": "60",
    "tolerance": "150",
    "stored": "",
    "promised": "",
    "promised_bar": "0",
    "refused": "",
    "refusals": "",
    "reference_height": "11000",
    "previous_reference": "11000",
    "main_tip": "12760",
    "safety_gap": "760"
   },
   "expected": {
    "accepted": "false",
    "reason": "refused: an empty spine block: the reference does not advance past the previous one (no new checkpoint)"
   }
  },
  {
   "id": "25-6a-abstain-gap",
   "chapter": "25",
   "section": "6a",
   "title": "A reference not yet 760 blocks below the registered node's main chain tip gets an abstention",
   "kind": "25-cosign",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "identity": "A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A",
    "proposal_timestamp": "1793768327",
    "now": "1793768337",
    "window": "60",
    "tolerance": "150",
    "stored": "",
    "promised": "",
    "promised_bar": "0",
    "refused": "",
    "refusals": "",
    "reference_height": "12000",
    "previous_reference": "11000",
    "main_tip": "12500",
    "safety_gap": "760"
   },
   "expected": {
    "accepted": "false",
    "reason": "abstain: reference height 12000 is not yet 760 blocks below my tip 12500"
   }
  },
  {
   "id": "25-6a-same-commitment-stale",
   "chapter": "25",
   "section": "6a",
   "title": "The committed spine block candidate itself is signed again whatever its age",
   "kind": "25-cosign",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "identity": "DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "proposal_timestamp": "1793768227",
    "now": "1793768727",
    "window": "60",
    "tolerance": "150",
    "stored": "",
    "promised": "DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "promised_bar": "8",
    "refused": "",
    "refusals": "",
    "reference_height": "12000",
    "previous_reference": "11000",
    "main_tip": "12760",
    "safety_gap": "760"
   },
   "expected": {
    "accepted": "true",
    "promise": "DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6"
   }
  },
  {
   "id": "25-6a-late-released",
   "chapter": "25",
   "section": "6a",
   "title": "A late candidate is not held by a commitment to a candidate that is not late, and its age is not refused",
   "kind": "25-cosign",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "identity": "A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A",
    "proposal_timestamp": "1793779127",
    "now": "1793779627",
    "window": "60",
    "tolerance": "150",
    "stored": "",
    "promised": "DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "promised_bar": "8",
    "refused": "",
    "refusals": "",
    "reference_height": "12000",
    "previous_reference": "11000",
    "main_tip": "12760",
    "safety_gap": "760",
    "previous_timestamp": "1793681827",
    "period": "86400",
    "late_after": "10800",
    "promised_timestamp": "1793768327"
   },
   "expected": {
    "accepted": "true",
    "promise": "A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A",
    "refusals_counted": "0"
   },
   "note": "P is stamped T0 + 86,500 (not late), Q' T0 + 97,300 (late); the registered node's clock is 500 s past Q's stamp."
  },
  {
   "id": "25-6a-late-adds",
   "chapter": "25",
   "section": "6a",
   "title": "A late candidate carrying a signer addition is refused",
   "kind": "25-cosign",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "identity": "A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A",
    "proposal_timestamp": "1793779127",
    "now": "1793779627",
    "window": "60",
    "tolerance": "150",
    "stored": "",
    "promised": "DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "promised_bar": "8",
    "refused": "",
    "refusals": "",
    "reference_height": "12000",
    "previous_reference": "11000",
    "main_tip": "12760",
    "safety_gap": "760",
    "previous_timestamp": "1793681827",
    "period": "86400",
    "late_after": "10800",
    "promised_timestamp": "1793768327",
    "adds": "1"
   },
   "expected": {
    "accepted": "false",
    "reason": "refused: a late spine block carries signer additions"
   }
  },
  {
   "id": "25-6a-late-ahead",
   "chapter": "25",
   "section": "6a",
   "title": "A late candidate stamped 151 s ahead of the registered node's clock is refused",
   "kind": "25-cosign",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "identity": "A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A",
    "proposal_timestamp": "1793779127",
    "now": "1793778976",
    "window": "60",
    "tolerance": "150",
    "stored": "",
    "promised": "DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "promised_bar": "8",
    "refused": "",
    "refusals": "",
    "reference_height": "12000",
    "previous_reference": "11000",
    "main_tip": "12760",
    "safety_gap": "760",
    "previous_timestamp": "1793681827",
    "period": "86400",
    "late_after": "10800",
    "promised_timestamp": "1793768327"
   },
   "expected": {
    "accepted": "false",
    "reason": "refused: the proposal is stamped 151 s ahead of my clock"
   }
  },
  {
   "id": "25-6a-late-held-by-late",
   "chapter": "25",
   "section": "6a",
   "title": "A commitment to a late candidate holds another late one",
   "kind": "25-cosign",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "identity": "A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A",
    "proposal_timestamp": "1793779127",
    "now": "1793779627",
    "window": "60",
    "tolerance": "150",
    "stored": "",
    "promised": "DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "promised_bar": "8",
    "refused": "",
    "refusals": "",
    "reference_height": "12000",
    "previous_reference": "11000",
    "main_tip": "12760",
    "safety_gap": "760",
    "previous_timestamp": "1793681827",
    "period": "86400",
    "late_after": "10800",
    "promised_timestamp": "1793779027"
   },
   "expected": {
    "accepted": "false",
    "reason": "refused: promised another proposal at spine height 3; it is released only by 4 refusal(s) of it (0 shown)",
    "promised_block_hash": "DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "promised_bar": "8"
   }
  },
  {
   "id": "25-6b-height-4-non-signing",
   "chapter": "25",
   "section": "6b",
   "title": "A non-signing statement naming height 4 does not count toward a height-3 release",
   "kind": "25-cosign",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "identity": "A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A",
    "proposal_timestamp": "1793768327",
    "now": "1793768337",
    "window": "60",
    "tolerance": "150",
    "stored": "",
    "promised": "DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "promised_bar": "8",
    "refused": "",
    "refusals": "2 3 DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6\n3 3 DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6\n4 3 DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6\n5 4 DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "reference_height": "12000",
    "previous_reference": "11000",
    "main_tip": "12760",
    "safety_gap": "760"
   },
   "expected": {
    "accepted": "false",
    "reason": "refused: promised another proposal at spine height 3; it is released only by 4 refusal(s) of it (3 shown)",
    "promised_block_hash": "DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "promised_bar": "8"
   }
  },
  {
   "id": "25-6b-unlisted-duplicate",
   "chapter": "25",
   "section": "6b",
   "title": "A repeated refuser and a key off the list count nothing",
   "kind": "25-cosign",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "identity": "A7FFC6F8BF1ED76651C14756A061D662F580FF4DE43B49FA82D80A4B80F8434A",
    "proposal_timestamp": "1793768327",
    "now": "1793768337",
    "window": "60",
    "tolerance": "150",
    "stored": "",
    "promised": "DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "promised_bar": "8",
    "refused": "",
    "refusals": "2 3 DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6\n2 3 DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6\n3 3 DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6\n12 3 DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6\n4 3 DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "reference_height": "12000",
    "previous_reference": "11000",
    "main_tip": "12760",
    "safety_gap": "760"
   },
   "expected": {
    "accepted": "false",
    "reason": "refused: promised another proposal at spine height 3; it is released only by 4 refusal(s) of it (3 shown)",
    "promised_block_hash": "DE9130054E031E11DF492BDD5A9BE36A87720B8414A5E3E69EA9EE394A8D9EB6",
    "promised_bar": "8"
   }
  },
  {
   "id": "25-6b-give",
   "chapter": "25",
   "section": "6b",
   "title": "A non-signing statement on a candidate after its window closed",
   "kind": "25-refusal-give",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "has_proposal": "true",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "blocksmith": "8",
    "previous_timestamp": "1793681827",
    "proposal_timestamp": "1793768227",
    "on_my_block": "true",
    "now": "1793768288",
    "window": "60",
    "period": "86400",
    "tolerance": "150",
    "signed": "false",
    "seed": "0101010101010101010101010101010101010101010101010101010101010101"
   },
   "expected": {
    "given": "true",
    "identity": "694C892294829B1DD653BBE2B545A5C78DAC2D41CD3CE5527C2ACF54DA048ED0",
    "digest": "ADC465C177780726CEBA1481CAD56B256ACB1E9EE8B0F7D643010DB4C9CF82A0"
   },
   "note": "The digest is SHA3-256(\"ZBC-SPINE-REFUSE\" ‖ G ‖ 03000000 ‖ the candidate's identity), signed by the stating node."
  },
  {
   "id": "25-6b-window-open",
   "chapter": "25",
   "section": "6b",
   "title": "No non-signing statement while the candidate's window is still open",
   "kind": "25-refusal-give",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "has_proposal": "true",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "blocksmith": "8",
    "previous_timestamp": "1793681827",
    "proposal_timestamp": "1793768227",
    "on_my_block": "true",
    "now": "1793768280",
    "window": "60",
    "period": "86400",
    "tolerance": "150",
    "signed": "false",
    "seed": "0101010101010101010101010101010101010101010101010101010101010101"
   },
   "expected": {
    "error": "that proposal's collection window is still open on my clock"
   }
  },
  {
   "id": "25-6b-signed-it",
   "chapter": "25",
   "section": "6b",
   "title": "No non-signing statement on a candidate the registered node signed",
   "kind": "25-refusal-give",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "has_proposal": "true",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "blocksmith": "8",
    "previous_timestamp": "1793681827",
    "proposal_timestamp": "1793768227",
    "on_my_block": "true",
    "now": "1793768288",
    "window": "60",
    "period": "86400",
    "tolerance": "150",
    "signed": "true",
    "seed": "0101010101010101010101010101010101010101010101010101010101010101"
   },
   "expected": {
    "error": "I signed that proposal at spine height 3: a refusal would be a lie"
   }
  },
  {
   "id": "25-6b-no-candidate",
   "chapter": "25",
   "section": "6b",
   "title": "A non-signing statement request without a spine block candidate",
   "kind": "25-refusal-give",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "has_proposal": "false",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "blocksmith": "8",
    "previous_timestamp": "1793681827",
    "proposal_timestamp": "1793768227",
    "on_my_block": "true",
    "now": "1793768288",
    "window": "60",
    "period": "86400",
    "tolerance": "150",
    "signed": "false",
    "seed": "0101010101010101010101010101010101010101010101010101010101010101"
   },
   "expected": {
    "error": "no proposal to refuse (the request must carry it)"
   }
  },
  {
   "id": "25-6b-no-window",
   "chapter": "25",
   "section": "6b",
   "title": "No non-signing statements on a chain without a collection window",
   "kind": "25-refusal-give",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "has_proposal": "true",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "blocksmith": "8",
    "previous_timestamp": "1793681827",
    "proposal_timestamp": "1793768227",
    "on_my_block": "true",
    "now": "1793768288",
    "window": "0",
    "period": "86400",
    "tolerance": "150",
    "signed": "false",
    "seed": "0101010101010101010101010101010101010101010101010101010101010101"
   },
   "expected": {
    "error": "no collection window on this chain: no refusals"
   }
  },
  {
   "id": "25-6b-not-on-my-block",
   "chapter": "25",
   "section": "6b",
   "title": "A candidate that does not build on the stating node's spine block 2 is refused",
   "kind": "25-refusal-give",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "has_proposal": "true",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "11",
    "blocksmith": "8",
    "previous_timestamp": "1793681827",
    "proposal_timestamp": "1793768227",
    "on_my_block": "false",
    "now": "1793768288",
    "window": "60",
    "period": "86400",
    "tolerance": "150",
    "signed": "false",
    "seed": "0101010101010101010101010101010101010101010101010101010101010101"
   },
   "expected": {
    "error": "the candidate does not build on my spine block at height 2"
   }
  },
  {
   "id": "25-6b-wrong-height",
   "chapter": "25",
   "section": "6b",
   "title": "A candidate for height 4 while the stating node's tip is 2 is refused",
   "kind": "25-refusal-give",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "has_proposal": "true",
    "spine_height": "4",
    "tip": "2",
    "spine_signers": "11",
    "blocksmith": "8",
    "previous_timestamp": "1793681827",
    "proposal_timestamp": "1793768227",
    "on_my_block": "true",
    "now": "1793768288",
    "window": "60",
    "period": "86400",
    "tolerance": "150",
    "signed": "false",
    "seed": "0101010101010101010101010101010101010101010101010101010101010101"
   },
   "expected": {
    "error": "spine height 4 is not the one being collected (my tip is 2)"
   }
  },
  {
   "id": "25-6b-not-active",
   "chapter": "25",
   "section": "6b",
   "title": "A candidate by a key off the spine signers is refused",
   "kind": "25-refusal-give",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "genesis": "e003e4e3557ef19f0519bd345009dea7fb43b3445eaa043920c5dc23b3302871",
    "has_proposal": "true",
    "spine_height": "3",
    "tip": "2",
    "spine_signers": "7",
    "blocksmith": "8",
    "previous_timestamp": "1793681827",
    "proposal_timestamp": "1793768227",
    "on_my_block": "true",
    "now": "1793768288",
    "window": "60",
    "period": "86400",
    "tolerance": "150",
    "signed": "false",
    "seed": "0101010101010101010101010101010101010101010101010101010101010101"
   },
   "expected": {
    "error": "Blocksmith not active for this spine height"
   }
  },
  {
   "id": "25-7-single",
   "chapter": "25",
   "section": "7",
   "title": "One 64-byte signature counts 1 of the 8 required",
   "kind": "25-signatures",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "spine_signers": "11",
    "blocksmith": "1",
    "form": "single",
    "signers": "",
    "removes": "",
    "adds": "",
    "statements": "0",
    "previous_timestamp": "1793681827",
    "timestamp": "1793768227",
    "period": "86400",
    "late_after": "10800",
    "fallback_periods": "3",
    "min_signatures": "5",
    "percent": "67"
   },
   "expected": {
    "error": "InsufficientSpineSignatures: 1 of the 8 required"
   }
  },
  {
   "id": "25-7-eight",
   "chapter": "25",
   "section": "7",
   "title": "An aggregate of 8 listed signers, the blocksmith first, passes the count",
   "kind": "25-signatures",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "spine_signers": "11",
    "blocksmith": "1",
    "form": "aggregate",
    "signers": "1\n2\n3\n4\n5\n6\n7\n8",
    "removes": "",
    "adds": "",
    "statements": "0",
    "previous_timestamp": "1793681827",
    "timestamp": "1793768227",
    "period": "86400",
    "late_after": "10800",
    "fallback_periods": "3",
    "min_signatures": "5",
    "percent": "67"
   },
   "expected": {
    "late": "false",
    "fallback": "false",
    "field_length": "772",
    "counting": "11",
    "counted": "8",
    "required": "8"
   }
  },
  {
   "id": "25-7-seven",
   "chapter": "25",
   "section": "7",
   "title": "An aggregate of 7 is one short",
   "kind": "25-signatures",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "spine_signers": "11",
    "blocksmith": "1",
    "form": "aggregate",
    "signers": "1\n2\n3\n4\n5\n6\n7",
    "removes": "",
    "adds": "",
    "statements": "0",
    "previous_timestamp": "1793681827",
    "timestamp": "1793768227",
    "period": "86400",
    "late_after": "10800",
    "fallback_periods": "3",
    "min_signatures": "5",
    "percent": "67"
   },
   "expected": {
    "error": "InsufficientSpineSignatures: 7 of the 8 required"
   }
  },
  {
   "id": "25-7-fallback",
   "chapter": "25",
   "section": "7",
   "title": "A block three periods after its predecessor (a fallback block, late as well) passes with 6 of 11",
   "kind": "25-signatures",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "spine_signers": "11",
    "blocksmith": "1",
    "form": "aggregate",
    "signers": "1\n2\n3\n4\n5\n6",
    "removes": "",
    "adds": "",
    "statements": "0",
    "previous_timestamp": "1793509027",
    "timestamp": "1793768227",
    "period": "86400",
    "late_after": "10800",
    "fallback_periods": "3",
    "min_signatures": "5",
    "percent": "67"
   },
   "expected": {
    "late": "true",
    "fallback": "true",
    "field_length": "580",
    "counting": "11",
    "counted": "6",
    "required": "6"
   }
  },
  {
   "id": "25-7-duplicate",
   "chapter": "25",
   "section": "7",
   "title": "A signer listed twice in the aggregate",
   "kind": "25-signatures",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "spine_signers": "11",
    "blocksmith": "1",
    "form": "aggregate",
    "signers": "1\n2\n2\n4\n5\n6\n7\n8",
    "removes": "",
    "adds": "",
    "statements": "0",
    "previous_timestamp": "1793681827",
    "timestamp": "1793768227",
    "period": "86400",
    "late_after": "10800",
    "fallback_periods": "3",
    "min_signatures": "5",
    "percent": "67"
   },
   "expected": {
    "error": "DuplicateSpineSignature"
   }
  },
  {
   "id": "25-7-unlisted",
   "chapter": "25",
   "section": "7",
   "title": "A signer off the list",
   "kind": "25-signatures",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "spine_signers": "11",
    "blocksmith": "1",
    "form": "aggregate",
    "signers": "1\n2\n3\n4\n5\n6\n7\n12",
    "removes": "",
    "adds": "",
    "statements": "0",
    "previous_timestamp": "1793681827",
    "timestamp": "1793768227",
    "period": "86400",
    "late_after": "10800",
    "fallback_periods": "3",
    "min_signatures": "5",
    "percent": "67"
   },
   "expected": {
    "error": "InactiveSpineSigner"
   }
  },
  {
   "id": "25-7-no-blocksmith",
   "chapter": "25",
   "section": "7",
   "title": "An aggregate without the blocksmith",
   "kind": "25-signatures",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "spine_signers": "11",
    "blocksmith": "1",
    "form": "aggregate",
    "signers": "2\n3\n4\n5\n6\n7\n8\n9",
    "removes": "",
    "adds": "",
    "statements": "0",
    "previous_timestamp": "1793681827",
    "timestamp": "1793768227",
    "period": "86400",
    "late_after": "10800",
    "fallback_periods": "3",
    "min_signatures": "5",
    "percent": "67"
   },
   "expected": {
    "error": "MissingBlocksmithSignature"
   }
  },
  {
   "id": "25-7-removed-one",
   "chapter": "25",
   "section": "7",
   "title": "8 entries, one by a key the block removes: 7 counted of the 7 required of 10 counting spine signers",
   "kind": "25-signatures",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "spine_signers": "11",
    "blocksmith": "1",
    "form": "aggregate",
    "signers": "1\n2\n3\n4\n5\n6\n7\n8",
    "removes": "2",
    "adds": "",
    "statements": "0",
    "previous_timestamp": "1793681827",
    "timestamp": "1793768227",
    "period": "86400",
    "late_after": "10800",
    "fallback_periods": "3",
    "min_signatures": "5",
    "percent": "67"
   },
   "expected": {
    "late": "false",
    "fallback": "false",
    "field_length": "772",
    "counting": "10",
    "counted": "7",
    "required": "7"
   }
  },
  {
   "id": "25-7-removed-two",
   "chapter": "25",
   "section": "7",
   "title": "8 entries, two by keys the block removes: 6 counted of the 7 required",
   "kind": "25-signatures",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "spine_signers": "11",
    "blocksmith": "1",
    "form": "aggregate",
    "signers": "1\n2\n3\n4\n5\n6\n7\n8",
    "removes": "2\n7",
    "adds": "",
    "statements": "0",
    "previous_timestamp": "1793681827",
    "timestamp": "1793768227",
    "period": "86400",
    "late_after": "10800",
    "fallback_periods": "3",
    "min_signatures": "5",
    "percent": "67"
   },
   "expected": {
    "error": "InsufficientSpineSignatures: 6 of the 7 required"
   }
  },
  {
   "id": "25-7-statements",
   "chapter": "25",
   "section": "7",
   "title": "A spine block carrying a non-signing statement is invalid",
   "kind": "25-signatures",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "spine_signers": "11",
    "blocksmith": "1",
    "form": "aggregate",
    "signers": "1\n2\n3\n4\n5\n6\n7\n8",
    "removes": "",
    "adds": "",
    "statements": "1",
    "previous_timestamp": "1793681827",
    "timestamp": "1793768227",
    "period": "86400",
    "late_after": "10800",
    "fallback_periods": "3",
    "min_signatures": "5",
    "percent": "67"
   },
   "expected": {
    "error": "SpineBlockCarriesStatements: a spine block carries no non-signing statements"
   }
  },
  {
   "id": "25-6-removed-not-counted",
   "chapter": "25",
   "section": "6",
   "title": "The block removes K_2 and K_7: 9 counting spine signers need 7, and K_2's signature is not counted",
   "kind": "25-signatures",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "spine_signers": "11",
    "blocksmith": "1",
    "form": "aggregate",
    "signers": "1\n2\n3\n4\n5\n6\n8\n9",
    "removes": "2\n7",
    "adds": "",
    "statements": "0",
    "previous_timestamp": "1793681827",
    "timestamp": "1793768227",
    "period": "86400",
    "late_after": "10800",
    "fallback_periods": "3",
    "min_signatures": "5",
    "percent": "67"
   },
   "expected": {
    "late": "false",
    "fallback": "false",
    "field_length": "772",
    "counting": "9",
    "counted": "7",
    "required": "7"
   }
  },
  {
   "id": "25-6c-late-valid",
   "chapter": "25",
   "section": "6c",
   "title": "A candidate stamped T0 + 97,200 is late and passes with 6 of 11",
   "kind": "25-signatures",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "spine_signers": "11",
    "blocksmith": "1",
    "form": "aggregate",
    "signers": "1\n2\n3\n4\n5\n6",
    "removes": "",
    "adds": "",
    "statements": "0",
    "previous_timestamp": "1793681827",
    "timestamp": "1793779027",
    "period": "86400",
    "late_after": "10800",
    "fallback_periods": "3",
    "min_signatures": "5",
    "percent": "67"
   },
   "expected": {
    "late": "true",
    "fallback": "false",
    "field_length": "580",
    "counting": "11",
    "counted": "6",
    "required": "6"
   }
  },
  {
   "id": "25-6c-not-late",
   "chapter": "25",
   "section": "6c",
   "title": "A candidate stamped T0 + 97,199 is not late: 7 signatures of the 8 required are refused",
   "kind": "25-signatures",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "spine_signers": "11",
    "blocksmith": "1",
    "form": "aggregate",
    "signers": "1\n2\n3\n4\n5\n6\n7",
    "removes": "",
    "adds": "",
    "statements": "0",
    "previous_timestamp": "1793681827",
    "timestamp": "1793779026",
    "period": "86400",
    "late_after": "10800",
    "fallback_periods": "3",
    "min_signatures": "5",
    "percent": "67"
   },
   "expected": {
    "error": "InsufficientSpineSignatures: 7 of the 8 required"
   }
  },
  {
   "id": "25-6c-late-short",
   "chapter": "25",
   "section": "6c",
   "title": "A late candidate with 5 signatures of the 6 required is refused",
   "kind": "25-signatures",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "spine_signers": "11",
    "blocksmith": "1",
    "form": "aggregate",
    "signers": "1\n2\n3\n4\n5",
    "removes": "",
    "adds": "",
    "statements": "0",
    "previous_timestamp": "1793681827",
    "timestamp": "1793779027",
    "period": "86400",
    "late_after": "10800",
    "fallback_periods": "3",
    "min_signatures": "5",
    "percent": "67"
   },
   "expected": {
    "error": "InsufficientSpineSignatures: 5 of the 6 required (late spine block: more than half of the list)"
   }
  },
  {
   "id": "25-6c-late-removes-two",
   "chapter": "25",
   "section": "6c",
   "title": "A late candidate removing two registered nodes (9 counting) needs 5",
   "kind": "25-signatures",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "spine_signers": "11",
    "blocksmith": "1",
    "form": "aggregate",
    "signers": "1\n3\n4\n5\n6",
    "removes": "2\n7",
    "adds": "",
    "statements": "0",
    "previous_timestamp": "1793681827",
    "timestamp": "1793779027",
    "period": "86400",
    "late_after": "10800",
    "fallback_periods": "3",
    "min_signatures": "5",
    "percent": "67"
   },
   "expected": {
    "late": "true",
    "field_length": "484",
    "counting": "9",
    "counted": "5",
    "required": "5"
   }
  },
  {
   "id": "25-6c-adds-key",
   "chapter": "25",
   "section": "6c",
   "title": "A late candidate with 6 signatures that adds a node key is refused",
   "kind": "25-signatures",
   "validity": "invalid",
   "source": "computed",
   "inputs": {
    "spine_signers": "11",
    "blocksmith": "1",
    "form": "aggregate",
    "signers": "1\n2\n3\n4\n5\n6",
    "removes": "",
    "adds": "12",
    "statements": "0",
    "previous_timestamp": "1793681827",
    "timestamp": "1793779027",
    "period": "86400",
    "late_after": "10800",
    "fallback_periods": "3",
    "min_signatures": "5",
    "percent": "67"
   },
   "expected": {
    "error": "SpineLateCarriesKeyChanges: a late spine block leaves signer additions pending"
   }
  },
  {
   "id": "25-6c-devnet-late",
   "chapter": "25",
   "section": "6c",
   "title": "DevNet: a block is late from T0 + 14,400, four periods after the previous block",
   "kind": "25-signatures",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "spine_signers": "11",
    "blocksmith": "1",
    "form": "aggregate",
    "signers": "1\n2\n3\n4\n5\n6",
    "removes": "",
    "adds": "",
    "statements": "0",
    "previous_timestamp": "1793753827",
    "timestamp": "1793768227",
    "period": "3600",
    "late_after": "10800",
    "fallback_periods": "3",
    "min_signatures": "5",
    "percent": "67"
   },
   "expected": {
    "late": "true",
    "fallback": "true",
    "counted": "6",
    "required": "6"
   }
  },
  {
   "id": "25-6c-devnet-not-late",
   "chapter": "25",
   "section": "6c",
   "title": "DevNet: a block stamped T0 + 14,399 is a fallback block, not late",
   "kind": "25-signatures",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "spine_signers": "11",
    "blocksmith": "1",
    "form": "aggregate",
    "signers": "1\n2\n3\n4\n5\n6",
    "removes": "",
    "adds": "",
    "statements": "0",
    "previous_timestamp": "1793753828",
    "timestamp": "1793768227",
    "period": "3600",
    "late_after": "10800",
    "fallback_periods": "3",
    "min_signatures": "5",
    "percent": "67"
   },
   "expected": {
    "late": "false",
    "fallback": "true",
    "counted": "6",
    "required": "6"
   }
  },
  {
   "id": "25-8-theirs",
   "chapter": "25",
   "section": "8",
   "title": "Their 22 signatures beat our 16",
   "kind": "25-fork-choice",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "ours": "8\n8",
    "theirs": "8\n8\n6"
   },
   "expected": {
    "ours": "16",
    "theirs": "22",
    "follow": "true"
   }
  },
  {
   "id": "25-8-tie",
   "chapter": "25",
   "section": "8",
   "title": "Equal sums keep ours",
   "kind": "25-fork-choice",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "ours": "8\n8",
    "theirs": "8\n8"
   },
   "expected": {
    "ours": "16",
    "theirs": "16",
    "follow": "false"
   }
  },
  {
   "id": "25-8-failing",
   "chapter": "25",
   "section": "8",
   "title": "A failing block ends their branch",
   "kind": "25-fork-choice",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "ours": "8\n8",
    "theirs": "8\nx\n8\n8"
   },
   "expected": {
    "ours": "16",
    "theirs": "8",
    "follow": "false"
   }
  },
  {
   "id": "25-9-spine-genesis-testnet",
   "chapter": "25",
   "section": "9",
   "title": "Spine block 0 of the shipped TestNet spine genesis file",
   "kind": "06-spine-genesis",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "blocksmiths": "ZNK_AKSQOGOA_DU5YCAYN_LO4GNMS6_NHYVM2G6_CULAXJI3_IPGQYGZV_FSRL4CNJ\nZNK_K6HRYARU_J53UJZ4E_JNVJVRK5_NE6TBKMA_HAQAE6BS_4ILZZDNI_RZROSENN\nZNK_M2RLFRTV_MWHLGJ4Y_F4HMOU45_4GVVD5JI_2WDP6L4T_QGX2CX4G_5N7EBXNW\nZNK_NONKLR6K_P4I4GKZ3_Y3QAMVYT_DGTVEGVK_I4XTYQRP_KJRG4SGD_QM7KMOED\nZNK_NTCBXDPZ_MGXSYD7A_LPQQ2MUI_7EYWDNJI_FWBXU24D_A75EC54P_DTRJCBCV\nZNK_OFPKRYXV_DO6LO6FC_NZU5OO6R_ARH6HJB5_O3FRZ5WL_YOU2MYNC_7OWAOVEQ\nZNK_QHQ776AK_Z7IM5FCA_QOB4VUHF_YUKBQKMY_XWI6S5FQ_REXZZSH6_H3OYYGWA\nZNK_U7UJWJNS_JQIRMXDI_MQNO7PTF_FGD526MM_ACHC74E6_FGGFPICI_4Y2DHPIO\nZNK_5OE7LAMS_BSWJGQ3G_HIZZCHLW_Z324RE4Q_6JMGKZI5_SATZFOEB_VVSQ7LVF\nZNK_6RBPKBET_FUKVULLK_GFFWNLDC_LXWYY32Q_346DWOFR_XVRNFHYN_6VTGYG62\nZNK_6VUSWJU6_MMR76BYH_QUCWOHOK_UTHUBIDV_GQR5ALCU_5SNRCCLX_ZXJ4PHV6",
    "timestamp": "1793509027",
    "version": "1"
   },
   "expected": {
    "payload_length": "484",
    "block_hash": "7CD929C4D52D9C9455ED179D24A65F90ECBF3D1A3E1214A19611635791B3545C"
   },
   "note": "Header with a zero seed and a zero previous hash; the hash is SHA3-256(header ‖ 64 zero bytes); cumulative_difficulty \"0\". The node's spine pin names it as 0 <that hash>."
  },
  {
   "id": "25-9-spine-genesis-devnet",
   "chapter": "25",
   "section": "9",
   "title": "Spine block 0 of the shipped DevNet spine genesis file",
   "kind": "06-spine-genesis",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "blocksmiths": "ZNK_CUE4WOKI_HMEMGTYU_6W3LS5DF_QLFHLCY3_FHVW4ECO_NIEDKUWX_J7DEOVIC\nZNK_AE5FDUUT_EYHC6RBU_KZTHGTHM_XF7VDFQ5_G5EW4F55_V7LH2B4W_ZMPU756T\nZNK_IFTFQM67_AODB62E2_TC6ZXN3T_4FXOQYVV_VC4OOF62_CLECSOF2_T7SKSP5K\nZNK_IU7ET2Z3_JW7GVYCX_4LKMZQ7A_3WG7GCLZ_24HFL45B_ULUUSPI2_VFIVZ4YQ\nZNK_YV7EKKFC_TFEY3WXX_7PWVR6ZR_N5NUQRV5_5YG6RQO2_GNFVCFKP_YVK6KIBO\nZNK_6GNBLAS2_OR77L5CT_DCWFW5E6_TPPWJM7Y_ZJXTTMHU_KMAQNC54_N5WJ4LLX\nZNK_Q5KS5CH3_GE355Q7G_QABGWYAR_IH3IQCML_NQMQ4CP3_7XORCVBL_UTH2X64H\nZNK_37N6JKDY_6QEGWBDI_3KFDF5QQ_HXMVBGLB_Y4LT6X5D_4CXOP6VR_M6VHSDJS\nZNK_XBXUCB7V_JLK6KH6V_5YRW2TCY_H2M2RDE4_NIZAYNUP_2MW2T5A5_7XFCOFO2\nZNK_NYOLVWY4_DWZGLMCD_AXRYHMY5_VKDQODA6_EKGKPNLI_4WB66YJ3_RUNOT7I6\nZNK_R7DEU3OD_CYN6YS5X_A4CBPAEZ_OMAVRWRT_JZKDIELK_TF76RPTE_OWXVEPZK",
    "timestamp": "1793509027",
    "version": "1"
   },
   "expected": {
    "payload_length": "484",
    "block_hash": "5876B908090A5BCA4BD735DD96A559FD8FBBE64C1419C053DE227BE3CACCEEF3"
   }
  },
  {
   "id": "25-9-devnet-chain-identity",
   "chapter": "25",
   "section": "9",
   "title": "The chain identity a manifest of the shipped DevNet genesis file carries",
   "kind": "06-genesis-hash",
   "validity": "valid",
   "source": "computed",
   "inputs": {
    "timestamp": "1793509027",
    "config_hash": "442a9ea5cd5ab99f49ecaf80cc581e1961485e3909a6ab1a3c5c81380eb4b9d6"
   },
   "expected": {
    "genesis_hash": "A37B1692EC47C7B17A7F9CB4C13CC8A73A1D5E843565A5733B9DA2A544DF99F8"
   },
   "note": "The relaunch sets the genesis timestamp at launch: a live chain's manifests carry the hash it announces on launch day."
  }
 ]
}
