hackquest logo

TimeCapsule

Lock your message’s hash with an on-chain unlock time, and reveal the plaintext later via a verified event. Plaintext is never stored in contract storage.

视频

描述

## Problem

People need a trust-minimized way to seal messages until a specific future date without leaking content early.

## Solution

Store only the keccak256 hash + unlockTime on-chain. Before unlock, reveal is impossible. After unlock, the contract verifies the hash and discloses via event—plaintext is never stored in storage.

## How it works

1. Frontend computes keccak256(utf8(message)).

2. Call createCapsule(hash, unlockTime).

3. After time elapses, call reveal(id, plaintext) → hash check → CapsuleRevealed event.

4. UI listens to the event and displays the plaintext.

## Features

- Time lock by timestamp

- Privacy by design (hash-only storage)

- Minimal API: create + reveal

- Event-based disclosure

- Optional: encrypted IPFS/Arweave backup

## Tech Stack

Solidity (EVM), Base Sepolia, Ethers.js, simple web frontend. Optional: 4337 AA + Paymaster.

## Use Cases

- Embargoed announcements or giveaways

- Personal notes & celebrations

- Community time capsules

- Fair reveal of contest answers

## License

MIT

本次黑客松进展

Deployed MVP smart contract on Base Sepolia, built a simple frontend for create/reveal flow, and prepared README + demo video.

技术栈

Solidity
Base
Evm
Smart contracts
Web3 fronted

融资状态

Currently unfunded. The project was built solely for the hackathon and is self-initiated without outside capital.

Github
赛道
SocialFiAI