DOOM MARKET

Privacy

How sealed bets work.

Commit-reveal keeps your position private until it no longer matters. View keys let you prove it to whoever you choose.

01

Commit

Pick YES or NO. Your browser generates a random 32-byte salt and computes keccak256(abi.encode(side, salt, you)). Only that hash and your BNB deposit go on-chain.

02

Wait

While the market is open nobody can see which side you chose — not the creator, not other bettors, not MEV bots. The pool size is public; the split is not.

03

Reveal

After close, you submit your side + salt. The contract re-hashes and checks it matches your commitment. Unrevealed bets are forfeited.

04

Claim

Once the market resolves (survived vs. doomed), winners claim their share. If the token died, the creator bond is added to the NO side and holders.

The commitment

salt       = crypto.getRandomValues(32 bytes)
commitment = keccak256(
  abi.encode(uint8 side, bytes32 salt, address user)
)
// side: 1 = YES (survives), 0 = NO (doomed)
// stored locally: localStorage["doommarket:commit:<marketId>"]

Stealth wallets

Bet from a fresh one-time address derived from your main key. Even after reveal, the position can’t be trivially linked back to your public wallet.

View keys

Generate a read-only view key scoped to your bets. Share it with an auditor, exchange or tax tool to prove your history — without making it public.

View key generation ships with the mainnet contracts.