Cryptographic payload attestation
Rehedge 3 confirmed-absent security/ mechanisms to planned/intended language (capability-based-security, crypto-attestation, five-stage-supply-chain Stages 2/3), per operator direction and cross-archive verification sweep
@@ -8,63 +8,53 @@ content_type: topic quality: complete short_description: "Mechanism by which PointSav edge nodes prove published text integrity to any viewer via client-side SHA-256 hashing, independently verifiable by any auditor." status: active bcsc_class: public-disclosure-safe bcsc_class: forward-looking last_edited: 2026-07-30 editor: pointsav-engineering cites: [] paired_with: crypto-attestation.es.md --- **Major correction (2026-07-30):** this article describes a live client-side attestation feature — a browser `crypto.subtle.digest('SHA-256')` call that hashes the visible article text and displays it "live into the sidebar's metadata block." No such code exists in the wiki engine (`app-mediakit-knowledge`): a corpus-wide grep for `crypto.subtle`/`SHA-256`/`digest`/`attest` across every `.rs` and `.js` file in the crate returns zero hits. `static/app.js` (358 lines) has no hashing logic at all. The engine's real sidebar (`src/ui/layout.rs:653`, `fn sidebar(...)`) renders site navigation, category links, and the table of contents — no metadata block, no hash display. This is the same unbuilt-feature pattern already found and corrected this session in `capability-based-security.md`, `diode-standard.md`, and `genesis-protocol.md`. **Flagged as a whole-article architectural mismatch, not line-edited** — needs project-totebox confirmation of whether client-side attestation is planned or was simply never built, before this article is corrected or rewritten. **Correction — rehedged to planned/intended (2026-07-30):** this article originally described a live client-side hash-attestation feature in unhedged present tense. No such code exists: confirmed via both a single-crate check (`app-mediakit-knowledge`'s `static/app.js` and `src/ui/layout.rs` — no hashing logic anywhere; the real sidebar renders only nav/categories/TOC) and a broader cross-archive sweep for `crypto.subtle.digest`/`SHA-256` (the only match anywhere in the fleet is an unrelated save-integrity hash in `app-workplace-proforma`'s spreadsheet tool, not a wiki attestation feature). Per operator direction, the body below is rewritten to present this as planned/intended design, not current behavior. > Cryptographic payload attestation is the mechanism by which PointSav edge nodes dynamically prove the integrity of their published text content to any viewer, using client-side SHA-256 hashing so that any auditor can independently verify a disclosure has not been altered in transit. > Cryptographic payload attestation is a mechanism by which PointSav intends its edge nodes to dynamically prove the integrity of their published text content to any viewer, using client-side SHA-256 hashing so that any auditor could independently verify a disclosure has not been altered in transit. This is a planned feature, not yet implemented. **Cryptographic payload attestation** is the process by which [[pointsav-overview|PointSav]] public-facing edge nodes prove the integrity of their textual content to any viewer without requiring trust in the server delivering the content. To fulfill the platform's DARP (Direct, Auditable, Reproducible, Plain-text) requirements, all public-facing edge nodes dynamically compute and display a SHA-256 hash of their visible language content. Any institutional investor, auditor, or counterparty can independently copy the text, compute the hash locally using any SHA-256 tool, and confirm that the displayed hash matches — proving the content has not been altered between publication and the viewer's screen. The operation runs entirely in the browser, with no server involvement in the hash computation itself, which means the attestation is independent of whether the serving infrastructure is trustworthy. See also [[cryptographic-ledgers|cryptographic ledgers]] and [[zero-execution-routing|zero-execution routing]]. **Cryptographic payload attestation**, once implemented, would be the process by which [[pointsav-overview|PointSav]] public-facing edge nodes prove the integrity of their textual content to any viewer without requiring trust in the server delivering the content. The design intent, per the platform's DARP (Direct, Auditable, Reproducible, Plain-text) requirements, is for public-facing edge nodes to dynamically compute and display a SHA-256 hash of their visible language content, so any institutional investor, auditor, or counterparty could independently copy the text, compute the hash locally, and confirm the displayed hash matches. **No such mechanism exists in the wiki engine (`app-mediakit-knowledge`) or anywhere else in the monorepo today.** See also [[cryptographic-ledgers|cryptographic ledgers]] and [[zero-execution-routing|zero-execution routing]]. ## How It Works ## How it is intended to work The attestation mechanism uses the native browser `crypto.subtle.digest('SHA-256')` API: The design calls for the native browser `crypto.subtle.digest('SHA-256')` API to: 1. **Extraction:** The JavaScript engine reads the current `innerText` of the visible language block (English or Spanish). 2. **Encoding:** The text is encoded into a `Uint8Array` using UTF-8 encoding. 3. **Hashing:** The encoded array is processed through SHA-256 via `crypto.subtle.digest`. 4. **Display:** The resulting hexadecimal string is injected live into the sidebar's metadata block, visible alongside the content it attests. 1. **Extraction:** read the current visible text of the language block (English or Spanish). 2. **Encoding:** encode the text into a `Uint8Array` using UTF-8. 3. **Hashing:** process the encoded array through SHA-256. 4. **Display:** inject the resulting hash live into a metadata block beside the content it attests. The computation happens at page render time and updates whenever the visible content changes. The hash displayed is always the hash of what the viewer is currently reading, not a cached value from a prior state. None of this is implemented today — the wiki engine's static assets carry no hashing logic, and its real sidebar renders only navigation, categories, and the table of contents. ## Security Posture ## Intended security posture The attestation is zero-execution-server for the hash computation: the server delivers the JavaScript and the content, but the hash is computed by the browser using only local data. This means: Once built, the attestation would be zero-execution-server for the hash computation — the server would deliver the JavaScript and content, but the hash would be computed by the browser using only local data. The intended effect: a man-in-the-middle attacker modifying content in transit would produce a detectable hash mismatch, and any viewer with a SHA-256 calculator could independently verify the attestation. - A man-in-the-middle attacker who modified the content in transit would produce a hash mismatch that any viewer could detect. - The serving infrastructure cannot silently substitute different content without breaking the displayed hash. - Any viewer with a SHA-256 calculator can independently verify the attestation without tools provided by [[pointsav-overview|PointSav]]. ## Intended applications This satisfies the BCSC continuous-disclosure requirement that public disclosures be independently verifiable, and the ADR-07 requirement that the integrity chain for content be externally provable without access to internal infrastructure. ## Applications Cryptographic payload attestation applies to: Once implemented, cryptographic payload attestation is intended to apply to: - Public regulatory disclosures displayed on [[pointsav-overview|PointSav]]-operated edge nodes. - Content wiki articles served at `documentation.pointsav.com` where integrity verification matters to institutional readers. - Any content surface where a reader needs to confirm they are reading the published version and not an altered copy. - Content wiki articles served at `documentation.pointsav.com`. - Any content surface where a reader needs to confirm they are reading the published version. ## Limitations ## Intended limitations The attestation proves integrity at the moment of viewing — it does not prove the content was published at a specific time or that it has not been legitimately updated since a prior version. For time-stamped proof of prior content states, the [[worm-ledger-architecture|WORM ledger architecture]] ([[service-fs-architecture|service-fs]]) and monthly Rekor anchoring provide the complementary mechanism. Even once built, the attestation would only prove integrity at the moment of viewing — it would not prove the content was published at a specific time or that it has not been legitimately updated since a prior version. Time-stamped proof of prior content states already exists independently of this planned feature, via the [[worm-ledger-architecture|WORM ledger architecture]] ([[service-fs-architecture|service-fs]]) and monthly Rekor anchoring — both real, verified mechanisms. ## See also