Workers Auto Approve
Rock, Paper, Scissors
game, enigma, privacy, rust, ethereum
Enigma Secret Contracts enable dApps to compute over encrypted data. One simple use-case for this is rock, paper, scissors, using Enigma to keep player choices secret until the end of each round (instead of a commit-reveal scheme).
## Solution Description
This solution should enable player A to create a new game by selecting “rock, paper, or scissors” via a visual interface, encrypt and submit the player’s choice to a secret contract, and then enable player B to select the active game, and submit the second player’s choice to the secret contract. The secret contract logic should decrypt the selections, select the winner according to the rules of rock, paper, scissors (rock beats scissors, scissors beats paper, and paper beats rock). The winning player’s address should be returned to both players.
## This will involve:
Writing an Enigma-JS interface that enables a player to start or join a game, make their move, and submits these moves encrypted to the secret contract.
Writing a secret contract that receives player addresses and moves, compares them according to the logic of rock, paper, scissors, and returns the winner.
A working application, which should have a simple React-based UI (or similar), enable the solution, and handle failure (i.e., displays a meaningful message when improperly formatted data is submitted). Two users should be able to play one another via the UI.
## Bounty Selection
For this first bounty round, the process works as follows:
1. Developer / team submits a **“pre-submission for approval”** for a bounty
2. Enigma reviews submissions, and selects an applicant (we don’t have a firm timeline for this, but hope to work quickly)
3. Applicant completes the task satisfactorily and receives the bounty
If the task is not completed, or applicant is unable to continue work in a timely manner, Enigma will select another applicant.
To complete a pre-submission for approval,
First, comment on this issue within github and indicate your interest. Then, please also complete [this application form. ](https://airtable.com/shrN7Bu95f3R21XKx)
These materials should help you get started:
[Enigma Discovery Documentation
[Developer Quickstart Guide](https://blog.enigma.co/the-developer-quickstart-guide-to-enigma-880c3fc4308)
[Secret Contracts Walkthrough](https://blog.enigma.co/getting-started-with-enigma-an-intro-to-secret-contracts-cdba4fe501c2)
Setup your profile
Tell us a little about you:
No results found for
Type to search skills..
Required [[totalcharacter]] / 240
Are you currently looking for work?
[[ option.string ]]
Setup your profile
Our tools are based on the principles of earn (💰), learn (📖), and meet (💬).
Select the ones you are interested in. You can change it later in your settings.
I'm also an organization manager looking for a great community.
Enable your organization profile
Gitcoin products can help grow community around your brand. Create your tribe, events, and incentivize your community with bounties. Announce new and upcoming events using townsquare. Find top-quality hackers and fund them to work with you on a grant.
These are the organizations you own. If you don't see your organization here please be sure that information is public on your GitHub profile. Gitcoin will sync this information for you.
Select the products you are interested in:
Out of the box you will receive Tribes Lite for your organization. Please provide us with a contact email: