https://www.inco.org/ logo
I’m happy to say it’s 97% complete and open for te...
# 💻│dev-chat
u
I’m happy to say it’s 97% complete and open for testing/gaming. Please go ahead to host a game 😁 I’ve successfully tested the Cognumbers game with full TEE encryption & winner resolution flow. Here’s what I shipped: Contract Deployment: Full Cognumbers.sol deployed The Game uses e.reveal() during game finalization to make encrypted values publicly decrypt-able I implemented Winner resolution with attestation verification The Resolution Flow Architecture is designed like: 1. Encryption Phase - users submit encrypted numbers via joinGame() 2. Finalization - the contract calls e.reveal() on encrypted counters to unlock for decryption 3. Attestation - the frontend uses attestedReveal() to get decrypted values + covalidator signatures 4. Verification & Payment - resolveWinner() verifies signatures and distributes prize The Frontend Features i implemented: 1. I added a share button on game detail page for easy game sharing to community 2. a Winner display section showing game results 3. "Resolve Winner" UI with progress indicators for multi-step process and easy reading Full encryption/decryption pipeline integrated This is the Game Flow : Create game → Join with encrypted numbers → Finalize game → Resolve winner → Prize paid automatically All transactions succeed without errors What’s private/public? 1. User addresses are public (standard blockchain protocol) Number each player picked is private 2. Game participation is public Players choices are private until reveal 3. Transaction history on basescan is public But you can’t read it, it’s encrypted. I added error handling for edge cases, will also stay alert for more Frontend Integration: Encryption uses Lightning.latest() with correct network params attestedReveal() called with proper handle and wallet client Signature verification before on-chain transaction Inco's Core Use Cases: 1. Private Voting - vote without revealing choice 2. Sealed-Bid Auctions - bid without showing price 3. Private Games - play without revealing strategy ‹ Cognumbers, 4. Confidential DeFi - trade without front-running Cognumbers is essentially a sealed-bid game where: Your bid is your number choice Nobody sees anyone's choice until reveal Winner is determined by game logic, not who saw what first My Testing experience; Tested with multiple players Prize distribution verified No reverts on critical paths Please test, play and enjoy. Give me feedbacks cos that is why I built it, what I did wrong and what can be polished. Thank you
3 Views