Urgent.News

One page, thousands of outlets. See who else covered it.

Editions

Tech

What If the Blockchain Could Judge Your Bluff Without Seeing Your Dice?

Liar’s Dice sounds like a perfect game to put onchain. The rules are simple, every move can be verified, and you don’t need a centralized game server deciding who won. There is just one problem. Blockchains are public. Liar’s Dice only works if your dice are private. If I simply stored every roll inside a normal smart contract, anyone could inspect the state and know exactly what everyone was…

Liar's Dice is a game well-suited for blockchain implementation, as each move can be verified and a centralized game server is not required. However, the public nature of blockchains presents a challenge. In traditional Liar's Dice, players keep their dice private, and revealing them would negate the bluffing aspect of the game. To address this, the FHE Liar's Dice smart contract was created, enabling encrypted dice to be used for gameplay while maintaining privacy.

Fully Homomorphic Encryption (FHE) is the key technology behind this implementation. It allows computations to be performed on encrypted data without the need for decryption. In FHE Liar's Dice, each player's dice rolls are stored as encrypted values within the smart contract. This ensures that opponents, indexers, and even the contract operator cannot view the actual dice values, preserving the element of bluffing.

The core challenge lies in verifying a player's bluff without exposing their dice. When a player claims to have a certain combination of dice, the contract must check every encrypted die and determine if the claim holds true. To achieve this, the contract performs the comparison of encrypted dice values directly, without ever decrypting the actual numbers. By doing so, the contract can verify the validity of a bid and declare the winner without revealing the individual dice values.

The game state in FHE Liar's Dice is divided into two categories: public and private. Public elements include who joined the table, turn order, each bid, who challenged, whether the bid was valid, and the final result. However, the active dice rolls themselves remain private, creating a balance between strategy and verification.

After a challenge is resolved, the winning hands can be revealed, allowing players to confirm the outcome of each round. The final player standing wins the game. This method eliminates the need for a trusted game master, ensuring that the hidden-information mechanics of Liar's Dice remain intact while using blockchain technology.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

React useScrollLock Hook: Lock Body Scroll for Modals (2026)

Your modal is open, centered, perfect. Then someone flicks the overlay and the page behind it scrolls away underneath. Everyone's first fix is the same three lines: useEffect (() => { document .

  • Prevents page scrolling when modal is open
  • Use useEffect to control overflow property
  • @reactuses/core's useScrollLock hook addresses issues

15 GTA 6 Details From New Gameplay Leak

Two clips claiming to show Grand Theft Auto 6 gameplay have appeared online alongside images showing the full map of … Read More The post 15 GTA 6 Details From New Gameplay Leak appeared first on ProPakistani .

Why WhatsApp voice notes break general-purpose transcription

Most speech-to-text is benchmarked on audio that looks nothing like a WhatsApp voice note. The standard evaluation sets are read speech, broadcast news, or recorded interviews: single speaker, decent microphone, one language, quiet room, speaker aware they are being recorded. A WhatsApp voice note is close to the opposite on every axis.

More from Wednesday 19 August →