AI • Science • Technology • Future

Side Projects

A Dead-Man’s Switch That Reads Silence

Image from the original article
Featured image: original publisher image. Via original publisher.

Self-custody in cryptocurrency means you control your own wallet. But if you die, no one inherits your assets. A dead-man’s switch was designed to solve this. Most versions rely on a check-in button or a server that must keep running. If that server fails, the switch fails too.

Heirloom: A Silence-Based Switch

The Heirloom project rethinks this model. Instead of requiring a check-in, it watches your token transfers on blockchain networks. When you stop transferring, the system detects silence and triggers a release to your heir.

It runs on testnets like Base Sepolia and Ethereum Sepolia. The mainnet version is not yet live. All operations are scripted and not deployed to production.

How It Works

The core logic lives in a contract called HeirloomReactive.sol. It listens for Transfer events on specific tokens. Only events from your address count. The system checks three rules before accepting a transfer:

  • Only allowlisted tokens are monitored.
  • Transfers with zero value are rejected.
  • The transfer must originate from your address.

If a transfer fails any rule, it is rejected with a SpoofRefused event. This event is visible on-chain, so no action is hidden.

The order of checks matters. The contract bills every react() call—whether it succeeds or fails—before making expensive state changes. This keeps costs low and prevents abuse.

Attack Vectors and Fixes

Early testing revealed a flaw: anyone could emit a Transfer event from your address without your private key. On Circle’s USDC, this costs nothing. A spoofed transfer with to: 0 would look like a real one.

For example, a third party could send transferFrom(owner, spoofer, 0) with no balance or allowance. The log would still show your address in topic1. This could fool the system.

The fix is in the code: the filter checks the log data before any state update. The contract rejects any transfer with zero value or malformed data. A rejected log never touches the silence clock.

Spam attacks are limited by a per-token spam brake. After a set number of refusals within a time window, the token is unsubscribed. This prevents a spammer from hiding activity.

However, this creates a blind spot. During the unsubscribe period, real transfers from you go unseen. The system treats this as silence, which could delay a release. To prevent this, the system uses a fail-closed rule: if a brake triggers during a grace period, the grace is canceled. The clock restarts from the moment the brake lifts.

The design ensures that even if a spammer floods the system with fake transfers, the switch will not be fooled. The system does not rely on a central server or a database to track activity. Instead, it uses the blockchain itself as the source of truth. Every transfer is recorded on-chain, and every refusal is logged with a timestamp and a reason. This transparency allows users to verify the integrity of the system at any time.

The spam brake is not a perfect solution. It introduces a temporary gap in monitoring, during which real activity might be missed. But the fail-closed behavior ensures that this gap does not result in a false silence. When the brake lifts, the system resets its clock to the moment of the lift, not to the moment of the brake. This means that any real activity that occurs after the lift is immediately recognized as proof of life, and the countdown resumes from that point.

Timekeeping and Network Canaries

When no transfers occur, the system waits for a clock to tick. In Heirloom, that clock is a scheduled event—called a CRON topic—on the blockchain.

Image from the original article
original publisher image. Via original publisher. · Source

If so, it sends a callback to a vault on Base. This vault enters a grace period. Any transfer from you during grace cancels it.

If grace expires, the vault becomes claimable. The heir can then initiate and finalize the claim. Anyone can press these steps. The funds go only to the heir—or to an address they redirect.

To prevent spoofing, two guards protect the vault’s sync function: the caller must be a callback proxy, and the first argument must match the exact reactive contract.

The use of a blockchain-based clock eliminates the need for a third-party server or a dedicated maintenance team. The system does not depend on any external infrastructure. It runs entirely on-chain, with all state changes recorded in the blockchain. This makes it resilient to failure. If a server goes down, the system continues to operate. If a network node fails, the system adapts by relying on the next available node. The decentralized nature of the blockchain ensures that no single point of failure can bring down the entire system.

Failure Modes and Real-World Evidence

One failure mode is that silence from a dead contract looks identical to silence from a live one. This makes it hard to distinguish between a real owner and a dead one.

As a result, a Chainlink feed is used as a canary. If the network stops reporting data, the countdown freezes. This prevents cascading failures. In 23 hours of testing, median gaps were 3,612 and 3,636 seconds.

On a testnet instance, the full workflow ran: two grace periods, one cancellation from a real owner transfer, one expiry, and a two-step claim. All 5 callbacks were acknowledged with no resends.

After payout, the contract removed its own subscriptions. A single rnk_getFilters call shows zero active filters. This confirms the system ends cleanly.

It required the first heartbeat to be seen on Lasna. It succeeded. A third wallet—not owner or heir—pressed initiateClaim. All 8 callbacks were acknowledged on the first try.

Across all testnet instances, 69 rows of evidence exist. 37 include a callback leg. One case is a live REVIVE: after expiry, a real transfer on Ethereum Sepolia triggered a callback that re-armed the vault.

Each row in the evidence ledger is a set of explorer links: origin or CRON tx → reactive tx → callback tx. This allows users to trace every interaction in real time. The transparency of the system enables full auditability. Anyone with access to a blockchain explorer can verify whether a transfer occurred, whether it was rejected, and whether the system responded correctly.

What the System Doesn’t Do

Heirloom does not cover native ETH transfers. These emit no ERC-20 Transfer event, so they are not proof of life.

Approved spenders can keep a wallet active. A spender with allowance can make transfers without your key. This only delays release, not prevents it. The system recommends allowing only tokens with no standing approvals.

There is no notification when grace opens. Users must rely on explorer alerts or state change events. The vault emits a StateChanged event on every change.

Image from the original article
original publisher image. Via original publisher. · Source

Testnet-only operations mean real-world performance is unverified. The 11-08 instances predate key fixes. The 11-22 instance runs the current source. Mainnet has not been tested.

Technical and Financial Limitations

One known issue: the original build lacked a coverDebt() function. Direct transfers do not settle debt or create reserves. A contract in debt stops serving. In one test, the system showed a small debt of 0.0134 lREACT. A single depositTo() call fixed it.

Now, the vault refuses to start a claim if it cannot pay for the callback that would cancel it. This ensures financial stability.

Three key points from the DX report:

  1. The test library uses a legacy address. It does not work with modern Omni contracts. A small adapter was built to bridge this gap.
  2. The CRON log has empty data. Users should read block.number instead of a number parameter.
  3. Block timestamps across chains can differ by one second. In five of the first nine logs, Lasna was one second before the origin chain. This must be measured with wall clocks, not timestamp deltas.

Why This Matters

Traditional dead-man’s switches require external infrastructure—indexers, servers, schedulers. These systems must keep running after the owner dies. Heirloom removes that dependency. The contract manages its own subscriptions and state.

It is a self-sustaining, decentralized solution. The only required action is your own wallet activity. No server, no key, no maintenance.

It is not a perfect solution. It has known limits. It cannot detect native ETH transfers. It is vulnerable to spam if not properly limited. And it has not been tested on mainnet.

For now, it is a prototype. It shows how a dead-man’s switch can be built without relying on third-party services. It proves that silence—real, unspoofed silence—can be a valid signal of life.

Learn more at the original source. The code is available at github.com/edycutjong/heirloom. A live demo is at heirloom.edycu.dev/judge/.

For readers interested in similar projects, see Building an Offline-First Flutter Ledger for Shops. Or explore how a fan wiki ensures claim integrity.

Heirloom represents a shift in how we think about digital inheritance. Rather than relying on human check-ins or centralized servers, it uses blockchain events as the source of truth. The system does not require any external services to function. It runs on the blockchain itself, using only the immutable records of token transfers as proof of life. This makes it both resilient and transparent. In a world where digital assets are growing rapidly, such a system offers a practical, decentralized path to ensuring that assets pass to the right people when the owner is no longer able to manage them.

The system’s design emphasizes simplicity and reliability. It avoids complex infrastructure, reducing the risk of failure. By relying on real, on-chain activity, it eliminates the possibility of spoofing or manipulation. The silence it detects is not just a gap in activity—it is a verified absence of action, recorded in a tamper-proof ledger. This makes it a powerful tool for individuals who want to ensure their digital assets are inherited without relying on intermediaries or third-party services.

While the system has not yet been deployed on mainnet, its performance on testnets demonstrates strong reliability. The evidence ledger shows consistent behavior across multiple test runs. The system responds correctly to real activity, rejects spoofed transfers, and handles edge cases with clear, predictable outcomes. This gives users confidence that the system will behave as intended in real-world conditions.

As blockchain technology continues to evolve, solutions like Heirloom will likely become more common. They represent a natural progression in digital asset management—moving from centralized, service-dependent models to decentralized, self-verifying systems. In doing so, they empower individuals with greater control over their digital lives and assets, ensuring that when they are no longer able to act, their legacy is preserved in a way that is both secure and transparent.

Sources & further reading

Featured image: original publisher image. Via original publisher. Image source