it-happened.org Leave quickly

← How it works

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.

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
#ScreenUIAction triggeredAlgorithm / formatTechnology / APIData that leaves the deviceIn the code
Write a record
1WriteTypes in the text boxText is held in page memory only; “about N page(s)” is shown.UTF-8 length countDOM textarea, TextEncodernothingscreenWrite
1aWriteTurn on drafts then Save draft to a file / Load a draft file / Turn drafts offSaves 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)nothingscreenWrite, download, pickFile
1bWriteUse an example text, then Next example (on the last: First example) · Write your ownFills 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 statenothinguseExample, exampleBox
2WriteContinueRefuses empty text (“Write something first.”), else moves to the Seal screen (“Before you seal”).noneIn-page statenothingscreenWrite
3Seal (“Before you seal”)automatic on opening the screenBuilds 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 normalizationJavaScript string handlingnothingcanonicalize
4Seal (“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.noneIn-page statenothingprotectionModes
Seal (one click, no network)
5SealSealChooses 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 fitsTypeScript, Uint8ArraynothingchooseSizeClass, buildFrame
5.1Seal(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 0xFFFFWeb Crypto crypto.getRandomValuesnothingsealCore, randomBytes
5.2Seal(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/hashesnothingcommit
5.3Seal(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-256nothingbuildPackage, packageDigest
5.4Seal(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 verifiernothingverifyRecord
Passphrase
6PassphraseChooses “Protect it with a passphrase (recommended)” or “No passphrase”, then ContinueChecks 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")nothingscreenKeyProtect, strongEnough
6aany, while the record is at riskCloses or reloads the tabThe 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).nonebeforeunload eventnothingleaveRisk
6banyLeave quickly → (header)Replaces the page with wikipedia.org so Back doesn’t return; never triggers the close-tab warning.nonelocation.replace; capture-phase click flag skips beforeunloadAn ordinary page load of wikipedia.org (no record data)leavingQuickly
6cany, during the sealing flowOpen 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.noneIn-page notice (no browser prompt)nothingleaveNotice, leaveRisk, leaveToOpen
Key file: add, save, check (one screen)
7Key fileAdd 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 locallyfetch POST /digest, CORS, no credentials, no referrer, no cache, 20 s timeout32-byte commitment to a.pool.opentimestamps.org, b.pool.opentimestamps.org, a.pool.eternitywall.com; the services see the client IP addressregister, submitDigest, startProof
8Key fileUpload (or Try again) test onlySigns 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 timeoutThe locked record P, the throwaway public key and signature, to upload.services.ar-io.dev (test network); the service sees the client IP addressdoUpload, uploadPackage, createDataItem
8aKey fileA 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.noneIn-page statenothing moreREG_STATE, UPLOAD_ERROR
9Key fileautomatic once the key file is savedSaving 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.noneIn-page statenothingscreenStore, keyBar
10Key fileautomatic 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)nothingprepareKeyFile, writeKeyFile, protect
11Key fileSave key file (later Save another copy); waits while a date stamp or upload is runningChrome/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>nothingsaveDirect, saveByDownload
11aKey fileCancels the Save windowNot an error: the key file simply isn’t saved yet.noneAbortError from the pickernothingsaveDirect
11bKey fileWrite 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.”noneFSA write error; download fallbacknothingsaveDirect
12Key fileTest opening it (appears once saved) · SkipRestore 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 memoryFileSystemFileHandle.getFile; file window (showOpenFilePicker or <input type=file>); drag and dropnothingtestOpen, testWithFile, finishTest, readKeyFile
12aKey fileProtected file: passphrase, then Open · CancelAsks inline (never a browser prompt); “Unlocking… N%”.scrypt (skipped when cached) + AES-256-GCMPassword inputnothingtestPassphraseForm
12bKey fileShow the text / Hide the textShows the words read back from the saved file, only on request; forgotten when leaving the screen.noneIn-page statenothingscreenStore, clearTestText
13Key fileDownload 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>nothingsaveSrec
13aKey fileMore 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 PACKAGECheckboxnothingscreenStore
14Key fileFinish (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.noneIn-page statenothingscreenStore, clearTestText
14aKey fileDownload 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.noneIn-page statenothingscreenStore, nudge
15DoneWrite another record · Open a key fileShows reminders (two copies, passphrase kept separately, backup, draft deletion, date-stamp confirmation) and “You can close this window now…”.noneIn-page statenothingscreenDone
Open a key file
16Open a key fileChoose key file, or drop a file on the screenReads 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 refusedshowOpenFilePicker (shared picker ID) or <input type=file>; drag and dropnothingscreenOpen, pickFile, readKeyFile
16aOpen a key filePassphrase, then UnlockUnlocks a protected key file; “Unlocking… N%”.scrypt (parameters from the file, accepted ranges only) → AES-256-GCM decrypt@noble/hashes, Web Cryptonothingunprotect
17Open a key fileautomaticOffline 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 openingTypeScript core; the independent Rust verifier passes the same test vectorsnothingevaluateOpen, recompute, verifyRecord
18Open a key fileautomatic when the key file has a storage ID (or Try fetching again) test onlyFetches 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 depthfetch GET /raw/<id>, POST /graphql, GET /tx/<root>/statusThe storage ID (and bundle IDs) to ar-io.dev; the gateway sees the client IP addresscheckStorageOnline, storagePanel, checkStorage
18aOpen a key fileChoose locked recordWhen 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 dropnothingscreenOpen
19Open a key fileautomatic 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 confirmationsfetch GET /timestamp/<hex>; GET /blocks/tip/height, /block-height/<h>, /block/<hash>/headerThe calendars’ own commitments to the 3 calendars; block heights and hashes to blockstream.info and mempool.spacecheckOnline, refreshTimestamp, upgradeProof, fetchHeaders, verifyProof
19aOpen a key fileSave updated key fileWhen 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 protectedBlob + <a download>nothingsaveUpdatedKey
20Open a key fileShow report (or Show the unlocked text anyway when it isn’t shown to be the sealed record) · Hide reportShows 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.noneIn-page statenothingstatement, screenOpen
20aOpen a key filePrepare a copy to shareAfter 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, unprotectedwindow.confirm; Blob + <a download>nothingshareCopy

Not in this prototype yet

Describes the prototype as of 19 October 2026.