Skip to content
Kylne700Public

About

Anonymous, self-expiring, encrypted tip line on Arkiv (static site, no server)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Sealdrop

An encrypted, self-expiring tip line with no Sealdrop server to seize. SecureDrop's idea, on Arkiv.

A source seals a message in the browser. A newsroom opens it with a key only the newsroom holds. Everything in between is ciphertext in Arkiv, the Web3 database, and every tip expires on the date its source chose (unless the newsroom extends it). There is no Sealdrop backend, no account, and no server that can read the messages or holds the keys. It does not hide your network address: use Tor Browser.

Built for the Arkiv Global Tour Stop, entered in all four pillars: Privacy, Censorship Resistance, Security, Open Source (why these four). Testnet only. Send made-up messages only.

The problem

A source with something a newsroom should know needs a way to hand it over without being identified. The standard answer is SecureDrop, "an open-source whistleblower submission system that media organizations can install to securely accept documents from anonymous sources". It works, and it is expensive to run: its own installation guide requires an application server, a monitor server, a dedicated network firewall, and air-gapped machines that boot to Tails, all as physical hardware the organization hosts itself. It explains why: cloud servers are "trivially accessible and manipulable by the provider", and a host can be compelled to give access, "potentially with a gag order attached". The public directory lists 24 instances (checked 2026-10-16).

So a small newsroom, a student paper, or a freelancer without that budget has no safe channel to offer, and their sources fall back to email, which tells a mail provider who wrote to whom. And every inbox that is run as a server is a single place to seize, subpoena or switch off.

Sealdrop removes the tip-line server. What reaches the network is ciphertext only, so no Sealdrop operator has anything to read or hand over, and a newsroom needs nothing but a browser. The page host and the RPC node can still be pressured; the threat model says what that exposes.

What Sealdrop does not replace is the rest of SecureDrop's hardening: there is no air gap and no Tails workstation. See the threat model.

Try it in 60 seconds (no wallet, no account)

  1. Open the app and choose Start: open a newsroom, then Create a throwaway newsroom. The page makes a key in your browser and funds it with 0.005 testnet GLM from the shared demo key. Name the inbox; copy the inbox link.
  2. Open that link in another tab (it is a different "source"). Write a made-up message and press Seal and send.
  3. Switch back to the first tab. The tip appears within seconds, pushed over a WebSocket (the console does not poll for tips), and is decrypted locally. The source's tab shows the entity and transaction links.

Or follow Send a made-up tip to the Demo Desk on the home page: a flagship inbox run by a separate address whose key is not part of this repository or the build. Open the entity link on the Data Explorer to see what anyone can see: ciphertext and three attributes.

Measured on 2026-10-17 (22:18 UTC) by a headless Chromium run against the built site and the live testnet (evidence/smoke.txt): creating the newsroom takes under a second (no network), creating the inbox 15.0 s (two transactions and the first look-up), and the decrypted tip appeared in the newsroom tab 3.7 s after Send was clicked. The whole path took 20.7 s.

What is on Arkiv, and what is not

On Arkiv (public) Never on Arkiv
Inbox entity: name, description, the newsroom's public key, inbox_id. Any private key (the newsroom's keys stay in its browser; export is a button).
Tip entity: sealed bytes, padded to a size class, and three attributes (type, app, inbox). The message text (sealed in the sender's browser).
Protocol fields: $creator, $owner, $createdAt, $expiresAt. A sender field, a name, an email, a topic, a timestamp of ours.
Analytics, logs, accounts: there is no backend to hold them.
Browser state, in this browser's localStorage only: the newsroom keys (sealdrop:newsroom:v1, and sealdrop:newsroom:v1:backup if an unreadable copy was set aside), the last-seen tip per inbox (sealdrop:seen:*) and the custom RPC URL (sealdrop:rpc).

Details and the exact byte layout: arkiv/schema.md.

Why Arkiv, and what each feature does for the user

The idea needs three things at once: a place anyone can write to without an account, a place only the newsroom can read (by key), and data that disappears on a schedule nobody operating a server can quietly change. Take Arkiv away and each of those becomes an operator you have to trust:

  • Own API or Postgres: whoever runs it can read metadata, be compelled to hand over rows, drop tips silently, or keep "deleted" ones. Auto-deletion is a promise there. Here Entity Expiration is enforced by the protocol.
  • IPFS: content stays as long as anyone pins it, there is no expiry, no query by creator or owner and no live notification, so you would need an indexing server to find an inbox's tips. That server is the operator again.
  • A subgraph or indexer: you trust the indexer to be honest and online, and $creator (who really created an inbox) has to come from somewhere you can verify. The app queries the node directly and relies on the protocol's $creator.
Arkiv feature What the user sees Code
Lookup by $creator (createdBy) A source opens a newsroom's link and only that address's inbox loads. A look-alike inbox with the same id under another address never shows, and the page prints the creator. The link also carries a key check (the first 16 bytes of the SHA-256 of the inbox's public key), so the page refuses an inbox whose key does not match it. findInbox in src/arkiv.ts
Atomic batch: create plus ownership change One click makes the tip and hands it to the newsroom in one transaction. The shared demo key can no longer delete or extend anyone's tip; the newsroom can keep or burn it. sendTip in src/arkiv.ts
Query by $owner The console shows only tips handed to the newsroom. A stranger can create an entity that mentions the inbox, but it never appears. sweepTips in src/arkiv.ts
Entity Expiration per type The source picks 1, 7, 14 or 30 days and sees the exact expiry on the result screen. The inbox itself lives for 7 days. sendTip, createInbox
Lifetime Extension as a lease The console renews the inbox when the newsroom opens it with under 6 days left (a wallet newsroom presses "Renew now"), so an inbox the newsroom stops opening lapses within 7 days and sources see "no live inbox" instead of writing into it. "Keep until 30 days from now" extends a single tip. renewInbox, pinTip
Range query on $expiresAt One query finds every inbox of this creator that has less than 6 days left. inboxesDueForRenewal
watchEntityEvents over WebSocket The tip shows up in the open console within seconds, with no polling for tips (the socket itself costs no queries; reading the new tip afterwards is one; a 30 s eth_blockNumber heartbeat on the same socket only detects a dead connection). If the connection drops the page says "Reconnecting", retries with a growing delay and, once it is back, makes one catch-up query, so a tip sent during the outage still appears without a refresh. watchHandovers
Cursor pagination The console loads an inbox 200 tips at a time, up to 2,000 tips, and says when it shows only the first pages. sweepTips
Range query on $createdAt When you return to the tab it fetches only tips created since the last sweep. tipsSince
readonly creation flag A tip's bytes and attributes never change after creation, not even by the newsroom that owns it (it can still extend or burn the tip). sendTip
Plain JSON-RPC (arkiv_query) Anyone can read and decrypt a newsroom's tips with a 43-line script and no Sealdrop code. arkiv/examples/read-tips.mjs

Every page has a Queries this page runs panel showing the exact query strings, and the footer shows how much of the public RPC's anonymous query budget the tab has used (see friction F7). When that budget is spent the page says so at once and offers Settings, where a visitor can paste their own RPC URL.

Why these four pillars

Sealdrop is entered in all four pillars of the Arkiv Global Tour Stop. Each answer says who is affected today and what changes from day one.

Privacy (main pillar)

Who is exposed today. A source with documents for a newsroom. The strong channel, SecureDrop, needs two servers, a firewall and air-gapped machines the organization hosts itself (its own docs call dedicated physical machines "critical"), so few newsrooms run one: its public directory lists 24 instances (checked 2026-10-16). Everyone else gets tips by email or direct message, which hand a provider the source's address and the timing.

What changes from day one. A source with a browser opens a link and sends. No account, no wallet, nothing to install. What the explorer shows for a tip: padded ciphertext, three attributes (type, app, inbox), the shared demo address as $creator, the newsroom as $owner. No text, no name, no sender field, no topic. The source chooses how long it lives (1, 7, 14 or 30 days of Entity Expiration), and the protocol, not a cron job on someone's server, enforces it. That is the initial lifetime: the newsroom that owns the tip can later extend or burn it. In wallet mode the tip's $creator is the sender's own wallet, and the send page says so before sending ("your address becomes public as $creator of the tip"), so use a fresh wallet. Sources are not sent into a dead inbox for long: the inbox is a 7-day lease, so within 7 days of the newsroom's last renewal the send page says "no live inbox".

Why this is the Privacy entry. Here privacy is the whole purpose of the product, protecting an anonymous source, rather than a property added to another tool. The data is safe because no one runs a server that holds readable messages or keys, not because an operator promises. The threat model below states what it does not hide: ciphertext stays in chain history after expiry, the RPC node sees the IP, the inbox attribute reveals how many tips arrived and when, and in wallet mode the tip's $creator is the sender's wallet.

Censorship Resistance

Who is censored today. Sources and newsrooms whose tip line is one server: a hosting provider, a domain or a court can take it down, block it, or demand its logs, and the newsroom's inbox disappears with it.

What changes from day one. The inbox is an Arkiv entity. The link carries only the newsroom's address, the inbox id and a key check, and the page looks the inbox up on the chain, not on a Sealdrop server. Someone outside the team reads and queries the data with no help from us: arkiv/schema.md has the one curl that lists a newsroom's sealed tips, and arkiv/examples/read-tips.mjs does the same with plain JSON-RPC and no Sealdrop code (a recorded run is in evidence/read-tips.txt). The app is a static file that anyone can host; Settings lets a visitor point it at their own RPC URL. There is no Sealdrop backend to shut down. Honest limits: whoever hosts the page can take that copy down (anyone can host another), but not the inbox or the tips; and the RPC node on the testnet is Arkiv's, so a blocked visitor needs another RPC URL.

Security

Who is misled today. A source following a link, a QR code or a phishing look-alike to "the newsroom's tip line", with no way to tell a real inbox from a fake, on systems where the owner is a field in someone's database.

What changes from day one. The page shows and filters Arkiv entities by $creator, which the protocol sets and nobody can write, not by a field anyone can fill in: an inbox loads only if the address in the link created it. Anyone can create an entity with the same inbox_id and attributes; the query excludes it because its $creator is another address. Two tests check this without creating a look-alike entity: the integration test asks for the same inbox id under another creator and gets no inbox, and the smoke test opens a link with that inbox id and another creator, which shows "no live inbox" (evidence/integration.txt, evidence/smoke.txt). The console shows only tips whose $owner is the newsroom, so entities that merely mention the inbox never appear. Tips are readonly and are handed over in one atomic batch, and the send page prints "WARNING: the owner is not the creator" if an inbox has changed hands. The link also carries a key check of the inbox's public key: the send page shows "Key matches this link" only when the key it read matches, and refuses to send otherwise, so an RPC that answers with another key is caught. What this does not solve: the page proves only that the inbox was created by the address in the link. A look-alike link has a different address, so the newsroom must publish its address (or its link) over a channel the source already trusts, and the page prints the creator and asks the source to compare it. An old link without a key check still opens, with the warning "This link has no key check".

Open Source

Who is locked out today. Other builders. A tip line that runs as one organization's server keeps its inbox in that server's private store, so a second client, a notifier or a relay can only work through that organization, and when it stops, the inboxes go with it.

What changes from day one. arkiv/schema.md is a data contract: entity types, attribute names and types, per-type Entity Expiration, the byte layout of the sealed box, the rules a reader must apply, and the exact queries. It is versioned by app = sealdrop-v1. A team can build a different newsroom UI, a CLI sender, a relayer that pays the gas, or a read-only dataset, without asking anyone. A sender written from the contract should produce tips the existing console opens; so far only the app's own sender has been tested. arkiv/examples/read-tips.mjs is the proof for the read side: a 43-line reader, written from the contract, that decrypts a newsroom's tips (in the builder's run, the Demo Desk's; saved in evidence/read-tips.txt) without importing anything from the app. MIT license and unit tests for the wire format.

Threat model (read this before sending anything real)

What it protects

  • The text of a tip is sealed in the sender's browser (X25519 + XSalsa20-Poly1305, a fresh ephemeral key per tip) and padded to one of four size classes. Only the newsroom's secret key opens it. No server and no chain node sees plaintext.
  • There is no Sealdrop server holding messages or keys, so there is no tip-line server to compel or seize. The newsroom, the page host and the RPC node can still be compelled.
  • The source chooses the initial retention limit (the newsroom can extend it); the protocol enforces it. An inbox that is not renewed lapses within 7 days.
  • A look-alike inbox under a newsroom's link does not load: the page checks the inbox's on-chain $creator. A link with a different address is a different newsroom as far as the page knows: compare the address with the one the newsroom publishes elsewhere.
  • A link with a key check (#/send/<creator>/<inbox id>/<key check>) only sends to the key it names, even if the RPC lies.

What it does not protect

  • Your network address. The RPC node (and a WebSocket) sees your IP. Use Tor Browser if that matters; the RPC budget is per exit IP, so Tor's New Identity gives a fresh budget. A local network or ISP observer sees that you use Sealdrop and the RPC (clearnet). The WebSocket operator learns which inbox a console watches, and when. The explorer links on the receipt send your IP and the tip's key to the explorer operator when clicked.
  • Trust in the RPC. The page believes what the RPC node answers. A dishonest RPC (the public one, or a custom one in Settings) can hide an inbox or tips, or answer with another inbox key. A link with a key check refuses such a key; an old link without one cannot tell. While a custom RPC is set, the footer shows "Custom RPC: ".
  • History. After Entity Expiration the entity is gone from queries, but the ciphertext stays in chain history. If the newsroom's key is ever stolen, anyone who archived the chain can open old tips. Expiry limits exposure; it does not erase history, and the encryption is what protects an expired tip. There is no forward secrecy for the newsroom key.
  • On-chain metadata. The inbox attribute shows how many tips an inbox received and when, to anyone. The size class is visible. In demo mode every source shares one public testnet address, which hides who sent but not that a tip arrived. In wallet mode the tip's $creator is your wallet address: use a fresh wallet, funded in a way that cannot be tied to you.
  • Timing. Someone watching the chain can correlate when a tip arrived with other events.
  • The demo key is public on purpose. Demo mode ships a testnet-only sender key in the page so a visitor needs no wallet. Anyone can lift it out of the bundle and spend its faucet GLM or spam inboxes (the console ignores entities that were not handed to the newsroom, but the public view would show them). Spam that is handed over does reach the console, like any tip; the console marks a tip whose sealed bytes repeat an earlier one as a copy. Production would use a relayer or a paymaster; the key holds nothing of value.
  • Retraction. A source cannot retract a tip after it is handed over. The newsroom (the owner) can extend it, so "expiry the source controls" applies to the initial lifetime.
  • Public inbox text. An inbox's name and description are public; the UI warns the newsroom.
  • Trust in the JavaScript you load. The page's code comes from whoever hosts it, and a malicious host could serve modified code that reads a message before it is sealed. Mitigations: the code is open source, a Content Security Policy (a <meta> tag with script-src 'self') limits which scripts the page runs, though it cannot stop the host from serving different code, and you can run it yourself (npm run dev) or host your own copy.
  • Shared origin. The keys and the RPC setting live in localStorage on the site's origin. On GitHub Pages every site of the same account shares that origin (the /sealdrop/ path does not isolate it), so another Pages site of that account could read them. Serve it from a dedicated account, organization or custom domain.
  • Framing. GitHub Pages cannot send frame-ancestors, so the page refuses to run inside another page instead: it shows "Sealdrop does not run inside another page" and renders nothing else. Signed releases and reproducible builds are not done.
  • The Demo Desk is not a real newsroom. The builder holds its key and reads what arrives. Test messages only.
  • Your device. Browser history, malware, screenshots, a stolen laptop, and clearing site data (which deletes an un-exported newsroom key) are outside this tool.

Run it yourself

npm ci
npm run dev        # http://localhost:5173; without .env.local this is wallet mode only (see Demo mode)
npm test           # unit tests: crypto and codec
npm run build      # type check, then static dist/ for any static host
BASE_PATH=/sealdrop/ npm run build   # when served below a path, e.g. GitHub Pages /<repo>/

The app is plain static files plus the three dependencies @arkiv-network/sdk, viem and tweetnacl.

Demo mode (no wallet for the source) needs a funded testnet-only sender key at build time. The key is not in this repository; it is injected from .env.local and exists only in the bundle you build.

What a judge needs, exactly. Node 22 (22.12 or newer), 24, or 26 and newer (run on 22.23 and 24.18; package.json engines is vitest's range, the strictest of vite, vitest and puppeteer-core, so 23 and 25 fall outside it) and npm. Node 20.19 is outside that range; it ran the same steps in a fresh clone too, with EBADENGINE warnings. Without .env.local, npm ci, npm test, npm run build and npm run dev all work (npm run check:bundle prints SKIP), but the site is wallet mode only: the shared-demo-key send and the throwaway newsroom answer that the build has no demo key. (npm 11.16 prints an allow-scripts warning about esbuild's postinstall during npm ci; ignore it, the install, tests and build pass without that script.) For demo mode put one line in .env.local at the repository root and restart npm run dev:

VITE_DEMO_SENDER_PRIVATE_KEY=0x<64 hex characters>

Use the private key of a testnet account that holds a little testnet GLM (claim some at the faucet below) and nothing else: the key ships in the bundle. Measured on 2026-10-16: a throwaway newsroom costs that key 0.005021 GLM (0.005 funding plus the transfer's gas) and each tip about 0.00013 GLM, so a full try-out is about 0.0053 GLM. The Demo Desk needs nothing more (VITE_DEMO_DESK_ADDRESS is optional and defaults to the hosted one). npm run keys below writes such a file with fresh keys.

npm run keys                  # writes .env.local (git-ignored, mode 600) with fresh testnet keys; prints addresses only
# Claim testnet GLM for the FUNDER address once at https://hub.arkiv.network/faucet, then:
npm run ops -- fund sender 1  # send 1 GLM from the funder to the demo sender
npm run ops -- desk-create    # optional: create your own Demo Desk inbox (point VITE_DEMO_DESK_ADDRESS at it)
npm run build && npm run check:bundle

check:bundle fails the build if any secret other than the demo sender key appears in dist/.

Reproduce the evidence

Check Command Output
Unit tests (crypto round trip, padding, tamper rejection, codec) npm test console
Integration against Tiramisu: create inbox, send, hand-over, WebSocket event, sweep, cursor, Lifetime Extension, pin, burn, forged-link refusal. Prints entity keys, tx hashes and explorer links. npm run integration evidence/integration.txt
Headless Chromium on the built site: the 60-second judge path, wallet mode with a test wallet, forged link, Demo Desk. npm run build && npm run smoke (set CHROMIUM=/path/to/chromium if it is not /usr/bin/chromium) evidence/smoke.txt, evidence/screens/
The same smoke checks against any served copy, here a BASE_PATH=/sealdrop/ build behind a local static server rooted one level above /sealdrop/ (how GitHub Pages serves it). The script writes evidence/smoke-live.txt; this run was renamed so that name stays free for the deployed site. SMOKE_URL=http://127.0.0.1:<port>/sealdrop/ npm run smoke evidence/smoke-subpath.txt
Independent reader: decrypts a newsroom's tips with no Sealdrop code. The recorded run is the Demo Desk (the builder holds its key; made-up messages); to run it yourself, use a throwaway newsroom's exported key. INBOX=0x65a2… OWNER=0x6a3C… BOX_SECRET=… node arkiv/examples/read-tips.mjs evidence/read-tips.txt
Friction repro scripts arkiv/repro/*.mjs see arkiv/friction.md
QA pass: GLM costs, fresh clone, Firefox, a phone-sized screen, a dropped WebSocket, error states, keyboard and labels, Fast 3G load, wallet-mode failures. the scripts in evidence/qa-scripts/ (lib.mjs and anchors.mjs find the repository themselves; the others hard-code it as /path/to/sealdrop and use a git-ignored fixture identity) evidence/qa.md, evidence/qa-logs/

Run the integration test and the smoke test one at a time: they share the demo sender key and the public RPC's anonymous query budget.

Not verified: wallet mode with a real browser wallet extension (the smoke test and the QA wallet checks use a scripted EIP-1193 stand-in that signs in Node), Safari, a real phone (the mobile check is Chromium's 390x844 touch emulation), Tor Browser, and a reconnect after a real network change, sleep or node restart (the drops were injected by a local proxy). Firefox 153 (WebDriver BiDi) ran the judge path once, Chromium 154 runs the smoke test. The Settings panel was checked only against a scripted fake RPC: the URL is saved and the page sends its queries there, but I did not try a real second or access-key RPC node (the live-tip socket is derived from the same URL, https to wss, which a given node may not serve). The QA pass (what was run, with numbers, and what was not) is in evidence/qa.md.

Addresses and roles (Tiramisu testnet, chain id 7738577)

Role Address Notes
Funder 0x9606dB647383Bf71604B6C855aB3B3D92675cD64 Claimed the faucet once; funds the two wallets below with plain GLM transfers. Key not in the build.
Demo sender 0xa05d5Bd99440d95526120062364518ddfe11797F The shared sender in demo mode: $creator of demo-mode tips. Its key is in the deployed bundle by design.
Demo Desk newsroom 0x6a3C43407F58B11E871310cE296eb3bF1a3fdcF6 Creator and owner of the Demo Desk inbox and $owner of tips sent to it. Key not in the build.
Throwaway newsrooms generated in each visitor's browser One per "Create a throwaway newsroom"; creates its inbox entity, owns the tips it receives.
Test wallets generated per run by the integration and smoke scripts Funded from the demo sender; visible in the evidence files.

The Demo Desk inbox: entity 0x65a2d0b9…25a1, created in tx 0xc9ca55aa…9acc. Its link, with the key check: https://kylne700.github.io/sealdrop/#/send/0x6a3C43407F58B11E871310cE296eb3bF1a3fdcF6/demo-desk/4JL_elI5QI6aemyST_9gJA (the home page's Demo Desk link and #/demo lead there).

Repository map

Path What
src/crypto.ts, src/codec.ts, src/config.ts Sealing, wire format, constants (no environment access, shared with the scripts).
src/arkiv.ts Everything that talks to Arkiv: queries, writes, WebSocket, retries, budget tracking.
src/pages/ Home, newsroom console, send page.
arkiv/schema.md, arkiv/friction.md, arkiv/repro/, arkiv/examples/ Data contract, friction report with repro scripts, independent reader.
scripts/ Key generation, ops, integration test, smoke test, bundle check, secret scan.
test/ Unit tests.

AI use, pre-existing work, license

  • Written with Claude (Claude Code) under the supervision of the builder, who is a team of one. A lead session (Claude Opus 5.5) planned the work, reviewed it and verified it; Claude Sonnet 5.5 sub-agents, with an Opus advisor, wrote the code, the tests and the docs. The builder approves what is published and submitted. Commits carry a Co-Authored-By trailer that names Sonnet 5.5, because Sonnet wrote those commits. The friction log comes from real runs of the code in this repository.
  • No pre-existing work was reused. The repository history starts on 2026-10-16, inside the Oct 9-18 build window.
  • MIT, see LICENSE. Copyright 2026 Kylne700.

About

Anonymous, self-expiring, encrypted tip line on Arkiv (static site, no server)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages