ChainMate

Chess wagering with zero-knowledge proofs. Play, prove your wins, claim rewards trustlessly.

Visit Repo
ChainMate banner

About

ChainMate is a trustless P2P chess wagering platform that eliminates the need for centralized escrow services. Players create wagers on one blockchain and opponents can accept from any chain using Avail Nexus for seamless cross-chain bridging. Game outcomes are automatically verified using Reclaim Protocol's zero-knowledge proofs, which cryptographically prove Chess.com results without exposing private session data. All transactions are tracked in real-time via Blockscout SDK integration, providing complete transparency. Smart contracts handle escrow and settlement automatically, with winners receiving funds instantly after verification. Built with Hardhat 3, featuring 95%+ test coverage and deployed on Base Sepolia and Arbitrum Sepolia.

How it's made

Built with Next.js frontend, Node.js backend, and Solidity smart contracts developed using Hardhat 3's new EDR runtime and Viem testing framework. Integrated Avail Nexus SDK to enable cross-chain wager acceptance - users can accept wagers on Base using funds from Arbitrum in one transaction. Blockscout SDK provides real-time transaction toast notifications and history popups for complete transparency. Backend service runs automated verification using Reclaim Protocol to generate zkTLS proofs of Chess.com game outcomes, which are verified on-chain by our ReclaimVerifier contract. Notable challenge: Fixed critical winner determination bug where we had to parse Chess.com's result format ("1-0", "0-1") and match winning color to player usernames to determine correct wallet address. Used Hardhat 3's chain type specification to optimize gas costs for L2 deployments. All four partner technologies work together seamlessly to create a truly trustless, cross-chain wagering experience.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

BlockBounty

BlockBounties is a decentralized platform for secure, trustless agreements. Using attestations, smart contracts, and decentralized storage, it automates payments for any project needing escrow—from bug bounties to milestone-based collaborations. Trust made easy on-chain!