@mikeargento/bitgraph-verify 1.27.0 → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/__tests__/carrier6.test.d.ts +10 -0
  2. package/dist/__tests__/carrier6.test.d.ts.map +1 -0
  3. package/dist/__tests__/carrier6.test.js +82 -0
  4. package/dist/__tests__/carrier6.test.js.map +1 -0
  5. package/dist/__tests__/epoch-genesis.test.js +8 -1
  6. package/dist/__tests__/epoch-genesis.test.js.map +1 -1
  7. package/dist/__tests__/measurements-windows.test.d.ts +7 -0
  8. package/dist/__tests__/measurements-windows.test.d.ts.map +1 -0
  9. package/dist/__tests__/measurements-windows.test.js +27 -0
  10. package/dist/__tests__/measurements-windows.test.js.map +1 -0
  11. package/dist/__tests__/timeline-bundle.test.js +30 -2
  12. package/dist/__tests__/timeline-bundle.test.js.map +1 -1
  13. package/dist/attested.d.ts +4 -2
  14. package/dist/attested.d.ts.map +1 -1
  15. package/dist/attested.js +40 -6
  16. package/dist/attested.js.map +1 -1
  17. package/dist/carrier-verify.d.ts +1 -1
  18. package/dist/carrier-verify.d.ts.map +1 -1
  19. package/dist/carrier-verify.js +3 -3
  20. package/dist/carrier-verify.js.map +1 -1
  21. package/dist/carrier.d.ts +10 -2
  22. package/dist/carrier.d.ts.map +1 -1
  23. package/dist/carrier.js +19 -5
  24. package/dist/carrier.js.map +1 -1
  25. package/dist/carrier5.d.ts +22 -2
  26. package/dist/carrier5.d.ts.map +1 -1
  27. package/dist/carrier5.js +36 -2
  28. package/dist/carrier5.js.map +1 -1
  29. package/dist/ceiling.d.ts +2 -2
  30. package/dist/ceiling.d.ts.map +1 -1
  31. package/dist/ceiling.js +8 -4
  32. package/dist/ceiling.js.map +1 -1
  33. package/dist/epoch-genesis.d.ts +4 -0
  34. package/dist/epoch-genesis.d.ts.map +1 -1
  35. package/dist/epoch-genesis.js +7 -0
  36. package/dist/epoch-genesis.js.map +1 -1
  37. package/dist/index.d.ts +4 -4
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/index.js +3 -3
  40. package/dist/index.js.map +1 -1
  41. package/dist/measurements.d.ts +25 -0
  42. package/dist/measurements.d.ts.map +1 -1
  43. package/dist/measurements.js +34 -0
  44. package/dist/measurements.js.map +1 -1
  45. package/dist/timeline-export.d.ts +5 -0
  46. package/dist/timeline-export.d.ts.map +1 -1
  47. package/dist/timeline-export.js +4 -1
  48. package/dist/timeline-export.js.map +1 -1
  49. package/package.json +1 -1
  50. package/src/__tests__/carrier6.test.ts +86 -0
  51. package/src/__tests__/epoch-genesis.test.ts +9 -1
  52. package/src/__tests__/fixtures/carrier6/ceiling.json +73 -0
  53. package/src/__tests__/fixtures/carrier6/floor-block.json +9 -0
  54. package/src/__tests__/fixtures/carrier6/floor-proof.json +39 -0
  55. package/src/__tests__/fixtures/carrier6/proof.json +39 -0
  56. package/src/__tests__/measurements-windows.test.ts +31 -0
  57. package/src/__tests__/timeline-bundle.test.ts +34 -2
  58. package/src/attested.ts +39 -9
  59. package/src/carrier-verify.ts +5 -5
  60. package/src/carrier.ts +19 -6
  61. package/src/carrier5.ts +43 -3
  62. package/src/ceiling.ts +9 -6
  63. package/src/epoch-genesis.ts +8 -1
  64. package/src/index.ts +4 -4
  65. package/src/measurements.ts +51 -0
  66. package/src/timeline-export.ts +9 -2
@@ -0,0 +1,86 @@
1
+ /**
2
+ * The BitGraphed file, v6 (carrier5.ts): v5 and the file's own Base floor. The fixture is real: BitGraph #304 of epoch
3
+ * KmoE…, the home page's ChatGPT picture (website/public/demo/chatgpt.png), bound on 2026-11-02 right after #302, the
4
+ * block read of Base block 53,405,648 the host bound for that drop, with #304's Base ceiling as the site serves it.
5
+ * Every check runs offline.
6
+ *
7
+ * cd packages/verify && npx tsc -p . && node --test dist/__tests__/carrier6.test.js
8
+ */
9
+
10
+ import { test } from "node:test";
11
+ import { strict as assert } from "node:assert";
12
+ import { readFileSync } from "node:fs";
13
+ import { buildBitGraphedFileV5, buildBitGraphedFileV6 } from "../carrier5.js";
14
+ import { verifyCarrier } from "../carrier-verify.js";
15
+ import { parseCarrier, CARRIER_VERSION_6 } from "../carrier.js";
16
+
17
+ const dir = new URL("../../src/__tests__/fixtures/carrier6/", import.meta.url);
18
+ const file = new Uint8Array(readFileSync(new URL("../../../../../../website/public/demo/chatgpt.png", dir)));
19
+ const proof = JSON.parse(readFileSync(new URL("proof.json", dir), "utf8")) as Record<string, unknown>;
20
+ const ceiling = JSON.parse(readFileSync(new URL("ceiling.json", dir), "utf8")) as Record<string, unknown>;
21
+ const floor = { proof: JSON.parse(readFileSync(new URL("floor-proof.json", dir), "utf8")) as Record<string, unknown>, blockFile: readFileSync(new URL("floor-block.json", dir), "utf8") };
22
+ const clone = <T>(x: T): T => JSON.parse(JSON.stringify(x)) as T;
23
+ const claim = (r: Awaited<ReturnType<typeof verifyCarrier>>, id: string) => r.claims.find((c) => c.id === id)?.result;
24
+
25
+ test("the real v6 file checks: the file, the proof, its own Base floor and the Base ceiling", async () => {
26
+ const bg = buildBitGraphedFileV6(file, proof, ceiling, floor);
27
+ const parsed = parseCarrier(bg);
28
+ assert.equal(parsed.kind === "carrier" && parsed.payload.carrier, CARRIER_VERSION_6);
29
+ assert.deepEqual(parsed.kind === "carrier" ? parsed.inner.length : null, file.length, "stripping the block gives the file back");
30
+ const r = await verifyCarrier(bg);
31
+ assert.equal(r.verdict, "TRUE", r.reasons.join("; "));
32
+ assert.equal(r.version, 6);
33
+ assert.equal(claim(r, "bytes.digest"), "TRUE");
34
+ assert.equal(claim(r, "floor.read"), "TRUE");
35
+ assert.equal(claim(r, "floor.time"), "TRUE");
36
+ assert.equal(claim(r, "ceiling.time"), "TRUE");
37
+ assert.equal(r.bounds?.notBefore.blockNumber, 53405648);
38
+ assert.ok(r.bounds?.existedBy && r.bounds.existedBy.blockNumber > 53405648, "the ceiling is after the floor");
39
+ assert.match(r.reading, /BitGraph #304: these exact bytes, .* after Base block 53405648 and written to Base by block/);
40
+ });
41
+
42
+ test("a v6 file bound without a floor still checks, and says the floor is not carried", async () => {
43
+ const r = await verifyCarrier(buildBitGraphedFileV6(file, proof, ceiling, null));
44
+ assert.equal(r.verdict, "TRUE", r.reasons.join("; "));
45
+ assert.equal(claim(r, "floor.read"), "NOT_CARRIED");
46
+ assert.equal(r.bounds, null);
47
+ });
48
+
49
+ test("a floor that is not this file's does not check: another block, an edited proof, or a record further back", async () => {
50
+ const otherBlock = { ...floor, blockFile: floor.blockFile.replace("53405648", "53405647") };
51
+ const r1 = await verifyCarrier(buildBitGraphedFileV6(file, proof, ceiling, otherBlock));
52
+ assert.equal(r1.verdict, "FALSE");
53
+ assert.equal(claim(r1, "floor.read"), "FALSE");
54
+
55
+ const edited = clone(floor);
56
+ (edited.proof["commit"] as Record<string, unknown>)["counter"] = "300";
57
+ const r2 = await verifyCarrier(buildBitGraphedFileV6(file, proof, ceiling, edited));
58
+ assert.equal(r2.verdict, "FALSE");
59
+
60
+ // The file's own proof, offered as its floor: a real BitGraph, but not the record right before it.
61
+ const r3 = await verifyCarrier(buildBitGraphedFileV6(file, proof, ceiling, { proof, blockFile: floor.blockFile }));
62
+ assert.equal(r3.verdict, "FALSE");
63
+ assert.equal(claim(r3, "floor.read"), "FALSE");
64
+ });
65
+
66
+ test("v5 files keep checking as they did: the same proof without the floor block", async () => {
67
+ const r = await verifyCarrier(buildBitGraphedFileV5(file, proof, ceiling));
68
+ assert.equal(r.verdict, "TRUE", r.reasons.join("; "));
69
+ assert.equal(r.version, 5);
70
+ assert.equal(claim(r, "floor.read"), undefined);
71
+ });
72
+
73
+ test("a v6 block missing floorInTime, or with a malformed one, is unreadable, never a verdict", async () => {
74
+ const bg = buildBitGraphedFileV6(file, proof, ceiling, floor);
75
+ const p = parseCarrier(bg);
76
+ assert.equal(p.kind, "carrier");
77
+ for (const bad of [{ status: "present", proof: floor.proof }, { status: "maybe" }, undefined]) {
78
+ const payload = clone((p as unknown as { payload: Record<string, unknown> }).payload);
79
+ if (bad === undefined) delete payload["floorInTime"]; else payload["floorInTime"] = bad;
80
+ const json = new TextEncoder().encode(JSON.stringify(payload));
81
+ const len = new Uint8Array(4); new DataView(len.buffer).setUint32(0, json.length);
82
+ const magic = bg.slice(bg.length - 8);
83
+ const rebuilt = new Uint8Array([...file, ...magic, ...len, ...json, ...len, ...magic]);
84
+ assert.notEqual(parseCarrier(rebuilt).kind, "carrier", JSON.stringify(bad));
85
+ }
86
+ });
@@ -14,7 +14,7 @@ import {
14
14
  import type { BitGraphProof } from "../types.js";
15
15
 
16
16
  const epochId = Buffer.from(Array.from({ length: 32 }, (_, i) => (i * 7 + 3) & 0xff)).toString("base64");
17
- const writer = "0x" + "ab".repeat(20);
17
+ const writer = "0xf3972408d853c975f86351c311f4310220bbf2a3"; // BitGraph's published writer (measurements.ts)
18
18
  const txHash = "0x" + "cd".repeat(32);
19
19
  const blockHash = "0x" + "ef".repeat(32);
20
20
  const file = epochGenesisFileText({ epochId, chainId: 8453, writer, txHash, blockNumber: 52_000_000, blockHash, blockTimestamp: 1_790_000_000 });
@@ -69,3 +69,11 @@ test("the online check: the transaction and the block as Base reports them", ()
69
69
  assert.match(checkEpochGenesis({ file, proof: proofFor(file), tx: { ...tx, blockHash: "0x" + "00".repeat(32) }, block }).reasons.join(), /not in the block/);
70
70
  assert.match(checkEpochGenesis({ file, proof: proofFor(file), tx, block: { ...block, timestamp: 1 } }).reasons.join(), /block time/);
71
71
  });
72
+
73
+ test("the writer: BitGraph's by default, or one the caller names", () => {
74
+ const other = "0x" + "ab".repeat(20);
75
+ const foreign = epochGenesisFileText({ epochId, chainId: 8453, writer: other, txHash, blockNumber: 52_000_000, blockHash, blockTimestamp: 1_790_000_000 });
76
+ assert.match(checkEpochGenesis({ file: foreign, proof: proofFor(foreign) }).reasons.join(), /not a BitGraph writer/);
77
+ assert.deepEqual(checkEpochGenesis({ file: foreign, proof: proofFor(foreign), writers: [other] }).reasons, []);
78
+ assert.match(checkEpochGenesis({ file, proof: proofFor(file), writers: [other] }).reasons.join(), /not one this verifier trusts/);
79
+ });
@@ -0,0 +1,73 @@
1
+ {
2
+ "version": "bitgraph-ceiling/1",
3
+ "proofHash": "ta/OP52vg1IBws6FScAvr/vT3d1BhBOHgl+Bs3KbU9w=",
4
+ "leafIndex": 0,
5
+ "leafCount": 1,
6
+ "merklePath": [],
7
+ "root": "0xb6538ed64b5978155a59c7f57ccbfcef02dcf1bcd9842ec8b6fa1cb0b7806b5b",
8
+ "anchor": {
9
+ "chainId": 8453,
10
+ "writer": "0xf3972408d853c975f86351c311f4310220bbf2a3",
11
+ "txHash": "0xf7effcf07fec83e8f2a8542a2a3857ef2bdb1f0b80d8987610eb6e61f1b3dc19",
12
+ "rawTx": "0x02f8c1822105820d45830f424083a7d8c0826ac294f3972408d853c975f86351c311f4310220bbf2a380b85442474331b6538ed64b5978155a59c7f57ccbfcef02dcf1bcd9842ec8b6fa1cb0b7806b5b670ed0a43541f2873104dc4bc775d04ae68c3502f715f652ea4fbfd3b920807d00000000000001300000000000000130c001a070c8c14a7e50d4368032c73d8fdd4512459e477d6b4629fc818edd453680cbffa069e217f81e9c05dcee1f52ab2f47f12618549b8933dd1ff62be66c2742cced6e",
13
+ "payload": "0x42474331b6538ed64b5978155a59c7f57ccbfcef02dcf1bcd9842ec8b6fa1cb0b7806b5b670ed0a43541f2873104dc4bc775d04ae68c3502f715f652ea4fbfd3b920807d00000000000001300000000000000130",
14
+ "blockNumber": 53405650,
15
+ "blockHash": "0x9cc3bc5ca84ca831b8175885432a8e0caddf5eabe21f7cdb656a3e07a7c47035",
16
+ "blockTimestamp": 1793600647,
17
+ "blockHeader": "0xf9027aa0e0f6bc438d1189ee292f1b55e101d85f827ea08c9e998a1b94f32d15972cb8d6a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347944200000000000000000000000000000000000011a0309a26b8d0633d09847c1f08ddffe198c88ac179e6ec7cbc35aebbfa4ca8076aa0f8a03c6be88692502789c674d2116b605c9ca5742faef342eb4eb6229b897942a0ee61e467ee40b09fc15b92ac19ba8d6ebee1122d029afebb9f46bc3e2ec0b9c1b90100cdf9bdea455cf9e885897484f21dd46b127f94384bb527393a6e37cd951d6ed57c2e05f8f464f9a73e07df752ab2331d0d19b9662d843a07a6b5e61ad93c12674d8ab6d684c19d6e772c86eadec7e1f1cdea1100165d72a6eeb35212f506b87acf8fcc29efae097913cafd614cd13f43a9a3d30f7907354c8a2cd7f2009a779a71d92ef43fd5ec11c1509777313686148a90ba2dc4f9fd4cf236174725202df0976e42fc86f1bf982e40ffd932b2373a7f156d5ac6db8d8e87f336688e8b4b92eda927ba63618ced41cd5cf4543a9ec1daacf5f2bf72bef3489365e6d049ebab7b903a95964610e2fb482f6473baffd7f2f83e8803c0398b6fc9207397d756e98084032ee7d28417d78400840317501d846ae82c879101000000640000000500000000004c4b40a0c86aaea1213777ca3fcd0e4ce37a19a9fdc9aa03b6cf2a304fb33103364513d5880000000000000000834c4b40a0755cd4377b71f8b2aa305ac60f2ef191fba342785782ea87312f52667aac53628380786080a045ae3b25930e25894c8b9d02519719f86a468b978d9e1b32986a1be383a9a04ba0e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
18
+ "txIndex": 151,
19
+ "txInclusionProof": [
20
+ "0xf90131a01f2191a328b8cfbe37531cdb14bf887ad4684e8f7655645b2fafd90e5f2af002a02b202fc7fc4689d8abd33f788efa1689df6dbff23264ce40fbc2e017cd2f4081a049d3e0718c74a1defeecde557fbefea26922d681d410bdc4d1051ee8e9bf05d0a0ed246d088600cb244ccc05f265a57836a84c9422dbb395d40be188c364ec76faa0883f633be409fed8fa4ee33d4ce67e5588b02962bf97774b8ef84fa356b8b87ca0f4356936a1e14555da203d4277419be8a6d49ff388a079d92822eb20ab8b2c8ba0b6acf970eacce7bc0a4f3c4f07a01db38c9df7516e3b128e280804fc5d353d75a08dd9d4a2053bec547806046ee755231e292d6a7694876b24b890f7f811f62bb6a06b6a3b5ab5870e446b541364fc243e5ecdcc7d0014911bc90159f11300b4d8938080808080808080",
21
+ "0xf851a05545ca5098268029624fe96869cfc13627a658f4aa2e29f1fb4ddb89e0073b0ba08e713b39240275350d907e55987ca7380fdb1a140e82c52c175a7d3fcd6f9117808080808080808080808080808080",
22
+ "0xf8718080808080808080a0af75d0aa491a9b12898cf60ad6f6e3462616ce567243016867e744fd0b2a9bd1a09c65e0730d9f0639ab69b493b26bd2e32e61090efcec63f215cb847145524b09a0e974e19873ded4cbcd648f03d66e73df8e7fb4358b563ceec496130ca4edc66e808080808080",
23
+ "0xf90211a0443ac32ca711e77ef17a56e65385eed112759a2638daf19001645c985c8f32e3a0fe9d1c7b495d510b86213201841447a4fc85ae6ffc931a7b4b990f5e7600cab8a05cf3ca81a4131664da31efedfe7b935b20f08d84ee8cc3a98f5d6da278472053a06cd1408a96a61298c80c11d65c5d9b9038624ff42e73392574293f51498dca31a0aceeba43eef9ddf1886750744cd93a287ad93bb5129c87835d99938e09a167e3a046b000bebd642c9690cf6b3d23f7290b2e85c5379df8dc4c9eeff8ac916e308ba01abe10dcad785f8b65cde7abecb4d1e217928fdbf0315204d265d873df5c9284a08e6f23d335bdf1e7daf48d27ae4f4af58a02671f360ca031bd76080c9ffbdf68a01cf18cb461f323779dfcfb3978c2829bea7b54585062bd6b05c8f84384690225a0abec8533071650a44cb68d11670632977361dca7a998eafc303c4cdc2bc0fee8a03e5da8daf9d87f6023a0d0282f20c32e410482a8a638209ff190c79486eee957a03bb7c4848cf7111dc49099de275f5004bdc93cbe8f22b423bf5a2fb6dbe10b81a0e471bfbfbb3dcffe3994a87d8150c4fdf27869aa2d83b5c98924c39dc35329e9a09f83861a40ee389f59ed1f58752bdef7fdf17fbfb39370fd7b34eed80a1b6f45a0e95102dbb41e60de55a2b75c158c5868876e1059189dc9735dc1d245259364f4a0f243a4652f87bee8215e21564687c33cdcbf45e14bc126a53193dc896dda911480",
24
+ "0xf8c720b8c402f8c1822105820d45830f424083a7d8c0826ac294f3972408d853c975f86351c311f4310220bbf2a380b85442474331b6538ed64b5978155a59c7f57ccbfcef02dcf1bcd9842ec8b6fa1cb0b7806b5b670ed0a43541f2873104dc4bc775d04ae68c3502f715f652ea4fbfd3b920807d00000000000001300000000000000130c001a070c8c14a7e50d4368032c73d8fdd4512459e477d6b4629fc818edd453680cbffa069e217f81e9c05dcee1f52ab2f47f12618549b8933dd1ff62be66c2742cced6e"
25
+ ]
26
+ },
27
+ "status": "finalized",
28
+ "statusObserved": {
29
+ "included": "2026-11-02T06:24:08.545Z",
30
+ "safe": "2026-11-02T06:25:14.443Z",
31
+ "finalized": "2026-11-02T06:40:39.972Z"
32
+ },
33
+ "floor": null,
34
+ "settlement": {
35
+ "version": "bitgraph-settlement/1",
36
+ "baseBlockNumber": 53405650,
37
+ "baseBlockHash": "0x9cc3bc5ca84ca831b8175885432a8e0caddf5eabe21f7cdb656a3e07a7c47035",
38
+ "l1": {
39
+ "chainId": 1,
40
+ "txHash": "0x01bc374bb302e317174204fda1af0e5538f0ddd8488aff622ec153761f0cdf82",
41
+ "rawTx": "0x03f9013b018326fca084959b8f808501c0d2ae8082520894ff000000000000000000000000000000000084538080c0843b9aca00f8c6a0015ab76b1736f4e5e340efd7e42e0375f52d190de05990b0e5132980ce55f90fa001b7fbdb48267a988d9ccc31c2e0fe2e90c74c1f9bd1b6325f84bf8946bc721aa001dabd55d84b0fa27773e108edc0de07b12cacc1467259401f5b052b578b9783a00120d25373cc0ebed620bd72f0113a9054fc42e9aa2e23d56b5a7e5be69bac0fa001b7fa8908e491f83f1165b18b8e84cf3c61ff25fec38977e2dcce0034887b0ba0017c46daa0f4728901afdb67a1b5cd16192070b65648f392dc92701ad555426a01a08d04118073edf8a9171850319093db3a32dccc581e8332ce8bf37596d97de977a032f084d3f713bf2c0d8a7b736f6f91ffa36f3a27402caacc7fcecb139aa8aae4",
42
+ "blockNumber": 26325285,
43
+ "blockHash": "0x997d7f69de08914e2ab943d3541d0a32d6447c5fcf9e943aaa639c9bcd14e419",
44
+ "blockTimestamp": 1793600711,
45
+ "blockHeader": "0xf90286a05da1d82b70cbcf691749a0972348c6b81c0ca90b04903104c9fb25ceded6dc58a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347944838b106fce9647bdf1e7877bf73ce8b0bad5f97a002230409bd36f1ac23cf59053e21095ee71255a66aa68aba4ea1709db0f71ca7a0fac2e8f123f1a7ca8431483bce9c0f59d28cc4ba10f6eec75184f7eeb3e4a808a02253574998e2a025db8eea4fdb38ab3bdb6d605b8f38e69c3659363b94896020b9010077f51fcffdfe76eff77af9dfffb9fee19fed6cf9be767b3355d9d5d63ffea9bd633d345eeefe5ba66fdbffa3ed2fd1f9bf7ddbee8dcbe2faf799a7d24e3d2157d4d777f92f77b368fb897d2bd7f7b7f30f76bcbfddf75efe737e7a77fe76f7a43a4d714bf77ef5f29cbb3cadf6619be1aead26ec77f537ffbef576776d1f975dcbb8c4ffff9947ffef3afbfffb7f0a8fb677e651ffc9eeaea5ffaf6e75b85ee073ecbbf6c1fbfed45afddff8bb6ea8b2eb75ae7ef6bba47f86fff36c6ebff4ffefbbfc33e3dadeeff6afbefaf77df9579fbfcf5fff6f3afb7bc7f53ff3c7fdb3f552addfcffff27be75ffafff7931bfaffe57541bb9fdedc3b1b518fe676e77680840191b12584039387008401ac357a846ae82cc798546974616e2028746974616e6275696c6465722e78797a29a0ebf9b85b12fafca8c2b855bcb390d33652336469e102ea9b57eda16061788b208800000000000000008402468d9ca0fa54992cbb40e1477e418ff3eee68916de7de7562ebed8c23156324111d1813483100000840a23ac74a0f7bcead60b86a1b1b8e8dc1792d44ee28ef3c5d79986b069bf71bc6f5395ad7ea0e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
46
+ "txIndex": 53,
47
+ "txInclusionProof": [
48
+ "0xf90131a0120e86724ff099af63b6dceb4e0f428d6dec1af6098e0d7d5bb9a9c28f3fec47a0cd86780e4aa46ebb58a0c07457c617463234995328f18fad7113090bf207f7b1a06129d2097c60963f270c94e51675d4005535723cc38ef7bd862b17d708128feaa04e4d08012fd5dfc4849b6e17a784371afd866be560b393d41aea1e2b5c84dbfca08063ae911ddc8bed9e81ab4b08ddcb49946f910aff2a6a08753778559ec33f00a03a806f700712743597d4a0639b3805ddfed92e02ab1678f4a43caa3b156bbe97a0bcbea9d4f1f3979f00fd6eb5fd75b2abb890a784d70cd72fa597a8f5beb54f6ea006e79f1759a5f6b8740b33ff65695b29d357758d5d4b6a10473f36007c728f50a0041c000c3e81c0cc33a635db04b33e040cd7947c04f9884eb81bb52a7d85231f8080808080808080",
49
+ "0xf90211a0930e2b3b63006a83a0dae2af849f57891b008de8c5300b5b66ce324940286b7da03c2b5ed60d488143059bf9c1bab94d4be3f70749e11b384980da861a49d0d943a034875e718ad361e5b4414ea363c18ce80492a9756789ba2164efe0e64738dab3a0e9b3b75caff9bb37cef6104549540aa17dc3b6278866b13170f7069e01783398a06233fadeceeb5fc27c64f190e15d56c4a0899581a990a68fd7860c372a0530c9a0c3c27d9ce3e74ed206d9634ff7e6512e1958aad114fd50eea4485760a7a84b50a05c983903b81d8aa7b8f92cd50eb0ea40f680859c85e8b7bc8a4efe195ede15a1a0a9676f3d737681a4d0c65e75d781876933b99947fa97237293b1edeecc323dc7a0bab6f05afe6a51d80ab1fcbf33a42f05f0d41dd9d586b990999129a5b5814d75a0eb967416dae3ae4a120a4fec73a56ee5fa25b9b4228f199ede2b3ed2235af5efa0a6bc9632c5e032f0a9be6044dea023b85cac1b6de4930b8a04131d568f41d695a0e9c0c1af8cad06c5b56c0f0a3f1ea3c9f5312f55c2e14f57d2781a7cd768f8d3a0c011a1c667aa2695ed80a54523acc85fbb15f5fa0fa8977263de4b354a5816a7a0cbbd3da1054d37887950d684021250518207e50e96a09d24e9d8539efe721acaa0a368976a9d20e821557f280b932b841284d6ac256ee1b431f5776a05bc1c404ca0809946c39fff28e932f4e0114ba72fc65c83ddcba84d7a7d7bcd9d6fda8ea5d580",
50
+ "0xf9014320b9013f03f9013b018326fca084959b8f808501c0d2ae8082520894ff000000000000000000000000000000000084538080c0843b9aca00f8c6a0015ab76b1736f4e5e340efd7e42e0375f52d190de05990b0e5132980ce55f90fa001b7fbdb48267a988d9ccc31c2e0fe2e90c74c1f9bd1b6325f84bf8946bc721aa001dabd55d84b0fa27773e108edc0de07b12cacc1467259401f5b052b578b9783a00120d25373cc0ebed620bd72f0113a9054fc42e9aa2e23d56b5a7e5be69bac0fa001b7fa8908e491f83f1165b18b8e84cf3c61ff25fec38977e2dcce0034887b0ba0017c46daa0f4728901afdb67a1b5cd16192070b65648f392dc92701ad555426a01a08d04118073edf8a9171850319093db3a32dccc581e8332ce8bf37596d97de977a032f084d3f713bf2c0d8a7b736f6f91ffa36f3a27402caacc7fcecb139aa8aae4"
51
+ ]
52
+ },
53
+ "blobs": [
54
+ {
55
+ "versionedHash": "0x015ab76b1736f4e5e340efd7e42e0375f52d190de05990b0e5132980ce55f90f",
56
+ "kzgCommitment": "0xb43c56b58ff21713225b064a6a6e873a583df6c5cf01b947405f06e5850f85b8c2baa071ead23aada98fdcb2d2740cf4",
57
+ "index": 0,
58
+ "file": "0x015ab76b1736f4e5e340efd7e42e0375f52d190de05990b0e5132980ce55f90f.bin"
59
+ }
60
+ ],
61
+ "channel": {
62
+ "id": "0x12013c2e4b3e0b92e325f047910c16b8",
63
+ "frames": 6,
64
+ "compression": "brotli",
65
+ "firstBaseBlock": 53405649,
66
+ "lastBaseBlock": 53405674
67
+ },
68
+ "located": {
69
+ "baseTxIndex": 150,
70
+ "txHash": "0xf7effcf07fec83e8f2a8542a2a3857ef2bdb1f0b80d8987610eb6e61f1b3dc19"
71
+ }
72
+ }
73
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "format": "bitgraph-block-read/1",
3
+ "epochId": "KmoEizbgaaeMeM+RMn6VuHvghxj9ZfyR9MV+hEpCrbs=",
4
+ "chain": "base",
5
+ "chainId": "eip155:8453",
6
+ "number": 53405648,
7
+ "hash": "0x9cfcdc0da8d054aa07d9953b7b45e51e594bfdbf4e8de41163e7d3140aca3163",
8
+ "timestamp": 1793600643
9
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "version": "bitgraph/1",
3
+ "artifact": {
4
+ "hashAlg": "sha256",
5
+ "digestB64": "KurUqoG0CPpsG1KtWBxPUeIRk0FvfhQPPbA1U3RKzMU="
6
+ },
7
+ "commit": {
8
+ "nonceB64": "LtmG73WEHLHtAX35K0piDfGITP/0e5TcTwfMA0Qfu38=",
9
+ "counter": "302",
10
+ "slotCounter": "301",
11
+ "slotHashB64": "KWj2NFyC4X8tcdcDsu3ZOc6r1622X5/1Be1o4SJ8Zsc=",
12
+ "epochId": "KmoEizbgaaeMeM+RMn6VuHvghxj9ZfyR9MV+hEpCrbs=",
13
+ "atomic": true,
14
+ "prevB64": "Xw+MSgiXl5J0aCaJ2bF0wJzeWi5hLz/SowGX3WPFdRw=",
15
+ "chainId": "bitgraph:main"
16
+ },
17
+ "signer": {
18
+ "publicKeyB64": "8K5C0ftI8MqLHTClyHX3PqOCli7VE0gIaFttjwL2plY=",
19
+ "signatureB64": "eaRS/D1hTSrmRTy84XcizuhQqD916CdPw00S/2dT9g+XJg3R9iuwsv2npuThrZs7VI3ssTtUq1Fr3HoG26jzBg=="
20
+ },
21
+ "environment": {
22
+ "enforcement": "measured-tee",
23
+ "measurement": "adaad0bef62292d35197ae8db19e40685229f1a1e6070a7c77a148c4ada88ee66a1ca50819eebc2017c6716a49f2692f",
24
+ "attestation": {
25
+ "format": "aws-nitro",
26
+ "reportB64": "hEShATgioFkRIb9pbW9kdWxlX2lkeCdpLTA2NTAyNzM0MjNmZjY3NTY3LWVuYzAxYTE5OTlmNDJhMjJkZjBmZGlnZXN0ZlNIQTM4NGl0aW1lc3RhbXAbAAABoZrt6AZkcGNyc7AAWDCtqtC+9iKS01GXro2xnkBoUinxoeYHCnx3oUjEraiO5mocpQgZ7rwgF8ZxaknyaS8BWDBLTVs2YbPvwSkgkAyA4Sbkz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QWBBSNxM+VQ9qvFhsYD6YnxtC3PzNNszAfBgNVHSMEGDAWgBQTCCCgMeGxYfuwfPExJ9slPaTKXjAKBggqhkjOPQQDAwNoADBlAjEAxDDzfTDVJuj9yOSxavbvmDZb4nIh1dRmMyxuSzyi1WKXBeqlfpmKuyVExK/7qH/jAjB7plwNzAjN3ztyCwr3ewPYfSUEAcxtfSNJXF37h8sSjGlnzqCNwUpn0Fj/+sYjCndqcHVibGljX2tlefZpdXNlcl9kYXRhWCCbFdpVqyXDzWDVLweFIO34CD0ljcI7gzkzUJl5OWERtmVub25jZfb/WGBW6CbteYAaxU++I12Tnp2W2S/UivIebZ2Z9YpB0VBXcWe/o+NGT2k94KjbxdSk4Yh+fjJLv1W0ogMU2Wz9nTlmCz4+cmZRIxrCEYPxfPU90ptsExWipq9jyh/49xKDgRY="
27
+ }
28
+ },
29
+ "slotAllocation": {
30
+ "version": "bitgraph/slot/1",
31
+ "nonceB64": "LtmG73WEHLHtAX35K0piDfGITP/0e5TcTwfMA0Qfu38=",
32
+ "counter": "301",
33
+ "epochId": "KmoEizbgaaeMeM+RMn6VuHvghxj9ZfyR9MV+hEpCrbs=",
34
+ "publicKeyB64": "8K5C0ftI8MqLHTClyHX3PqOCli7VE0gIaFttjwL2plY=",
35
+ "chainId": "bitgraph:main",
36
+ "signatureB64": "TM1OKX4lQGng8iGxb0HbZwyyIaDqSGhqytyAW5CvXTm3N5mgz3TQFEOrFomU/FLifccvETlM99h9goHX2AarAA=="
37
+ },
38
+ "proofHash": "mxXaVaslw81g1S8HhSDt+Ag9JY3CO4M5M1CZeTlhEbY="
39
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "version": "bitgraph/1",
3
+ "artifact": {
4
+ "hashAlg": "sha256",
5
+ "digestB64": "+yO5aQPDBxTTeFvV/ObC4//SkVHUMInfOsERBQSt6HA="
6
+ },
7
+ "commit": {
8
+ "nonceB64": "QJaBvIx2Xv3SfrwE1hVrDAWO36p8QYRTS6oqmujBFDQ=",
9
+ "counter": "304",
10
+ "slotCounter": "303",
11
+ "slotHashB64": "1CgJAfMF7e2rdmqa7mE7vBqVDBljB4VJDAinAccOq70=",
12
+ "epochId": "KmoEizbgaaeMeM+RMn6VuHvghxj9ZfyR9MV+hEpCrbs=",
13
+ "atomic": true,
14
+ "prevB64": "HL3O9PE8MA0PkNubFNd26E51MgCFyCBmc1Suq1FGk0E=",
15
+ "chainId": "bitgraph:main"
16
+ },
17
+ "signer": {
18
+ "publicKeyB64": "8K5C0ftI8MqLHTClyHX3PqOCli7VE0gIaFttjwL2plY=",
19
+ "signatureB64": "EpHY7s9vsEDTq7UL6GScI19N17j6Ptka9Z/27M+16kfLUlvewrxjn/k1Cl6FaG5VCXZ8yaYnyL0dEwdKi4wzBQ=="
20
+ },
21
+ "environment": {
22
+ "enforcement": "measured-tee",
23
+ "measurement": "adaad0bef62292d35197ae8db19e40685229f1a1e6070a7c77a148c4ada88ee66a1ca50819eebc2017c6716a49f2692f",
24
+ "attestation": {
25
+ "format": "aws-nitro",
26
+ "reportB64": "hEShATgioFkRIb9pbW9kdWxlX2lkeCdpLTA2NTAyNzM0MjNmZjY3NTY3LWVuYzAxYTE5OTlmNDJhMjJkZjBmZGlnZXN0ZlNIQTM4NGl0aW1lc3RhbXAbAAABoZrt6CJkcGNyc7AAWDCtqtC+9iKS01GXro2xnkBoUinxoeYHCnx3oUjEraiO5mocpQgZ7rwgF8ZxaknyaS8BWDBLTVs2YbPvwSkgkAyA4Sbkzng8Ui3mwCoqW/evOiuTJ7hndvGI5L4cHEBKEp29pJMCWDDKyCscLu+j8QrYrh3GTPEzDxvyUHTarepFivQ7E9mAJfzjsJRgkzNKkRExtaCGItADWDD+UwK5y1gm9uJGWywTP7nx46KUMZGUv4pHEWPSDdx91LwKDPm88/yRbkF8pnByVT4EWDB/NnLXYAC6yWpaRfuiml8mtOMJ0c28NmxuHHZxb2qRGqxwMMGDPYSq4Peo5aubZAIFWDAAAAAAAAAAAAAAAAAAAAAAAAAAA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DUgHCzoVJwC+v+9Pd3UGEE4eCX4GzcptT3GVub25jZfb/WGBfwI+Qg0GPGPoTfiwAT1W8k8MbKYdBAlx/mDrhWPIwRpKdMf5cL8IPBgUBRVElTzUxYYL7gEZup/qay58UZqmYnbOV6CZfvx7aQCPPi1Bg0hUYwXFphbYrALdgRgN2nR0="
27
+ }
28
+ },
29
+ "slotAllocation": {
30
+ "version": "bitgraph/slot/1",
31
+ "nonceB64": "QJaBvIx2Xv3SfrwE1hVrDAWO36p8QYRTS6oqmujBFDQ=",
32
+ "counter": "303",
33
+ "epochId": "KmoEizbgaaeMeM+RMn6VuHvghxj9ZfyR9MV+hEpCrbs=",
34
+ "publicKeyB64": "8K5C0ftI8MqLHTClyHX3PqOCli7VE0gIaFttjwL2plY=",
35
+ "chainId": "bitgraph:main",
36
+ "signatureB64": "4Y4oJS6teQefZYaQKCJ4QEZKCx+bK4im/uvzrKMrrzcUftPMI9NmWDVLCPhm2kOgLmdHvxFQPotsrAZEex91CA=="
37
+ },
38
+ "proofHash": "ta/OP52vg1IBws6FScAvr/vT3d1BhBOHgl+Bs3KbU9w="
39
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Retired images and published writers (measurements.ts).
3
+ *
4
+ * cd packages/verify && npx tsc -p . && node --test dist/__tests__/measurements-windows.test.js
5
+ */
6
+
7
+ import { test } from "node:test";
8
+ import { strict as assert } from "node:assert";
9
+ import { PUBLISHED_ENCLAVE_MEASUREMENTS, imageIsAtomic, imageRetiredAfterMs, isPublishedWriter } from "../measurements.js";
10
+
11
+ const byVersion = (v: string) => PUBLISHED_ENCLAVE_MEASUREMENTS.find((m) => m.version === v)!;
12
+
13
+ test("an image is accepted until a week after the next went live; the newest has no end", () => {
14
+ const v12 = imageRetiredAfterMs(byVersion("v12").pcr0)!;
15
+ assert.equal(new Date(v12).toISOString(), "2026-10-26T23:59:59.999Z"); // v13 went live 2026-10-19
16
+ assert.equal(imageRetiredAfterMs(byVersion("v13").pcr0), null);
17
+ assert.equal(imageRetiredAfterMs("00".repeat(48)), null);
18
+ });
19
+
20
+ test("atomic from v11 on", () => {
21
+ assert.equal(imageIsAtomic("v10"), false);
22
+ assert.equal(imageIsAtomic("v11"), true);
23
+ assert.equal(imageIsAtomic("v13"), true);
24
+ });
25
+
26
+ test("published writers: address and chain, any case", () => {
27
+ assert.equal(isPublishedWriter("0xF3972408D853c975F86351C311f4310220bbF2a3", 8453), true);
28
+ assert.equal(isPublishedWriter("0xf3972408d853c975f86351c311f4310220bbf2a3", 84532), false);
29
+ assert.equal(isPublishedWriter("0x" + "ab".repeat(20), 8453), false);
30
+ assert.equal(isPublishedWriter(undefined, 8453), false);
31
+ });
@@ -461,9 +461,10 @@ test("build: the bracket is cut from the records by the verifier's rules, and th
461
461
  });
462
462
 
463
463
  test("build: not ready until a qualifying ceiling read exists", async () => {
464
- const { e, bundle } = await scenario([{ read: "base", n: 0 }, { file: true }, { read: "base", n: 1, lagS: 7 }]);
464
+ // Another record between the read and the file: the read is not this file's own floor (a drop's floor, below).
465
+ const { e, bundle } = await scenario([{ read: "base", n: 0 }, { other: true }, { file: true }, { read: "base", n: 1, lagS: 7 }]);
465
466
  const { lines, genesis } = linesOf(bundle);
466
- const built = buildTimelineBundle({ lines, counter: bundle.proofs[1]!.commit.counter!, genesis, nitroTimeMs: (p) => e.nitroMs.get(String(p.commit.counter)) ?? null });
467
+ const built = buildTimelineBundle({ lines, counter: bundle.proofs[2]!.commit.counter!, genesis, nitroTimeMs: (p) => e.nitroMs.get(String(p.commit.counter)) ?? null });
467
468
  assert.equal(built.ok, false);
468
469
  if (built.ok) return;
469
470
  assert.equal(built.retryable, true);
@@ -493,3 +494,34 @@ test("build: a lost record cannot be bridged; a block read is not a file", async
493
494
  const read = buildTimelineBundle({ lines, counter: bundle.proofs[0]!.commit.counter!, genesis, nitroTimeMs });
494
495
  assert.equal(!read.ok && read.reason, "that record is a block read, not a file");
495
496
  });
497
+
498
+ /* A drop's own floor (2026-11-02): the host binds a Base read right before each file, so the file's prevB64 is that
499
+ read's hash and no ceiling read follows. */
500
+ const dropLines = (bundle: TimelineBundle): TimelineRecordLine[] =>
501
+ bundle.proofs.map((proof, i): TimelineRecordLine => {
502
+ const blockFile = bundle.blockFiles[String(i)];
503
+ return blockFile !== undefined ? { kind: "block", proof, blockFile } : { kind: "file", proof };
504
+ });
505
+
506
+ test("a drop's floor: a Base read right before the file is the whole bundle, the floor checked and the ceiling left to the Base write", async () => {
507
+ const { e, bundle, lookups } = await scenario([{ read: "base", n: 0 }, { file: true }]);
508
+ const genesis: TimelineRecordLine = { kind: "genesis", proof: bundle.genesis!.proof, genesisFile: bundle.genesis!.file };
509
+ const built = buildTimelineBundle({ lines: dropLines(bundle), counter: bundle.proofs[1]!.commit.counter!, genesis, nitroTimeMs: (p) => e.nitroMs.get(String(p.commit.counter)) ?? null });
510
+ assert.ok(built.ok, built.ok ? "" : built.reason);
511
+ assert.equal(built.bundle.proofs.length, 2);
512
+ assert.equal(built.bundle.target, 1);
513
+ assert.equal(built.bundle.proofs[1]!.commit.prevB64, computeChainHash(built.bundle.proofs[0]!));
514
+ const r = await verifyTimelineBundle({ bundle: built.bundle, lookups, attested: e.attested });
515
+ assert.equal(r.status, "unconfirmed");
516
+ assert.deepEqual(r.reasons, []);
517
+ assert.equal(r.floor?.index, 0);
518
+ assert.equal(r.floor?.number, 37_500_000);
519
+ assert.equal(r.ceiling, null);
520
+ });
521
+
522
+ test("a drop's floor must be the record right before the file: one more record between them and the bundle waits for a ceiling read", async () => {
523
+ const { e, bundle } = await scenario([{ read: "base", n: 0 }, { other: true }, { file: true }]);
524
+ const built = buildTimelineBundle({ lines: dropLines(bundle), counter: bundle.proofs[2]!.commit.counter!, nitroTimeMs: (p) => e.nitroMs.get(String(p.commit.counter)) ?? null });
525
+ assert.equal(built.ok, false);
526
+ assert.equal(!built.ok && built.retryable, true);
527
+ });
package/src/attested.ts CHANGED
@@ -14,7 +14,8 @@
14
14
  * AWS Nitro root, every certificate valid at the document's own instant, the PCR0 the proof declares, and
15
15
  * user_data equal to SHA-256 of the signed body, so the document is about this proof and no other;
16
16
  * 3. the image: the PCR0 inside the hardware-signed document must be one the caller accepts, by default an image
17
- * BitGraph published (measurements.ts). A valid attestation from some other enclave is not BitGraph's.
17
+ * BitGraph published (measurements.ts). A valid attestation from some other enclave is not BitGraph's, nor is one
18
+ * from a retired image that the hardware dated after the image's window closed.
18
19
  *
19
20
  * Valid means: these bytes (when given) were bound at this position by the published BitGraph enclave image, as the
20
21
  * AWS hardware attests. It says nothing about when or how the content was made.
@@ -23,8 +24,8 @@
23
24
  import type { BitGraphProof, VerificationPolicy } from "./types.js";
24
25
  import { verify, verifyProofIntegrity, createVerificationContext, type VerificationContext } from "./verifier.js";
25
26
  import { verifyNitroAttestation, type NitroCheck } from "./nitro.js";
26
- import { computeSignedBodyHash } from "./proof-hash.js";
27
- import { PUBLISHED_PCR0S, publishedMeasurement } from "./measurements.js";
27
+ import { buildSignedBody, computeSignedBodyHash } from "./proof-hash.js";
28
+ import { PUBLISHED_ENCLAVE_MEASUREMENTS, PUBLISHED_PCR0S, publishedMeasurement, imageIsAtomic, imageRetiredAfterMs } from "./measurements.js";
28
29
  import { sha256 } from "@noble/hashes/sha256";
29
30
  import { checkTreeMember, treeMemberOf, treeRootTextBytes } from "./tree-member.js";
30
31
 
@@ -50,8 +51,8 @@ export interface AttestedResult {
50
51
  checks: NitroCheck[];
51
52
  /** The PCR0 inside the hardware-signed document (lowercase hex), when it could be read. */
52
53
  pcr0: string | null;
53
- /** The published image that PCR0 names, when it is one of BitGraph's. */
54
- image: { version: string; since: string } | null;
54
+ /** The published image that PCR0 names, when it is one of BitGraph's; atomic from v11 on. */
55
+ image: { version: string; since: string; atomic: boolean } | null;
55
56
  /** The document's own signed time (ms since the epoch): when the enclave bound this proof. */
56
57
  attestedAtMs: number | null;
57
58
  /** Whether the bytes were compared with the proof's digest. */
@@ -61,8 +62,25 @@ export interface AttestedResult {
61
62
  treeMember?: { index: number; files: number };
62
63
  }
63
64
 
64
- /** Images from v11 on make every proof atomic; a proof from one must be in the atomic form. */
65
- const ATOMIC_FROM = new Set(["v11", "v12", "v13"]);
65
+ /**
66
+ * From v13 on, the enclave builds the whole signed body itself, and it holds only strings, booleans and objects, with
67
+ * printable ASCII in every key and string. A body outside that is refused before its hash is trusted, so every
68
+ * canonical-JSON implementation (this one, spec/tools/check.py) hashes it to the same bytes.
69
+ */
70
+ const STRICT_BODY_FROM = PUBLISHED_ENCLAVE_MEASUREMENTS.findIndex((m) => m.version === "v13");
71
+ const PRINTABLE_ASCII = /^[\x20-\x7e]*$/;
72
+
73
+ function strictBodyProblem(value: unknown, path: string): string | null {
74
+ if (typeof value === "boolean") return null;
75
+ if (typeof value === "string") return PRINTABLE_ASCII.test(value) ? null : `${path} holds a character outside printable ASCII`;
76
+ if (value === null || typeof value !== "object" || Array.isArray(value)) return `${path} is not a string, boolean or object`;
77
+ for (const [k, v] of Object.entries(value)) {
78
+ if (!PRINTABLE_ASCII.test(k)) return `${path} has a key outside printable ASCII`;
79
+ const p = strictBodyProblem(v, `${path}.${k}`);
80
+ if (p) return p;
81
+ }
82
+ return null;
83
+ }
66
84
 
67
85
  export async function verifyAttested(opts: AttestedOptions): Promise<AttestedResult> {
68
86
  const { proof } = opts;
@@ -74,7 +92,7 @@ export async function verifyAttested(opts: AttestedOptions): Promise<AttestedRes
74
92
  let treeMember: AttestedResult["treeMember"];
75
93
  const out = (valid: boolean, reason: string | undefined, checks: NitroCheck[], pcr0: string | null, attestedAtMs: number | null): AttestedResult => {
76
94
  const pub = pcr0 ? publishedMeasurement(pcr0) : null;
77
- return { valid, ...(reason !== undefined ? { reason } : {}), checks, pcr0, image: pub ? { version: pub.version, since: pub.since } : null, attestedAtMs, artifactBinding, ...(treeMember ? { treeMember } : {}) };
95
+ return { valid, ...(reason !== undefined ? { reason } : {}), checks, pcr0, image: pub ? { version: pub.version, since: pub.since, atomic: imageIsAtomic(pub.version) } : null, attestedAtMs, artifactBinding, ...(treeMember ? { treeMember } : {}) };
78
96
  };
79
97
 
80
98
  // 2 first, because it decides 1's atomic rule: the hardware's word about which image made this proof.
@@ -102,6 +120,18 @@ export async function verifyAttested(opts: AttestedOptions): Promise<AttestedRes
102
120
  if (!accepted.includes(pcr0)) {
103
121
  return out(false, opts.pcr0 ? `PCR0 ${pcr0.slice(0, 16)}… is not an image this verifier accepts` : `PCR0 ${pcr0.slice(0, 16)}… is not an enclave image BitGraph published`, n.checks, pcr0, attestedAtMs);
104
122
  }
123
+ // A retired image, by default: accepted only for proofs the hardware dated inside its window (measurements.ts).
124
+ // A caller that names its own images decides for itself.
125
+ const retiredAfter = opts.pcr0 ? null : imageRetiredAfterMs(pcr0);
126
+ if (retiredAfter !== null && attestedAtMs !== null && attestedAtMs > retiredAfter) {
127
+ const v = publishedMeasurement(pcr0)?.version ?? "this image";
128
+ return out(false, `${v} was retired; the hardware dated this proof ${new Date(attestedAtMs).toISOString()}, after its window closed ${new Date(retiredAfter).toISOString()}`, n.checks, pcr0, attestedAtMs);
129
+ }
130
+ const imageAt = PUBLISHED_ENCLAVE_MEASUREMENTS.findIndex((m) => m.pcr0 === pcr0);
131
+ if (STRICT_BODY_FROM >= 0 && imageAt >= STRICT_BODY_FROM) {
132
+ const problem = strictBodyProblem(buildSignedBody(proof), "the signed body");
133
+ if (problem) return out(false, problem, n.checks, pcr0, attestedAtMs);
134
+ }
105
135
 
106
136
  if (member && bytes !== undefined) {
107
137
  if (!checkTreeMember(proof, sha256(bytes), member)) return out(false, "the file is not in the tree this proof binds", n.checks, pcr0, attestedAtMs);
@@ -111,7 +141,7 @@ export async function verifyAttested(opts: AttestedOptions): Promise<AttestedRes
111
141
 
112
142
  // 1. The proof's own consistency, with the atomic rule where it applies.
113
143
  const image = publishedMeasurement(pcr0);
114
- const atomic = proof.commit?.atomic === true || (image !== null && ATOMIC_FROM.has(image.version));
144
+ const atomic = proof.commit?.atomic === true || (image !== null && imageIsAtomic(image.version));
115
145
  const trustAnchors: VerificationPolicy = { ...(opts.trustAnchors ?? {}), ...(atomic ? { requireAtomic: true } : {}) };
116
146
  const context = opts.context ?? createVerificationContext();
117
147
  const r = bytes !== undefined
@@ -58,7 +58,7 @@ import { sha256 } from "@noble/hashes/sha256";
58
58
  import { verifyCarrierV5 } from "./carrier5.js";
59
59
  import {
60
60
  parseCarrier, checkFloorBinding, checkCeilingBinding, anchorMessageBytes,
61
- verifyWitnessHeader, carrierBounds, innerDigestMatches, carrierVersionOf, CARRIER_VERSION_4, CARRIER_VERSION_5,
61
+ verifyWitnessHeader, carrierBounds, innerDigestMatches, carrierVersionOf, CARRIER_VERSION_4, CARRIER_VERSION_5, CARRIER_VERSION_6,
62
62
  type CarrierBounds, type CarrierPayload,
63
63
  } from "./carrier.js";
64
64
 
@@ -116,7 +116,7 @@ export interface CarrierVerifyResult {
116
116
  floorTimeWithheld?: string | null;
117
117
  /** "ok" | "none" | "corrupt" — whether the bytes carried a readable block at all. */
118
118
  carrier: "ok" | "none" | "corrupt";
119
- version: 1 | 2 | 3 | 4 | 5 | null;
119
+ version: 1 | 2 | 3 | 4 | 5 | 6 | null;
120
120
  /** v4: the leaf the committed bytes are, once its path reached the signed root; null otherwise (and on v1 to v3). */
121
121
  member?: TreeVerifyResult["member"];
122
122
  /** v4: "content" when the bytes carry the commitment (a placed leaf), "record" when kept as is; null when the bytes were not matched or not in hand. */
@@ -170,8 +170,8 @@ function envelopeSentence(outer: Uint8Array, inner: Uint8Array, member = false):
170
170
  * as not carried, and everything else is judged exactly as for a file.
171
171
  */
172
172
  export async function verifyCarrierPayload(payload: CarrierPayload, inner: Uint8Array | null, opts: CarrierVerifyOptions = {}): Promise<CarrierVerifyResult> {
173
- // v5: its own path (carrier5.ts), with no floor anchor to look for.
174
- if (payload.carrier === CARRIER_VERSION_5) return verifyCarrierV5(payload, inner, { ...(opts.pins?.pcr0 ? { pcr0: opts.pins.pcr0 } : {}), ...(opts.pins?.rootDer ? { rootDer: opts.pins.rootDer } : {}) });
173
+ // v5 and v6: their own path (carrier5.ts), with no floor anchor to look for.
174
+ if (payload.carrier === CARRIER_VERSION_5 || payload.carrier === CARRIER_VERSION_6) return verifyCarrierV5(payload, inner, { ...(opts.pins?.pcr0 ? { pcr0: opts.pins.pcr0 } : {}), ...(opts.pins?.rootDer ? { rootDer: opts.pins.rootDer } : {}) });
175
175
  const claims: CarrierClaim[] = [];
176
176
  const add = (id: string, name: string, result: ClaimResult, restsOn: string, detail: string, level: "offline" | "confirmed" = "offline") =>
177
177
  claims.push({ id, name, result, restsOn, detail, level });
@@ -182,7 +182,7 @@ export async function verifyCarrierPayload(payload: CarrierPayload, inner: Uint8
182
182
  } catch (e) {
183
183
  const detail = `a part of this proof block is malformed: ${e instanceof Error ? e.message : String(e)}`;
184
184
  add("wellformed", "Every part of the proof block is well formed", "FALSE", "", detail);
185
- let version: 1 | 2 | 3 | 4 | 5 | null = null;
185
+ let version: 1 | 2 | 3 | 4 | 5 | 6 | null = null;
186
186
  try { version = carrierVersionOf(payload); } catch { /* unreadable */ }
187
187
  const ceilingStatus = (payload as { ceiling?: { status?: unknown } } | null)?.ceiling?.status;
188
188
  return {
package/src/carrier.ts CHANGED
@@ -104,7 +104,15 @@ export const CARRIER_VERSION_4 = "bitgraph-carrier/4";
104
104
  * Checked by carrier5.ts.
105
105
  */
106
106
  export const CARRIER_VERSION_5 = "bitgraph-carrier/5";
107
- export type CarrierVersion = typeof CARRIER_VERSION | typeof CARRIER_VERSION_2 | typeof CARRIER_VERSION_3 | typeof CARRIER_VERSION_4 | typeof CARRIER_VERSION_5;
107
+ /**
108
+ * v6 (2026-11-02): v5 and the file's own Base floor. Every drop on bitgraph.ing now binds the newest Base block (a
109
+ * bitgraph-block-read/1 file) on the counts right before the file, and the file's signed prevB64 is that read's hash.
110
+ * The block carries the read's proof and its block file beside the file's proof, so the floor checks offline too:
111
+ * { carrier, proof, ceilingInTime, floorInTime }, floorInTime { status: "present", proof, blockFile } or { status:
112
+ * "none" } for a record bound without one. Checked by carrier5.ts.
113
+ */
114
+ export const CARRIER_VERSION_6 = "bitgraph-carrier/6";
115
+ export type CarrierVersion = typeof CARRIER_VERSION | typeof CARRIER_VERSION_2 | typeof CARRIER_VERSION_3 | typeof CARRIER_VERSION_4 | typeof CARRIER_VERSION_5 | typeof CARRIER_VERSION_6;
108
116
  /** The sidecar and pointer formats a v2 block carries; their shapes are checked by their own modules. */
109
117
  export const CEILING_SIDECAR_VERSION = "bitgraph-ceiling/1";
110
118
  export const SETTLEMENT_POINTER_VERSION = "bitgraph-settlement/1";
@@ -316,9 +324,14 @@ function treeShapeError(t: unknown): string | null {
316
324
  function payloadShapeError(p: unknown): string | null {
317
325
  const o = record(p);
318
326
  if (o === null) return "payload is not an object";
319
- if (o["carrier"] === CARRIER_VERSION_5) {
320
- // v5: exactly the proof and its ceiling in time; whether either holds is verifyCarrier's question.
321
- if (Object.keys(o).sort().join(",") !== "carrier,ceilingInTime,proof") return `a ${CARRIER_VERSION_5} block holds exactly carrier, proof and ceilingInTime`;
327
+ if (o["carrier"] === CARRIER_VERSION_5 || o["carrier"] === CARRIER_VERSION_6) {
328
+ // v5: exactly the proof and its ceiling in time; v6 adds the floor in time. Whether any holds is verifyCarrier's question.
329
+ const v6 = o["carrier"] === CARRIER_VERSION_6;
330
+ if (Object.keys(o).sort().join(",") !== (v6 ? "carrier,ceilingInTime,floorInTime,proof" : "carrier,ceilingInTime,proof")) return v6 ? `a ${CARRIER_VERSION_6} block holds exactly carrier, proof, ceilingInTime and floorInTime` : `a ${CARRIER_VERSION_5} block holds exactly carrier, proof and ceilingInTime`;
331
+ if (v6) {
332
+ const f = record(o["floorInTime"]);
333
+ if (f === null || !(f["status"] === "none" || (f["status"] === "present" && record(f["proof"]) !== null && typeof f["blockFile"] === "string"))) return "floorInTime must be present (with its proof and block file) or none";
334
+ }
322
335
  if (record(o["proof"]) === null) return "payload carries no proof object";
323
336
  const c = record(o["ceilingInTime"]);
324
337
  if (c === null || !(c["status"] === "unfetched" || (c["status"] === "present" && record(c["sidecar"]) !== null))) return "ceilingInTime must be present (with its sidecar) or unfetched";
@@ -386,8 +399,8 @@ function payloadShapeError(p: unknown): string | null {
386
399
  }
387
400
 
388
401
  /** 1, 2, 3 or 4, from a parsed payload. */
389
- export function carrierVersionOf(payload: CarrierPayload): 1 | 2 | 3 | 4 | 5 {
390
- return payload.carrier === CARRIER_VERSION_5 ? 5 : payload.carrier === CARRIER_VERSION_4 ? 4 : payload.carrier === CARRIER_VERSION_3 ? 3 : payload.carrier === CARRIER_VERSION_2 ? 2 : 1;
402
+ export function carrierVersionOf(payload: CarrierPayload): 1 | 2 | 3 | 4 | 5 | 6 {
403
+ return payload.carrier === CARRIER_VERSION_6 ? 6 : payload.carrier === CARRIER_VERSION_5 ? 5 : payload.carrier === CARRIER_VERSION_4 ? 4 : payload.carrier === CARRIER_VERSION_3 ? 3 : payload.carrier === CARRIER_VERSION_2 ? 2 : 1;
391
404
  }
392
405
 
393
406
  export function parseCarrier(bytes: Uint8Array): CarrierParse {