Mirrorlease
Verified downloads that outlive a blocked website
Created on 15th October 2026
•
Mirrorlease
Verified downloads that outlive a blocked website
The problem Mirrorlease solves
When a project's download site gets blocked in a country, seized, or hacked, its users lose two things at the same moment: a place to get the file, and a way to tell the real file from a fake one.
The second part is the one people underestimate. In 2016 the Linux Mint website was hacked and the ISO download link was pointed at a backdoored build. The checksum on the same site was swapped too, so anyone who checked carefully still installed the backdoor. A checksum on the same site as the download only protects you when nothing has gone wrong.
The people this affects most are the people who most need the software: users of VPNs, privacy tools, wallets and messengers in places where those get blocked. Unofficial mirrors appear quickly, but there's no way to know which ones serve the real build. There is a quieter problem too: old builds with known holes get installed for years because nothing tells the user the project stopped supporting them.
Mirrorlease splits the problem in two:
- The publisher writes each release (version, sha256, size, channel) to Arkiv from its own wallet. Its Entity Expiration is the support window, so an old build shows as end-of-life instead of looking fine.
- Anyone can list a mirror as a 6-hour lease on Arkiv. A keeper re-downloads it every 2 hours and renews the lease only while the bytes still match; a mirror that goes bad just lapses. Users who verified a download can renew it too.
- The user pins the publisher's address once (from the README, a signed tag, a QR code). The web page or CLI reads Arkiv directly, with no Mirrorlease server in between. It tries mirrors in order, hashes the file locally, and refuses anything that doesn't match.
- If a build turns out to be compromised, the publisher revokes it. The revocation and the fixed release go out in one atomic transaction, and the revocation appears on open pages live over WebSocket.
Mirrorlease dogfoods itself: the demo app is Mirrorlease's own CLI. It has five mirrors: GitHub Pages, jsDelivr, raw GitHub, a dead "official" host, and a poisoned copy.
Challenges I ran into
The biggest one was the public RPC's anonymous query budget. After about an hour of end-to-end testing, every query started returning HTTP 429 ANON_COST_LIMITED. viem retries 429 with backoff, so from the SDK it looked like a hang lasting a minute or two, and at first we blamed a query that ran right after changeOwnership. Replaying the call with curl showed the real response. The budget is 10000 units per window and every arkiv_query costs 100, whatever it selects. We added a fetch wrapper that reads Arkiv-Cost / RateLimit and fails fast with the reset time, and rebuilt the views around single OR queries. An app page went from 600 units to 100.
Expired entities were the second challenge. We use expiration as the support window, but once a release expires it disappears from queries, and then the tool can't tell the user "this was 0.0.8, support ended on <date>". The fix: list the publisher's EntityCreated / ExpiryExtended logs with getLogs, then read the entity with atBlock(expiresAt - 1). Along the way we hit the undocumented 100000-block eth_getLogs limit, which viem reports as a generic "invalid parameters" error.
Smaller ones:
gt("version", 0)silently matches nothing on au64attribute, because the bare number becomesi32.exists()is exported but rejected by the node with an unrelated "type" error.
The rest is in arkiv/friction.md, each item with reproduction steps.
Link to a twitter post explaining your project (or post with the video)
Tracks Applied (3)
