Crypto PvP Protocol
Blockchain Consultant.
Jun 2025 - Nov 2025
Design and implementation of a provably fair PvP betting protocol on Solana, starting with an on-chain Rock-Paper-Scissors game.
The protocol uses a commit/reveal flow so neither player can wait to see the opponent's move before choosing their own. Players create or join games, escrow SOL wagers into a game account, commit a salted hash of their move, and later reveal the move and salt. The program verifies the reveal against the original commitment, determines the winner on-chain, and pays out the pot.
The design also covered best-of-N rounds, player profiles and statistics, configurable protocol fees, timeout-based forfeits when a player fails to commit or reveal, and the React/Anchor frontend flow for creating, joining, playing, and resolving games.
My work focused on the Solana program architecture, Anchor implementation, game-state model, wager and payout mechanics, and the frontend integration needed to make the protocol usable as a PvP betting product.