Please describe your proposed solution
The team is currently developing cPoker: an interactive dApp based on Kaleidoscope and Royale: two IOG's research paper focusing on implementing cryptographic protocols to allow multiple users to interact in a game. Please, see the video at the bottom of this section, to have a glimpse at the cryptographic protocol being implemented.
The team is currently using an in-house communication solution (DRED: Decentralized Redis) both for handling transactions and for exchanging information for the implementation of the cryptographic protocol.
We developed DRED because Hydra was not available when we started development. Now that Hydra has been released and tested, we think that our dApp would be an extremely interesting real-world use case for implementing a PoC demonstrating how to handle real-time interactions.
Specifically, we want to study a possible implementation of handling both the transactions and the cryptographic exchanges directly on Hydra.
The scope of our solution will be the following:
- Verify the feasibility and outline the implementation of a testnet smart contract that will:
- lock funds for a number of participants, in order to start the game
- enable to perform in-game transactions directly on the Hydra sidechain
- release funds according to game results
- Verify the feasibility and outline the implementation of a cryptographic protocol exchange using hydra, specifically a Threshold Elgamal exchange, in according to what what is presented on the Kaleidoscope paper, with focus on
- implementing an exchange between participants to agree on a shared key
- enable the participants to perform partial encryptions (and notify others)
- enable participants to perform partial decryptions (and notify others)
- Implement a PoC to consolidate both the previous implementations.
- Produce documentation and video explanation detailing the results.
Please, note: Since this is a research project, we will produce adequate documentation and evidence, but the output result may vary.
The video below gives an idea about the experience of the team implementing the cryptographic protocol, and how the Hydra study should be placed in the solution.
<https://www.youtube.com/watch?v=sOVCTPa5ZB0>