@mikeargento/bitgraph-verify 1.28.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 (38) 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__/timeline-bundle.test.js +30 -2
  6. package/dist/__tests__/timeline-bundle.test.js.map +1 -1
  7. package/dist/carrier-verify.d.ts +1 -1
  8. package/dist/carrier-verify.d.ts.map +1 -1
  9. package/dist/carrier-verify.js +3 -3
  10. package/dist/carrier-verify.js.map +1 -1
  11. package/dist/carrier.d.ts +10 -2
  12. package/dist/carrier.d.ts.map +1 -1
  13. package/dist/carrier.js +19 -5
  14. package/dist/carrier.js.map +1 -1
  15. package/dist/carrier5.d.ts +22 -2
  16. package/dist/carrier5.d.ts.map +1 -1
  17. package/dist/carrier5.js +36 -2
  18. package/dist/carrier5.js.map +1 -1
  19. package/dist/index.d.ts +2 -2
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +2 -2
  22. package/dist/index.js.map +1 -1
  23. package/dist/timeline-export.d.ts +5 -0
  24. package/dist/timeline-export.d.ts.map +1 -1
  25. package/dist/timeline-export.js +4 -1
  26. package/dist/timeline-export.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/__tests__/carrier6.test.ts +86 -0
  29. package/src/__tests__/fixtures/carrier6/ceiling.json +73 -0
  30. package/src/__tests__/fixtures/carrier6/floor-block.json +9 -0
  31. package/src/__tests__/fixtures/carrier6/floor-proof.json +39 -0
  32. package/src/__tests__/fixtures/carrier6/proof.json +39 -0
  33. package/src/__tests__/timeline-bundle.test.ts +34 -2
  34. package/src/carrier-verify.ts +5 -5
  35. package/src/carrier.ts +19 -6
  36. package/src/carrier5.ts +43 -3
  37. package/src/index.ts +2 -2
  38. 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
+ });
@@ -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+9iKS01GXro2xnkBoUinxoeYHCnx3oUjEraiO5mocpQgZ7rwgF8ZxaknyaS8BWDBLTVs2YbPvwSkgkAyA4Sbkzng8Ui3mwCoqW/evOiuTJ7hndvGI5L4cHEBKEp29pJMCWDDKyCscLu+j8QrYrh3GTPEzDxvyUHTarepFivQ7E9mAJfzjsJRgkzNKkRExtaCGItADWDD+UwK5y1gm9uJGWywTP7nx46KUMZGUv4pHEWPSDdx91LwKDPm88/yRbkF8pnByVT4EWDB/NnLXYAC6yWpaRfuiml8mtOMJ0c28NmxuHHZxb2qRGqxwMMGDPYSq4Peo5aubZAIFWDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGWDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHWDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIWDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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tmG73WEHLHtAX35K0piDfGITP/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": "adaad0bef62292d35197ae8db19e40685229f1a1e6070a7c77a148c4ada88ee66a1ca50819eebc2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TAyNzM0MjNmZjY3NTY3LnVzLWVhc3QtMi5hd3Mubml0cm8tZW5jbGF2ZXMwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQ4aDBVHG/Gz+QtU9zf6AI1uQJHWBdeJs3HEBfdEg1FngundrV0aDJvVV0IR9KVsPB393ZeByKaLoyj93RzQwXHCfAeHSn328FMp9vQlmTYOG1VwJLouWlWtuzd/+hks5yjZjBkMBIGA1UdEwEB/wQIMAYBAf8CAQAwDgYDVR0PAQH/BAQDAgIEMB0GA1UdDgQWBBSNxM+VQ9qvFhsYD6YnxtC3PzNNszAfBgNVHSMEGDAWgBQTCCCgMeGxYfuwfPExJ9slPaTKXjAKBggqhkjOPQQDAwNoADBlAjEAxDDzfTDVJuj9yOSxavbvmDZb4nIh1dRmMyxuSzyi1WKXBeqlfpmKuyVExK/7qH/jAjB7plwNzAjN3ztyCwr3ewPYfSUEAcxtfSNJXF37h8sSjGlnzqCNwUpn0Fj/+sYjCndqcHVibGljX2tlefZpdXNlcl9kYXRhWCC1r84/na+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
+ }
@@ -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
+ });
@@ -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 {
package/src/carrier5.ts CHANGED
@@ -21,7 +21,9 @@
21
21
  */
22
22
 
23
23
  import { sha256 } from "@noble/hashes/sha256";
24
- import { CARRIER_VERSION_5, buildCarrier, type CarrierPayload, type CarrierBounds } from "./carrier.js";
24
+ import { CARRIER_VERSION_5, CARRIER_VERSION_6, buildCarrier, type CarrierPayload, type CarrierBounds } from "./carrier.js";
25
+ import { parseBlockReadFile } from "./block-read.js";
26
+ import { computeChainHash } from "./proof-hash.js";
25
27
  import { verifyAttested } from "./attested.js";
26
28
  import { verifyCeiling, type CeilingSidecar } from "./ceiling.js";
27
29
  import { checkTreeFloor, treeMemberOf } from "./tree-member.js";
@@ -32,16 +34,31 @@ export const BITGRAPH_CEILING_WRITER_V5 = "0xf3972408D853c975F86351C311f4310220b
32
34
  const BASE_CHAIN_ID = 8453;
33
35
 
34
36
  export interface CarrierV5Payload {
35
- carrier: typeof CARRIER_VERSION_5;
37
+ carrier: typeof CARRIER_VERSION_5 | typeof CARRIER_VERSION_6;
36
38
  proof: Record<string, unknown>;
37
39
  ceilingInTime: { status: "unfetched" } | { status: "present"; sidecar: Record<string, unknown> };
40
+ /** v6 only: the file's own Base floor, the block read bound on the counts right before it. */
41
+ floorInTime?: CarrierV6Floor;
38
42
  }
39
43
 
44
+ /** A drop's floor as v6 carries it: the block read's proof and the bitgraph-block-read/1 file it binds. */
45
+ export type CarrierV6Floor = { status: "none" } | { status: "present"; proof: Record<string, unknown>; blockFile: string };
46
+
40
47
  /** The v5 payload for a proof (as the ledger serves it for these bytes) and its ceiling sidecar, if written yet. */
41
48
  export function assembleCarrierV5Payload(proof: Record<string, unknown>, ceilingSidecar: Record<string, unknown> | null): CarrierV5Payload {
42
49
  return { carrier: CARRIER_VERSION_5, proof, ceilingInTime: ceilingSidecar ? { status: "present", sidecar: ceilingSidecar } : { status: "unfetched" } };
43
50
  }
44
51
 
52
+ /** The v6 payload: v5's, and the file's own floor (the block read before it), or none. */
53
+ export function assembleCarrierV6Payload(proof: Record<string, unknown>, ceilingSidecar: Record<string, unknown> | null, floor: { proof: Record<string, unknown>; blockFile: string } | null): CarrierV5Payload {
54
+ return { ...assembleCarrierV5Payload(proof, ceilingSidecar), carrier: CARRIER_VERSION_6, floorInTime: floor ? { status: "present", proof: floor.proof, blockFile: floor.blockFile } : { status: "none" } };
55
+ }
56
+
57
+ /** The BitGraphed file, v6: the bound bytes, unchanged, followed by the v6 block. */
58
+ export function buildBitGraphedFileV6(bytes: Uint8Array, proof: Record<string, unknown>, ceilingSidecar: Record<string, unknown> | null, floor: { proof: Record<string, unknown>; blockFile: string } | null): Uint8Array {
59
+ return buildCarrier(bytes, assembleCarrierV6Payload(proof, ceilingSidecar, floor) as unknown as CarrierPayload);
60
+ }
61
+
45
62
  /** The BitGraphed file: the bound bytes, unchanged, followed by the v5 block. */
46
63
  export function buildBitGraphedFileV5(bytes: Uint8Array, proof: Record<string, unknown>, ceilingSidecar: Record<string, unknown> | null): Uint8Array {
47
64
  return buildCarrier(bytes, assembleCarrierV5Payload(proof, ceilingSidecar) as unknown as CarrierPayload);
@@ -79,6 +96,29 @@ export async function verifyCarrierV5(payloadIn: CarrierPayload, inner: Uint8Arr
79
96
  }
80
97
  }
81
98
 
99
+ // 3b. v6: the file's own floor. The block read bound on the counts right before the file: its proof is BitGraph's,
100
+ // it binds its block file, and the file's signed prevB64 is its hash, so nothing was bound between them. The block's
101
+ // hash could not be known before the block, so the file was bound after it. Whether the block is on Base's canonical
102
+ // chain is a check against Base.
103
+ const fl = payload.floorInTime;
104
+ if (fl?.status === "present") {
105
+ const fp = fl.proof as unknown as BitGraphProof;
106
+ const text = new TextEncoder().encode(fl.blockFile);
107
+ const fr = await verifyAttested({ proof: fp, bytes: text, ...(opts.pcr0 ? { pcr0: opts.pcr0 } : {}), ...(opts.rootDer ? { rootDer: opts.rootDer } : {}) });
108
+ const f = parseBlockReadFile(fl.blockFile);
109
+ const sameEpoch = fp.commit?.epochId === proof.commit?.epochId && f?.epochId === proof.commit?.epochId;
110
+ const next = !!fp.commit?.counter && !!proof.commit?.slotCounter && BigInt(fp.commit.counter) + 1n === BigInt(proof.commit.slotCounter);
111
+ const chained = proof.commit?.prevB64 === computeChainHash(fp);
112
+ const ok = fr.valid && f !== null && f.chain === "base" && f.chainId === "eip155:8453" && sameEpoch && next && chained;
113
+ const why = !fr.valid ? `the floor's proof does not verify: ${fr.reason ?? "invalid"}` : f === null ? "the floor's block file is not a bitgraph-block-read/1 file" : f.chain !== "base" || f.chainId !== "eip155:8453" ? "the floor is not a Base mainnet block" : !sameEpoch ? "the floor is not of this file's epoch" : !next ? "the floor is not the record right before this file" : "this file's prevB64 is not the floor's hash";
114
+ add("floor.read", "The floor is the Base block read bound right before this file", ok ? "TRUE" : "FALSE", "BitGraph's previous record, chained by prevB64", ok ? `BitGraph #${fp.commit.counter} bound Base block ${f!.number} (${f!.hash.slice(0, 12)}…), and this file's signed prevB64 is that record's hash: the bind came after the block existed` : why);
115
+ if (ok) {
116
+ const after = r.attestedAtMs !== null && r.attestedAtMs >= f!.timestamp * 1000;
117
+ add("floor.time", "The bind came after the floor block's time", after ? "TRUE" : "FALSE", "the AWS Nitro attestation's time", after ? `bound ${iso(Math.floor(r.attestedAtMs! / 1000))}, block ${iso(f!.timestamp)}` : "the attested bind time is not after the block's time");
118
+ notBefore = { chain: "base", blockNumber: f!.number, blockHash: f!.hash, timestamp: f!.timestamp };
119
+ }
120
+ } else if (fl?.status === "none") add("floor.read", "A Base floor", "NOT_CARRIED", "", "this record was bound without a Base block read before it");
121
+
82
122
  // 4. The ceiling: this proof's hash is in the batch the Base transaction carries, and that transaction is in its block.
83
123
  let existedBy: CarrierBounds["existedBy"] = null;
84
124
  if (payload.ceilingInTime.status === "present") {
@@ -95,7 +135,7 @@ export async function verifyCarrierV5(payloadIn: CarrierPayload, inner: Uint8Arr
95
135
  ? `BitGraph #${proof.commit?.counter}: ${where}, bound by BitGraph's published enclave image ${r.image?.version ?? ""}${notBefore ? ` after Base block ${notBefore.blockNumber}` : ""}${existedBy ? ` and written to Base by block ${existedBy.blockNumber}` : ""}. Check those blocks on Base to place it in real time.`
96
136
  : `This BitGraphed file does not check: ${failed.map((c) => c.detail).join("; ") || "the proof did not verify"}.`;
97
137
  return {
98
- verdict, carrier: "ok", version: 5, reasons: claims.filter((c) => c.result !== "TRUE" && c.result !== "NOT_CARRIED").map((c) => c.detail),
138
+ verdict, carrier: "ok", version: payload.carrier === CARRIER_VERSION_6 ? 6 : 5, reasons: claims.filter((c) => c.result !== "TRUE" && c.result !== "NOT_CARRIED").map((c) => c.detail),
99
139
  bounds: notBefore ? { notBefore, notAfter: null, existedBy, settledBy: null } : null,
100
140
  ceiling: null, claims, reading, payload: payloadIn, inner,
101
141
  };
package/src/index.ts CHANGED
@@ -150,8 +150,8 @@ export type { CarrierV3Parts } from "./carrier-assemble.js";
150
150
  /* bitgraph-carrier/4 (2026-10-11): one member of a tree/1 BitGraph carries its own proof: the bytes are the leaf's, the block walks them to the signed root document. */
151
151
  export { CARRIER_VERSION_4, memberArtifactDigest } from "./carrier.js";
152
152
  // The BitGraphed file for atomic proofs: the proof (with its tree path and floor leaf) and its Base ceiling (2026-10-20).
153
- export { CARRIER_VERSION_5 } from "./carrier.js";
154
- export { assembleCarrierV5Payload, buildBitGraphedFileV5, verifyCarrierV5, type CarrierV5Payload } from "./carrier5.js";
153
+ export { CARRIER_VERSION_5, CARRIER_VERSION_6 } from "./carrier.js";
154
+ export { assembleCarrierV5Payload, buildBitGraphedFileV5, assembleCarrierV6Payload, buildBitGraphedFileV6, verifyCarrierV5, type CarrierV5Payload, type CarrierV6Floor } from "./carrier5.js";
155
155
  export { checkTreeFloor, BASE_BLOCK_FORMAT, type TreeFloor, type TreeFloorBlock } from "./tree-member.js";
156
156
  export type { CarrierTree } from "./carrier.js";
157
157
  export { assembleCarrierV4Payload } from "./carrier-assemble.js";
@@ -12,6 +12,11 @@
12
12
  * Not ready yet (retryable) when the file has no qualifying ceiling read after it in the records given: a ceiling
13
13
  * needs a block stamped after the file, read within the lag limits, so a bundle can be made a few seconds after the
14
14
  * file is bound. A gap in the records (a lost record) cannot be bridged and is not retryable.
15
+ *
16
+ * A drop's own floor (2026-11-02): when the record right before the file is a Base block read, it is the floor the
17
+ * host bound for that drop, and the file's prevB64 is that read's hash. Such a file needs no ceiling read (its
18
+ * ceiling is its own Base write, ceiling.ts): the bundle is the read and the file, and verifyTimelineBundle reports it
19
+ * unconfirmed only for the missing ceiling read, with the floor checked.
15
20
  */
16
21
 
17
22
  import type { BitGraphProof } from "./types.js";
@@ -92,17 +97,19 @@ export function buildTimelineBundle(args: {
92
97
  };
93
98
 
94
99
  const notes: string[] = [];
95
- let chosen: { chain: BlockReadChain; floor: number; ceiling: number } | null = null;
100
+ let chosen: { chain: BlockReadChain; floor: number; ceiling: number | null } | null = null;
96
101
  for (const chain of ["base", "ethereum"] as const) {
97
102
  const p = pick(chain);
98
103
  if (p.ceiling !== null) { chosen = { chain, floor: p.floor!, ceiling: p.ceiling }; break; }
99
104
  notes.push(p.floor === null ? `no ${chain} read before the file in these records` : `no qualifying ${chain} ceiling after the file yet`);
100
105
  }
106
+ const own = reads.get(t - 1);
107
+ if (!chosen && own && own.chain === "base" && own.timestamp * 1000 <= fileMs) chosen = { chain: "base", floor: t - 1, ceiling: null };
101
108
  if (!chosen) return { ok: false, retryable: true, reason: `not ready: ${notes.join("; ")}` };
102
109
  if (chosen.chain !== "base") notes.unshift("bracketed on Ethereum: Base had no qualifying ceiling");
103
110
  else notes.length = 0;
104
111
 
105
- const run = lines.slice(chosen.floor, chosen.ceiling + 1);
112
+ const run = lines.slice(chosen.floor, (chosen.ceiling ?? t) + 1);
106
113
  const s = verifyStretch(run.map((l) => l.proof));
107
114
  if (!s.ok) return { ok: false, retryable: false, reason: `the records are not one unbroken run: ${s.reasons[0]}` };
108
115