Projects / time-capsule-contracts · 2024 · Backend & smart contracts (team of 4)
★ Best Use of Starknet
Time Capsule Smart Contracts
Files you can lock until a chosen date, enforced on-chain, served over IPFS.
What it is: A web app that lets you encrypt a file and release it only after a chosen date, with the lock enforced by smart contracts rather than a server. What it does: derives elapsed time from blockchain block numbers and oracles, keeps decryption keys on-chain, and serves the encrypted payload from decentralized storage.
How it works
- Time-lock logic in Cairo. Contracts deployed on Starknet derive elapsed time via block numbers, cross-checked with oracle feeds, so no operator can unlock early.
- On-chain key custody. Cryptographic decryption keys are persisted on-chain and released only when the lock condition holds.
- Decentralized content. Files live on IPFS; the frontend controls access purely through contract state: no central file server to trust or take down.
- Frontend. A responsive Next.js interface for upload, lock configuration, and claim flow.
Outcome
Winner of Best Use of Starknet at the hackathon. The project taught me more about designing trust boundaries than any coursework: when the chain is your clock and your notary, every assumption about "the server will handle it" has to be re-examined.