Haven: private file sharing with ENS names, with access that ends on its own.
THE PROBLEM
- Google Drive and DocSend can see every file you share and everyone who opens it.
- Putting access control onchain is worse for privacy: anyone can read who was given your data room.
- Haven lets you share files with an ENS name (like alice.eth) without publishing who you shared with, and access ends on a date you choose.
WHAT A USER DOES
- Sign in with a wallet (one message signature). Haven makes your encryption keys on your device. "Try it" works with no wallet, using two fresh identities in one tab.
- Claim a free you.haven.eth name (we pay the gas), or link an ENSv2 name you already own.
- Create folders, or "rooms": standalone folders with a random name and their own key, not linked to your identity.
- Upload files. They are encrypted (AES-256-GCM) and padded to fixed sizes in your browser before they leave the device.
- Share by typing an ENS name, a role (viewer, editor or manager) and an end date. You can also share with a group, or with everyone under a team's name (e.g. all subnames of acme.eth).
- Make share links for single files that stop working on their end date.
- Remove access early with one click, which also changes the folder's key.
- Works on the website and as an installable phone app. On Android you can send files to Haven from any app's share menu.
ENS (ENSv2 on Sepolia): names are folders, roles are permissions
- Every folder is an ENS name with its own registry: our DriveRegistry contract, built on ENSv2's UserRegistry.
- Viewer, editor and manager are ENSv2 role bits. We added grantRolesUntil so roles end automatically.
- wasAllowed(account, role, time) tells any app whether an address had a role at a given moment.
- Private sharing: each share goes to a fresh stealth address made from the recipient's published Haven key, so the recipient's ENS name never appears in the role grant.
- Also used: namespace aliasing (mount a shared folder into your own tree), expiring subnames (share links), groups as their own registries, and syncing access with a team's subnames.
ARKIV: a public database holding private data
- Arkiv holds the file index, welcome notes, key copies and member lists. Names, keys and member lists are encrypted. Only random IDs, addresses and sizes are visible.
- Writes are checked against ENS: a folder record only counts if its writer held the right DriveRegistry role when it was written. Other writes are ignored and counted in the public view.
- A guest's key copy and welcome note expire when their access does, so they drop out of normal Arkiv queries.
- haven.keylog: a public, signed, hash-chained history of each ENS name's encryption key. Any app can look one up with one query and spot a swapped key.
- 15 entity types in total.
- Swarm (Arkiv's Swarm bonus): file contents are stored on Swarm as padded, encrypted data. Encrypted Swarm "doorbell" messages tell members when to check for updates, with polling as a backup.
ETHEREUM FOUNDATION: private networking and CROPS
- Anon-RPC: every Sepolia and Arkiv request can go through Nym, Nox or Tor, chosen in Settings.
- Each room and each stealth identity uses its own isolation key, so requests are harder to link to one person.
- Every request is labelled Private or Direct in the receipts panel. Haven doesn't hide what it can't protect.
- No analytics, trackers or third-party scripts. Fonts are self-hosted, with a strict Content-Security-Policy.
- MIT licensed. The contracts, API, website, phone app and Swarm node setup all run from the repo.
Nothing is mocked or pre-filled: every value on screen is read live from Sepolia, Arkiv and Swarm.
Haven is a TypeScript monorepo with a single Solidity contract. Everything private happens in the browser; the servers and chains only ever see ciphertext and random addresses.
The contract is DriveRegistry, built with Foundry on top of ENSv2's UserRegistry. Every folder, room and group is its own ENSv2 registry under haven.eth, so the ENS roles on it are the file permissions. We added viewer/editor/manager role bits, grantRolesUntil so a role expires by itself, wasAllowed(account, role, t) so anyone can ask whether an address had access at a given time, and an upgrade freeze. ENSv2's role hooks aren't virtual, so we record the access history by overriding _grantRoles and _revokeRoles. We tested against the live Sepolia ENSv2 contracts with fork tests, not just mocks.
When you claim you.haven.eth, your own resolver publishes a haven.key text record. To share with you, someone derives a one-time stealth address from that key (Fluidkey's stealth-account-kit) and grants the role to that address, so your name never shows up next to the folder. Share links are subnames that expire, and mounting someone's folder into your tree uses ENSv2 aliasing.
You sign in once, and that one signature derives every key on the device. Files are AES-256-GCM encrypted and padded to fixed sizes, from 64 KB up to 32 MB, before they leave the device. Folder keys change every epoch and can only be derived backwards. When your access ends, you're left holding an old key, so new files are unreadable to you without anyone sending a transaction.
Arkiv holds the sealed file index, welcome notes, key copies, rosters, a public key log per ENS name, and signed website releases. Two things made it a good fit. Expiry: a guest's key copy is set to expire at the exact moment their access ends. And queries: every screen in the app is one indexed query. The catch is that anyone can write to Arkiv, so every entry is created read-only, and the client counts it only if its creator held the right ENS role when it was written. Swarm stores the padded ciphertext through our own Bee node, sends live updates through GSOC "doorbells" whose topics rotate every epoch, and also hosts a copy of the site. All Sepolia and Arkiv traffic goes through Anon-RPC on the Nox mixnet, with a separate isolation key per room and per stealth address. A receipts panel shows which calls went private and which went direct. Our small Hono API on Fly.io sponsors names, rooms and gas, and passes Arkiv and Sepolia calls through (the browser reaches it through the mixnet). It keeps no role on anything it registers, and the app checks that onchain.