
Encrypted Apps
coffer
Lock your .env to wallet addresses. Only your team can read it, and a stolen laptop opens nothing.
About
Teams keep their API keys and passwords in a .env file. It cannot go in the repo, so it travels through chat and email and stays there in plain text. Anyone who ever had a copy can open it forever: a teammate who left, or a stolen laptop. Coffer seals every value with ML-KEM-1024 to your teammates' QoreChain wallet addresses. The sealed file is safe to commit, and it shows up in each teammate's Coffer. Every open is a request QoreChain answers. The Coffer contract checks that the person is still on the file's list before the second half of the key is released. Remove someone, or a lost laptop's address, and nothing opens for it any more: not the copy on its disk, and not the public record of its past opens.
How it's made
1. Recipient cards. Your QoreX wallet signs one short text listing your encryption keys (ML-KEM-1024 + X25519). The Coffer contract checks that signature on chain with pqcVerify (0x0A01), against the key QoreChain registered for your address with proof of possession (pqcKeyStatus, 0x0A02). 2. Sealing. The .env is sealed in the browser or CLI with QoreSeal hybrid mode. Removing someone starts a new epoch key that they never get. 3. Two pieces to open. Each version also needs a release piece held by a keeper. To open, your Coffer signs a request with ML-DSA-87. The contract refuses it unless you are on the current list and it is the latest version, then records the open. 4. One time keys. The keeper seals the release piece to a key made for that one open, which is thrown away after. So the public record of opens holds nothing that a stolen key can open later. 5. Every change is on chain. Each seal, share, remove and new version is signed by the owner or a teammate, checked by the contract, and carries the sealed file, so teammates receive it through the chain. 6. Gas. A server account pays all contract gas through an EVM window scoped to the Coffer contract only. It cannot forge a change or an open. 7. What you can use. A web app (QoreX, or a key made in your browser) and a CLI: lock, share, revoke, set, inbox, pull, run, status. 8. Tests. 29 contract tests and 49 unit tests. An outside judge's stolen laptop attack is a script in the repo (scripts/log-replay.mts); on the live site it opens nothing. 9. What was hard. QoreX cannot publish an encryption key for websites, so we built signed recipient cards that the contract verifies. Our first open design leaked through the public log of opens; one time keys fixed it.
Timeline
Newly verified on chain: EVM window (incl. scoped)
Pushed 4 commits to main
- c526ae4 A teammate's write can no longer lock the team out; wording from the second judge pass · jenzylove
- 315a3f9 Proof, README and build log: the v5 run on the live site (write, two versioned opens, both stolen laptop attacks refused); access log shows the version · jenzylove
- 35611ce Docs match v5: what removal and a stolen laptop do now, the keeper as a trust point, writes and versions; Copy stays in view on phones; credits · jenzylove
- ab8037a Every open seals its release piece to a one time reply key; a fresh release piece per version; writes recorded on chain (contract v5) · jenzylove
Pushed 3 commits to main
- a9873df Web: Shared with you from QoreChain, invites tied to the invited wallet, one identity, a tidier file page · jenzylove
- 2f78ea0 CLI: coffer pull says plainly when you were removed instead of saving a file you cannot open · jenzylove
- c4bb8de Sharing delivers: each change carries the sealed file, and the contract lists files per reader · jenzylove
Pushed 9 commits to main
- b53a36b AI usage notes · jenzylove
- afcd125 web: own @types/node so the image builds without root dev deps · jenzylove
- 0e16640 Docker: skip the CLI build script in the server image · jenzylove
- 4575c11 README, license, brand mark and screenshots · jenzylove
- 1249d1e Remove stray empty file · jenzylove
and 4 more commits
Comments and questions
- No comments yet.