
About
Data Armor is a library for app builders. It encrypts, signs and stamps each database row on the user's device, before the row is saved. Your database, a file or any other storage keeps the readable columns as they are, the secret columns as sealed values, and one armor column. It never sees a secret value. The builder picks the secret columns in code and calls armorRow before every save. In the browser, armorRow does three things: - Lock: each secret column is sealed with QoreSeal (ML-KEM-1024 + X25519) to every reader's key, read from QoreChain's key registry. - Sign: the whole row is signed with ML-DSA-87 (QoreSign), so the readable columns can't be changed either. - Stamp: the row's key and fingerprint go on QoreChain, so a change can be dated and the newest version can be found. openRow checks the signature and the stamp, then opens the secret columns for a reader. If even one letter changed, the row was swapped with another, or an older copy was put back, it says so. Why: a breach, a leaked service key or an insider can read what a database holds. Data copied today can be opened by a quantum computer later. And an admin can quietly change a row. With Data Armor, a thief gets sealed values, and a changed row is caught. Try it: npm install data-armor, or open the demo at https://data-armor.vercel.app. On its Try It page, fill a row, watch Lock → Sign → Stamp → Save with the code beside each step, then act as a dishonest admin and see the red flag. On Check a Row, paste a row from your own database and see if it's protected.
How it's made
Built from scratch during the fest, in TypeScript: the library (on npm as data-armor) and a demo site (Next.js 16). Architecture - Everything secret happens in the browser. The 24 words become keys in memory only. They are never sent or stored. - armorRow seals each secret column on its own: AES-256-GCM for the value, and its key locked to every reader with ML-KEM-1024 + X25519 (QoreSeal). The whole row is signed with ML-DSA-87 plus a classical key (QoreSign). A SHA-256 fingerprint of the row is stamped on chain. - Readers' keys are read straight from QoreChain in the browser, and each one must be signed by that person's registered ML-DSA-87 key. A hacked server can't slip in a fake key. - The demo server only saves and loads rows. Before saving, it checks the fingerprint and the stamp, and it refuses a secret column in plain text. The database has row-level security on and no public access. - openRow checks the signature against the signer's key on chain, rebuilds the fingerprint and compares it with the stamp, then opens the sealed columns. Check a Row runs openRow in the browser, with nothing sent to our server. QoreChain kits and network features - QoreSeal (TypeScript): ML-KEM-1024 + X25519 sealing and the encryption key registry (MsgRegisterKEMKey). - QoreSign (TypeScript): ML-DSA-87 hybrid signatures, key registration with proof of possession (MsgRegisterPQCKeyV2), and Sign In With QoreChain. - Every stamp is a hybrid ML-DSA-87 transaction on testnet qorechain-diana. What was hard - QoreChain has no "stamp" call. Each stamp is a tiny send to yourself with the fingerprint in the memo. The block time dates it. - A signed key card is about 6.7 KB, too big for the chain. It's kept in the database, but checked against the chain every time it's used. - At first all secret fields went into one box per row. Builders expect column-level encryption, so each column is now sealed on its own (about 1.6 KB per column per reader). - Sign-in had to stop replays: each sign-in message works once (a one-time code, deleted when used). - Our own review found the signature didn't say which row it was, so a swapped row or an older copy put back opened as unchanged. Now each row has a key that is signed and stamped, and openRow asks the chain for the signer's newest stamp of that key. - Trade-offs we kept: keys stay in memory only, so a reload signs you out. Columns the database adds (like id) aren't signed, and Check a Row lists them. Tested with 75 Vitest tests on every push (GitHub Actions), plus live testnet runs recorded in docs/TESTS.md. Live at https://data-armor.vercel.app (Vercel, Seoul region, next to the database). Built with Claude Code as the AI pair: see AI_USAGE.md. Apache-2.0.
Timeline
Pushed 7 commits to main
- 080de90 P7 Stage 3: AI_USAGE.md, cover image in README, open reader finding, progress · ervhint
- 0791ab6 P7 Stage 2 done: phone layout fixes (header, Try It steps, seal), deploy notes, T-NF-8, Prod smoke test, data-armor 0.2.0 · ervhint
- ea1ee3f P7 Stage 2: Vercel config (Next.js, region icn1), .vercelignore, Supabase keep-alive workflow · ervhint
- 621aa7c P7 Stage 1: tests, review fixes, row key (format v3, D-39) · ervhint
- e82804d Publish data-armor 0.1.0 on npm (T-6.4) · ervhint
and 2 more commits
Newly verified on chain: Hybrid ML-DSA-87 transactions, PQC key registration with proof of possession, QoreSeal and the encryption key registry, Test tokens fUSD, fETH, fBTC
Pushed 4 commits to main
- 4955c41 Mark U5 accepted in PROGRESS · ervhint
- 8d18f67 Add U5: Act as Admin with Undo, changed field marked on Open, second reader; say "database", not Supabase (D-35 to D-37) · ervhint
- 441b498 Mark U4 accepted in PROGRESS · ervhint
- 16e7068 Add U4: Two Shelves and Open; seal each secret column on its own (D-34); cut seal for a changed row · ervhint
Pushed 7 commits to main
- 7d78ba3 Fix U3 shelf tests in CI (test-only session secret); mark U3 accepted · ervhint
- 570ab0e Add U3: Armor and Save (lock, sign, stamp, save) · ervhint
- fede945 Add U2: Sign In With QoreChain · ervhint
- 03e85a8 Add U1: keys, testnet registration and signed cards on Set Up · ervhint
- a806820 Mark U0 accepted in PROGRESS · ervhint
and 2 more commits
Pushed 1 commit to main
- f29c7d0 Add Data Armor prototype: all pages, shared components, plan and design docs · ervhint
New project.
Comments and questions
- No comments yet.