How it works
One entity’s lifetime is the deadline. Everything else is proof.
On the Clock files a vulnerability report as a handful of Arkiv entities. The embargo is the Entity Expiration of one of them, so the deadline is kept by the chain, not by a person or a platform. Below: the whole flow, why it needs Arkiv, what never goes on Arkiv, and where it can still fail.
One case, start to finish
- 01File it sealedThe researcher writes one atomic batch: the encrypted case file, a clock whose Entity Expiration is the deadline, and three triggers that each escrow one watcher’s share of the advisory key. The case file and the triggers are handed to 0x…dEaD in the same transaction, so nobody can edit or delete them.
- 02Answer unseenThe case is addressed to the vendor’s stealth inbox. The vendor finds it by its view tag, opens it with its view key, and answers from a one-time responder address. Anyone can see the case was acknowledged; nobody can see by whom.
- 03ExtendOnly the clock’s custodian can move the deadline: a Lifetime Extension on the clock and on every trigger, plus a grant record, in one batch. The vendor’s own extendEntity reverts with NotOwner.
- 04LapseAt the deadline the clock’s lifetime runs out. Arkiv emits no event for that and nobody has to act: the entity is simply no longer there.
- 05Prove itEach watcher checks that the clock existed one block before its deadline (a historical query), that it is gone now, and that no EntityDeleted log names it. Then it publishes a receipt carrying its share.
- 06Rebuild KAny two of the three shares rebuild the advisory key K. The watcher whose receipt completes the threshold checks K against the case and publishes the reveal in the same batch as its share.
- 07RevealAnyone’s browser decrypts the advisory with K. The vendor is named only after K proves the case was addressed to that vendor’s keys and the inbox it names matches them.
01 · Why Arkiv
Every place you could keep the date belongs to someone in the dispute.
A disclosure deadline is a disagreement waiting to happen. The vendor wants more time, the researcher wants a date that holds, and whoever stores the date can be asked, paid or ordered to move it. So the question is not where to keep a timestamp. It is who can change it, and who can check.
- If the date lived inWhat breaks
- PostgresWhoever holds the admin password can move the date or drop the row, and nobody outside can tell it happened. The deadline is enforced by a cron job someone has to keep running.
- IPFSThe content is fixed, but nothing about a CID knows a deadline or expires. Pinning is someone’s choice, authorship has to be bolted on with signatures, and there is no query for “every case ending this week”.
- A contract and a subgraphThe deadline becomes a storage slot whose guard you write and audit yourself, ciphertext is expensive to keep in contract storage, and every read goes through an indexer someone hosts.
- Our own APIWe become the party that can be leaned on, by either side. If we go offline, the deadlines go with us.
Entity Expiration enforces the deadline
The clock is an entity whose lifetime is the embargo. Only its owner can apply a Lifetime Extension; the vendor’s attempt reverts on chain. When the lifetime ends the entity is gone, whether or not anyone is watching.
$creator settles authorship
The chain records who wrote each entity, and nobody can change it. A vendor act counts only if the case’s responder wrote it, a grant only if the custodian did. Attributes and payloads are claims; $creator is not.
Anyone can query it without us
This site reads Arkiv from your browser through the public RPC, and npx on-the-clock verify <case> rebuilds every verdict from a terminal. If the site disappears, the cases do not.
02 · Off Arkiv, on purpose
The public record carries a case, never the exploit.
Some things are kept off the chain entirely, and some go on it only as ciphertext. Each of these is a decision, not an omission.
- The proof of conceptOnly its SHA-256 hash. A working exploit on a public database would be the worst mistake this product could make.
- The full report, readableOn Arkiv only as ciphertext for the vendor. Its key is never released by the protocol, not even at the deadline: the reveal opens the advisory summary, not the report.
- The vendor, while the case is openAn entity saying “vendor X has an open critical, nine days left” is targeting intelligence. Until the reveal, the vendor is a stealth address.
- Correspondence, triage, the patchVendor notes are optional and encrypted to the researcher.
- Real identitiesResearchers are wallets. All demo data is synthetic.
- SecretsWatchers hold their shares in memory and re-derive them from the chain on restart. Nothing secret is written in plaintext.
Arkiv keeps payloads in transaction calldata: an expired entity drops out of query results, not out of history. That is why every confidential field is encrypted, and why nothing here relies on a short lifetime to keep a secret.
03 · Arkiv, feature by feature
Each feature does a job you can see.
- FeatureHow it is usedWhere you see it
- Attributes vs payloadAttributes carry only what is queried:
kind,case,sev,watcher,vendor. Everything else is a JSON payload, mostly ciphertext.The board filters by severity without opening a single report. - Compound queries
app = "onclock" && ($key = C || case = C)returns a case file and everything that points at it, cursor-paged.A case page is one query, and the CLI prints it so you can run it yourself. - Entity Expiration, per typeClock: the deadline. Triggers: the deadline plus 7 days. Records: 365 days. Inbox: a 30-day lease. Watcher: a 10-minute lease.Every lifetime says what the entity means.
- Lifetime Extension as a leaseWatchers renew their lease every 3 minutes; an inbox is renewed by its vendor’s activity.The watchers page: present means alive.
- Lifetime Extension as a grantThe custodian extends the clock and every trigger, and writes a grant record, in one batch.A granted extension moves the countdown on the case page.
- Creation flags
readonlyon every record, so nothing is edited after the fact.permissionlessExtensionon case files, triggers, receipts and reveals so anyone can keep evidence alive, and deliberately off on the clock.Anyone can keep an advisory alive. Only the custodian can keep a deadline alive. - $creator, $owner, changeOwnership
$creatordecides whose act counts;$ownerdecides who can extend.changeOwnershipseals the case file and triggers to 0x…dEaD at filing, and hands a clock to a coordinator.Acts from the wrong address show as ignored on the case timeline. - watchEntityEvents over WebSocketWatchers reschedule on ExpiryExtended and treat EntityDeleted as a withdrawal. The site refreshes on events from a case’s known authors.Countdowns move the moment an extension lands, without a reload.
- Atomic batchesFiling, granting, handing off, disclosing early and the lapse are each one transaction.There is never a clock without escrow, or an extension without its record.
- Historical queries
atBlock(deadline − 1)shows the clock was alive just before it lapsed, which together with the delete logs separates a lapse from a withdrawal.Each receipt records the block it checked.
04 · Threat model
Who can do what, and what it would take.
Anyone can write anything to Arkiv, so the model starts from that. What counts is decided by who wrote it and by recomputation, which leaves each party a short list of real powers.
- PartyCanCannot
- Vendorthrough a stealth inboxCanFind its own cases, acknowledge, ask for time and mark fixed, each from a one-time address. Stay silent: the deadline runs anyway.CannotExtend the clock (reverts NotOwner), edit or delete the case file (owned by 0x…dEaD), or read the advisory early: it holds no shares. Deleting its inbox does not dodge the name: the reveal checks the inbox as it stood at filing.
- Researcherthe case’s $creatorCanGrant extensions, hand the clock to a coordinator, disclose early, or withdraw by deleting the clock. Each of these leaves a public record.CannotGet the watchers to release before the filed deadline, name a vendor the case was not sent to, or back-date a grant: receipts are judged by the clock’s on-chain logs.
- Coordinatorafter a handoffCanEverything the researcher could do with the deadline, once the clock is handed over. The handoff is a record of its own.CannotRead the report or the advisory early. It holds the clock, not the keys.
- Watchersone share eachCanPublish their share after the deadline, or refuse to: release needs k of the n. If k of them collude, they could rebuild K and release before the deadline.CannotDo that unnoticed: a watcher reveal written before the deadline is flagged on the case as an early release. One watcher alone learns nothing, and none of them can read the report.
- Anyoneany walletCanWrite any entity with any attributes: fake acknowledgements, fake receipts, bogus reveals, decoy clocks. Keep evidence alive with a Lifetime Extension.CannotMake any of it count. Every verdict is a $creator check or a recomputation, so forgeries show up as ignored.
- Tiramisuthe chainCanToday a single block producer orders every transaction. It could delay or drop a receipt, a grant or a reveal.CannotForge $creator or read ciphertext. Censorship shows up as a receipt that is missing, never as one that is false.
They can rebuild K before the deadline and publish it. The protocol cannot stop that; it can only make it visible, as a reveal whose block is earlier than the clock’s expiry. The defence is choosing watchers whose operators do not answer to each other, which is why anyone can run one.
05 · Engineering notes
Mistakes we found in our own design while building it, and the fix.
Each of these was a real hole in an earlier version. The fixes live in code anyone can run: the SDK’s state derivation and the watcher.
A copied share aimed at a sooner clock
A trigger’s share was bound to its case and nothing else. Anyone could copy the ciphertext into a new trigger pointing at a clock they controlled, set to lapse sooner, and the watcher would release on that clock’s schedule.
nowEach share is encrypted with the case, the clock and the watcher as associated data. Moved to any other clock it does not decrypt, and a watcher only accepts triggers written by the case’s researcher for the clock the case file names.
One “withdrawn” outvoting k lapse receipts
The status logic looked for a withdrawal before it counted shares, so a single watcher claiming the clock had been deleted could mark a lapsed case withdrawn and hide a reveal that k shares had already made possible.
nowk verified shares always win. A withdrawal needs the same threshold of watchers, or a clock gone before its deadline, to stand.
A bogus reveal blocking the real one
The first reveal entity on a case was taken as the reveal. Anyone could post one early with a key that opened nothing, and the real reveal behind it would be ignored.
nowA reveal counts only if its key opens the case: it decrypts the advisory, opens the vendor commitment, proves delivery and binds the responder. Who posted it does not matter.
A forged clock
Anyone could create an entity with kind = clock pointing at a case, with whatever expiry they liked, and the app could read it as that case’s deadline.
nowOnly the clock the case file committed to, by key, written by the case’s own researcher, counts. Every other “clock” is noise.
A researcher naming another vendor’s inbox
The vendor’s name at reveal comes from a bundle the researcher wrote. A case sent to one vendor could be revealed blaming another.
nowThe named inbox must be created by the named vendor and carry the exact stealth keys the case was sent to. Otherwise the case shows a mismatch and names nobody.
A reveal “proving” delivery to a vendor who never received it
The check derived the responder from the vendor’s public key, which anyone can do whether or not the case was ever findable by that vendor.
nowThe reveal opens the addressing key, so anyone can recompute the ephemeral key, the view tag and the responder from the vendor’s keys. Opening it would have exposed the report too, so the report is now sealed under a second key that is never opened.
Grant records the chain never applied
Receipts were judged against the deadline the grant records claimed. A grant entity written without the Lifetime Extension behind it made honest lapse receipts look premature.
nowOnce the clock is gone, receipts are judged by its own on-chain logs: the EntityCreated expiry and every ExpiryExtended after it. A grant the chain never applied is flagged, not trusted.
06 · Honest limits
What this does not do yet.
- Testnet onlyEverything runs on Tiramisu with synthetic data. Nothing here protects a real vulnerability today.
- The demo watchers are oursThe three watchers in this demo are run by the project, on three separate machines. The protocol lets anyone run one and a case can name any watchers, but independence only becomes real with independent operators.
- A single block producerTiramisu has one today. It cannot forge authorship or decrypt anything, but it could delay or censor transactions.
- Responder gas comes from the researcherThe one-time responder needs gas, so the researcher sends it in a plain transfer. That does not link the vendor, but it does link the researcher’s wallet to the case’s responder.
- Deadlines are 2 s blocksA deadline is a block height, not a timestamp. Watchers check every few seconds, so a release lands a few blocks after the deadline, never before it.
- History reaches back about 11 daysIf a vendor deletes its inbox and the case was filed longer ago than that, attribution reads “unknown” instead of naming anyone.