About
## Challenges we ran into
**Designing a reliable time-based state machine**
A major challenge was handling the transitions between Active, Locked, and Distributable states. Relying on a stored state variable could become unsafe if nobody paid gas to update it.
I solved this by deriving the current state from *block.timestamp*, the last check-in time, the check-in interval, and the lock period. The contract always calculates the live state when it is read, while poke() only materializes transitions for events and off-chain monitoring.
**Preventing unfair beneficiary payouts**
A naive implementation could calculate each beneficiary's share from the remaining vault balance. For example, if one beneficiary claimed 60% first, the second beneficiary could incorrectly receive 40% of the reduced balance.
I solved this by snapshotting each asset's balance on the first claim. Every beneficiary's share is then calculated from the original snapshot, ensuring that all beneficiaries receive their correct percentage.
**Building two-factor verification without exposing private contact data**
Phone numbers and email addresses should not be stored publicly on-chain. I kept the plaintext contact information in the backend and stored only a hash commitment on-chain. The owner must also sign their contact details with their wallet before they can be registered.
*The verification code is split between phone and email, so compromising only one channel is not enough to complete verification.*
## The problem it solves
**Todder** is a blockchain-based digital inheritance system for crypto assets.
Crypto assets can become permanently inaccessible if an owner dies, loses access to their wallet, or is unable to check in. Todder allows an owner to:
- Deposit HSK and ERC-20 tokens into a secure vault.
- Define beneficiaries and assign exact percentage shares.
- Periodically prove they are still active.
- Use either a direct wallet check-in or two-factor verification through phone and email.
- Give beneficiaries access only after the owner misses the check-in period and the grace period expires.
- Allow each beneficiary to claim independently from their own wallet.
- The vault automatically freezes withdrawals when a check-in is missed. If the owner verifies during the grace period, the plan returns to Active. If the lock period expires, distribution becomes permanent.
The system also protects beneficiaries from unfair payouts by snapshotting asset balances when distribution begins. This prevents an earlier claimant from reducing the amount owed to later claimants.
***Todder is not a legal will. It is an on-chain mechanism for distributing digital assets.***
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.











