Every step, in detail
A technical breakdown of the prototype, for readers who want to check how it works: each UI action, what it triggers, the algorithm or format, the technology or browser API, exactly which data leaves the device and to which host, and the functions to look for in the code. Plain-language explanations of the terms are in the glossary.
- Pipeline. Canonical UTF-8 text
T→ framed plaintextF(fixed size class) →C = F ⊕ Kwith a padKof the same length → Pedersen commitmentComtoFon ristretto255 → public package (the locked record)P= header ‖Com‖C, identified bypackage_digest = SHA-256(P). The key file is a TLV bundle (digest, pad, openingr, optional OpenTimestamps proof, storage locator and receipt, optionallyP) ending in a SHA-256 integrity record, optionally wrapped with scrypt and AES-256-GCM. - Network. Steps 1–6 make no requests. Only the date stamp (OpenTimestamps calendars) and the upload (an ANS-104 data item to a bundler) send data, each on an explicit click. Opening a key file later queries the calendars, two block explorers and a storage gateway. Every request is a
fetchwithcredentials: 'omit',referrerPolicy: 'no-referrer',cache: 'no-store',redirect: 'error'and a timeout, and both the hosted page and the single-file app set a Content-Security-Policy whoseconnect-srclists only these services. - Prototype limits. Sealing uses the test suite (
0xFFFF, pad fromcrypto.getRandomValues), so every record is marked test only. Uploads go to the ar.io test network (about 3-day retention, never settled on Arweave); the long-term path is disabled at build time (SEALREC_MAINNET_STORAGE= false) pending a legal review. Don't use it for real records yet. - Reading the table. V2–V9 are the verifier's checks, named where they appear. The “In the code” column gives function names: the app ships unminified in
it-happened.html, so they can be searched there.
Button the exact label on screen
test only test suite or test network
Red text data that leaves the device
Rows like 6a are side paths
| # | Screen | UI | Action triggered | Algorithm / format | Technology / API | Data that leaves the device | In the code |
|---|---|---|---|---|---|---|---|
| Write a record | |||||||
| 1 | Write | Types in the text box | Text is held in page memory only; “about N page(s)” is shown. | UTF-8 length count | DOM textarea, TextEncoder | nothing | screenWrite |
| 1a | Write | Turn on drafts then Save draft to a file / Load a draft file / Turn drafts off | Saves the text as an unprotected draft.txt, or reads a chosen file into the box. The Done screen later reminds the user to delete the draft. | none (plain text) | Blob + <a download>; file window (pickFile) | nothing | screenWrite, download, pickFile |
| 1b | Write | Use an example text, then Next example (on the last: First example) · Write your own | Fills the box with one of three fixed, invented examples and locks it (“Example text. This record will be marked as a synthetic example.”). A record sealed from an unchanged example gets the SYNTHETIC flag, so opening it shows “Synthetic example: not a real record.” Write your own clears the box and unlocks it. | Flags byte in the frame and package header: FLAG_SYNTHETIC (0x01) | Read-only textarea; in-page state | nothing | useExample, exampleBox |
| 2 | Write | Continue | Refuses empty text (“Write something first.”), else moves to the Seal screen (“Before you seal”). | none | In-page state | nothing | screenWrite |
| 3 | Seal (“Before you seal”) | automatic on opening the screen | Builds the canonical text T and shows exactly what will be sealed, with notices for invisible characters (Show them). | Canonical text: exact UTF-8, BOM dropped, CRLF/CR → LF, control characters refused, no Unicode normalization | JavaScript string handling | nothing | canonicalize |
| 4 | Seal (“Before you seal”) | Protection (collapsed, shows “Test mode”; opens the three modes, where only “Test mode” is selectable and “Computer random” and “One-time pad” show “Not in this prototype.”) | Shows or hides the protection choices. Replaces the former separate Protection step. | none | In-page state | nothing | protectionModes |
| Seal (one click, no network) | |||||||
| 5 | Seal | Seal | Chooses the size class and builds the framed plaintext F (12-byte header + text, zero-padded). | Size classes 4 096 / 16 384 / 65 536 bytes; smallest that fits | TypeScript, Uint8Array | nothing | chooseSizeClass, buildFrame |
| 5.1 | Seal | (same click) | Draws the pad K, exactly as long as F, and computes the ciphertext. | C = F ⊕ K (XOR); pad from the CSPRNG test only suite 0xFFFF | Web Crypto crypto.getRandomValues | nothing | sealCore, randomBytes |
| 5.2 | Seal | (same click) | Draws the blinding value r and computes the commitment Com to F. | Pedersen commitment on ristretto255: Com = m·G + r·H; H = hash_to_ristretto255 (RFC 9380); m = expand_message_xmd(SHA-512) mod ℓ; r = 64 random bytes mod ℓ | @noble/curves, @noble/hashes | nothing | commit |
| 5.3 | Seal | (same click) | Builds the public package P (the locked record) and its fingerprint; the short ID is its first 8 hex digits. | P = SEALREC\0 + 52-byte header + Com + C; package_digest = SHA-256(P) | @noble/hashes SHA-256 | nothing | buildPackage, packageDigest |
| 5.4 | Seal | (same click) | Self-check: reopens the new record from P, K, r; any failure produces nothing. On success the editor text is cleared. | Verifier steps V2, V3, V6–V9 (package, digest, pad length, frame, canonical text, commitment opening) | Same code as the verifier | nothing | verifyRecord |
| Passphrase | |||||||
| 6 | Passphrase | Chooses “Protect it with a passphrase (recommended)” or “No passphrase”, then Continue | Checks the passphrase (4 words or 16+ characters, typed twice) and keeps it in memory. The key file exists only in memory from here until it is saved. | Strength rule: ≥ 16 characters or ≥ 4 words (no hashing yet) | Password inputs (autocomplete="new-password") | nothing | screenKeyProtect, strongEnough |
| 6a | any, while the record is at risk | Closes or reloads the tab | The browser asks “Leave this page?” while leaving would lose the record: the key file isn’t saved, or it is saved but the record wasn’t uploaded and no copy of the locked record is kept (the key file alone can’t open it). | none | beforeunload event | nothing | leaveRisk |
| 6b | any | Leave quickly → (header) | Replaces the page with wikipedia.org so Back doesn’t return; never triggers the close-tab warning. | none | location.replace; capture-phase click flag skips beforeunload | An ordinary page load of wikipedia.org (no record data) | leavingQuickly |
| 6c | any, during the sealing flow | Open a key file (header) | An in-page notice asks first, with the safe choice as the main button. Key file not saved: Stay and save it · Leave anyway. Key file saved but, without an upload, no copy of the locked record: Download locked record · Leave anyway. Everything saved: Open a key file · Stay here. Leaving drops the record from the window. | none | In-page notice (no browser prompt) | nothing | leaveNotice, leaveRisk, leaveToOpen |
| Key file: add, save, check (one screen) | |||||||
| 7 | Key file | Add date stamp (or Try again) | Asks 3 calendars from 2 operators to date-stamp the record; ≥ 2 replies = “Date stamp added. It's confirmed within a few hours.” The pending proof goes into the in-memory key file. | OpenTimestamps: commitment SHA-256(package_digest ‖ 16-byte nonce); replies parsed and whitelisted locally | fetch POST /digest, CORS, no credentials, no referrer, no cache, 20 s timeout | 32-byte commitment to a.pool.opentimestamps.org, b.pool.opentimestamps.org, a.pool.eternitywall.com; the services see the client IP address | register, submitDigest, startProof |
| 8 | Key file | Upload (or Try again) test only | Signs the locked record as one data item with a throwaway key and uploads it; checks the reply’s ID. The storage ID and receipt go into the in-memory key file. No automatic retry. | ANS-104 data item: Ed25519 signature (fresh key, zero tags, no target/anchor) over a SHA-384 deep hash; ID = SHA-256(signature) | @noble/curves ed25519; fetch POST /v1/tx, 60 s timeout | The locked record P, the throwaway public key and signature, to upload.services.ar-io.dev (test network); the service sees the client IP address | doUpload, uploadPackage, createDataItem |
| 8a | Key file | A step fails (no reply, one reply, HTTP 402, refused, unreachable, reply mismatch) | Shows a specific error (for unreachable: a hint that some workplace networks block the service) and Try again; never blocks saving. | none | In-page state | nothing more | REG_STATE, UPLOAD_ERROR |
| 9 | Key file | automatic once the key file is saved | Saving locks the date-stamp and upload rows and More options (they show Added / Not added, Uploaded / Not uploaded), so the saved file stays the only key file; a step not used shows “Skipped” in the progress bar. Rows for checking and the backup copy appear below. | none | In-page state | nothing | screenStore, keyBar |
| 10 | Key file | automatic on opening the screen (“Preparing your key file…”) | Builds the key-file text in the background so the Save window can open straight from the click. | TLV payload ending in a SHA-256 integrity record; with a passphrase: scrypt (N = 217, r = 8, p = 1, 16-byte salt) → AES-256-GCM (12-byte nonce, header as associated data); base64 armor, 76-column lines | @noble/hashes scrypt; Web Crypto AES-GCM (non-extractable key) | nothing | prepareKeyFile, writeKeyFile, protect |
| 11 | Key file | Save key file (later Save another copy); waits while a date stamp or upload is running | Chrome/Edge: the Save window opens; the app writes the file and knows when it is complete (“✓ Saved: name”). Other browsers: an ordinary download (“✓ Download started: name”). | none (writes the prepared text) | File System Access showSaveFilePicker (shared picker ID, no type filter) → createWritable / close; fallback Blob + <a download> | nothing | saveDirect, saveByDownload |
| 11a | Key file | Cancels the Save window | Not an error: the key file simply isn’t saved yet. | none | AbortError from the picker | nothing | saveDirect |
| 11b | Key file | Write refused → Save key file / Download it instead | “The key file couldn't be written there. Save it again in another place, or download it instead.” | none | FSA write error; download fallback | nothing | saveDirect |
| 12 | Key file | Test opening it (appears once saved) · Skip | Restore test: reads the saved file back and opens this record with it (and the passphrase). Chrome/Edge read the saved file directly; other browsers open a file window or accept a drop on the box. Described as “the same check as Open a key file, run on the file you just saved, without going online”. On success: “It opens exactly the words you sealed.”, and with a pending date stamp, that the date shows once it is confirmed (never a date or “guaranteed” here). | Key-file parse + integrity check; AES-256-GCM decrypt with the scrypt key cached from step 10; digest compared with the sealed record; V2–V9 against the locked record still in memory | FileSystemFileHandle.getFile; file window (showOpenFilePicker or <input type=file>); drag and drop | nothing | testOpen, testWithFile, finishTest, readKeyFile |
| 12a | Key file | Protected file: passphrase, then Open · Cancel | Asks inline (never a browser prompt); “Unlocking… N%”. | scrypt (skipped when cached) + AES-256-GCM | Password input | nothing | testPassphraseForm |
| 12b | Key file | Show the text / Hide the text | Shows the words read back from the saved file, only on request; forgotten when leaving the screen. | none | In-page state | nothing | screenStore, clearTestText |
| 13 | Key file | Download locked record (appears once saved; later Download again) | Saves P as <short ID>.srec. Marked Needed without an upload, Optional after one, Not needed when the key file holds the locked record. | none (raw bytes of P) | Blob + <a download> | nothing | saveSrec |
| 13a | Key file | More options: “Also put the locked record inside the key file (one file to keep)” | The key file then carries P too. Offered only until the key file is saved. | Extra TLV record PACKAGE | Checkbox | nothing | screenStore |
| 14 | Key file | Finish (appears once the key file is saved) | Without a backup copy: a notice whose buttons replace Finish (see 14a). Otherwise goes to Done and forgets the read-back text, the file handle and the cached key. | none | In-page state | nothing | screenStore, clearTestText |
| 14a | Key file | Download locked record · Finish without a backup (the second only after an upload) | Not uploaded: a backup copy is required to continue. Uploaded to the test network: the user may finish without one; Done then says the copy is deleted after about 3 days. | none | In-page state | nothing | screenStore, nudge |
| 15 | Done | Write another record · Open a key file | Shows reminders (two copies, passphrase kept separately, backup, draft deletion, date-stamp confirmation) and “You can close this window now…”. | none | In-page state | nothing | screenDone |
| Open a key file | |||||||
| 16 | Open a key file | Choose key file, or drop a file on the screen | Reads the key file; a dropped .srec is recognised by its magic bytes and used as the locked record. | Armor + TLV parse; SHA-256 integrity record; files over 8 MiB refused | showOpenFilePicker (shared picker ID) or <input type=file>; drag and drop | nothing | screenOpen, pickFile, readKeyFile |
| 16a | Open a key file | Passphrase, then Unlock | Unlocks a protected key file; “Unlocking… N%”. | scrypt (parameters from the file, accepted ranges only) → AES-256-GCM decrypt | @noble/hashes, Web Crypto | nothing | unprotect |
| 17 | Open a key file | automatic | Offline check of the record from the key file and the user’s own copy of P (in the key file or a chosen .srec). | V2 package format · V3 digest · V6 pad length · V7 frame · V8 canonical text · V9 commitment opening | TypeScript core; the independent Rust verifier passes the same test vectors | nothing | evaluateOpen, recompute, verifyRecord |
| 18 | Open a key file | automatic when the key file has a storage ID (or Try fetching again) test only | Fetches the stored copy by its ID and uses it only if its SHA-256 equals the fingerprint in the key file; checks the item’s signature and climbs the 7-state status ladder (states 4–7 can’t happen on the test network). | V4: SHA-256 match; ANS-104 Ed25519 signature rebuilt and verified (SHA-384 deep hash); confirmations against an 18-block stable depth | fetch GET /raw/<id>, POST /graphql, GET /tx/<root>/status | The storage ID (and bundle IDs) to ar-io.dev; the gateway sees the client IP address | checkStorageOnline, storagePanel, checkStorage |
| 18a | Open a key file | Choose locked record | When there is no local copy and the stored copy can’t be fetched: the user chooses the .srec. | SHA-256 digest check (V3) | File window or drag and drop | nothing | screenOpen |
| 19 | Open a key file | automatic when there is a date-stamp proof (or Check the date stamp again) | Asks the calendars for the completed proof, fetches the Bitcoin block headers it names, and checks the proof; a complete proof gives the dated statement. | V5: OpenTimestamps proof path to the block’s Merkle root; header proof of work; headers must be identical from both explorers; ≥ 6 confirmations | fetch GET /timestamp/<hex>; GET /blocks/tip/height, /block-height/<h>, /block/<hash>/header | The calendars’ own commitments to the 3 calendars; block heights and hashes to blockstream.info and mempool.space | checkOnline, refreshTimestamp, upgradeProof, fetchHeaders, verifyProof |
| 19a | Open a key file | Save updated key file | When the proof was upgraded: saves a new key file holding it (old copies still open the record). | Same key-file format; same passphrase if the file was protected | Blob + <a download> | nothing | saveUpdatedKey |
| 20 | Open a key file | Show report (or Show the unlocked text anyway when it isn’t shown to be the sealed record) · Hide report | Shows the statement (“These exact words are the sealed record…”, with the date only when the date stamp is complete) and, on request, the text; invisible characters can be revealed. | none | In-page state | nothing | statement, screenOpen |
| 20a | Open a key file | Prepare a copy to share | After a confirmation, saves one file with the locked record and the key and no passphrase, for the person the user chooses. | Key-file format with PACKAGE, unprotected | window.confirm; Blob + <a download> | nothing | shareCopy |
Not in this prototype yet
- Suites
0x0001(one-time pad, pad from a qualified physical source) and0x0002(computational, pad from the CSPRNG) are defined in the record format but can't be chosen in the UI. Pad-material files, which make pad consumption crash-safe, are implemented but not exposed. - Long-term storage: Arweave through Turbo (
upload.ardrive.io), retrieved and matched through independent gateways before deleting the local copy is offered. Implemented, but disabled at build time. - Publishing the completed OpenTimestamps proof online (a proof locator in the key file).
- A command-line tool and an independent Rust verifier run the same checks outside the browser. Both can check V5 against a supplied block-header file; the Rust verifier can also check V4 from supplied bytes or a whole ANS-104 data item.
Describes the prototype as of 19 October 2026.