Decentralizing state in a real-time gaming environment.
Orchestrating a SLITH-gated play loop on BSC: high-frame gameplay up front, deterministic settlement behind the curtain.
The "Tick Rate" Problem
A Snake game updates its state (movement, collision, growth) 30 to 60 times per second. BSC finalizes every few seconds—orders of magnitude slower.
Writing every move is impossible; it would fragment the experience and burn the prize pool. We needed a gate that feels invisible to players, anchors entry economics in SLITH, and keeps payouts observable without exposing the full play loop.
Quote-and-Play
We engineered a "Quote-and-Play" pattern. Gameplay stays off-chain; the only on-chain surface is a SLITH entry backed by an edge-issued quote. The chain records intent and funds, the worker owns tempo and scoring.
- A.
Quote Signer
An edge signer produces short-lived admission quotes, bound to a wallet and round window, so tickets cannot be replayed or re-sold.
- B.
On-Chain Verification
The pay-to-play contract checks the quote signer, moves SLITH into the prize pool, and emits a ticket for the session; indexing, anti-abuse, and session state stay in the edge control plane.
FIG 2.1 - SETTLEMENT LOGIC
function payToPlay( Quote memory quote, bytes calldata signature) external {
// Verify a short-lived quote issued off-chain
address signer = ECDSA.recover(hashQuote(quote), signature);
if (signer != quoteSigner) revert InvalidQuote();
// Collect SLITH entry and mint a ticketed session
SLITH.transferFrom(msg.sender, prizePool, quote.entryFee);
emit TicketIssued(msg.sender, quoteId, block.timestamp);
}
State Synchronization
CLIENT
NODE
MAINNET
SlitherTime is proof for the Web3 infrastructure lane: chain-connected backends, signed edge control planes, and observable settlement.
The important proof here is not just the contract. It is the full system around it: admission quotes, anti-replay controls, edge orchestration, and a product flow that hides chain latency without hiding the economics.
