menu_book

Guide

This is a simple BTC Up/Down bet game with FHE. Your direction stays private until reveal. Everything runs on-chain, no server needed.

Privacy

Up or Down is encrypted. Others only see HIDDEN.

Serverless

All data lives in the contract. The UI can be replaced.

Automatic

Chainlink Automation can finalize rounds after they end.

Round Basics

  • Each round is 60 minutes.
  • You can bet only the next round (fair timing).
  • Bet amount is fixed.
  • Result is Up, Down, or Tie.

Next round only = no last-minute advantage.

How to Bet

  1. Connect wallet on Sepolia.
  2. Pick Up or Down for the next round.
  3. Wait for the round to end (about 1 hour).
  4. Check the result in Live Feed.

Your direction is private until you decrypt it.

Reveal & Claim

1) Finalize

After round end, result is set. Automation can do this.

2) Reveal

Someone calls reveal once per round to open totals.

3) Decrypt

The bettor can decrypt their own direction if needed.

4) Claim

Winners claim payout. Tie refunds the stake.

Reveal is needed because totals are encrypted. It does not expose individual bets.