scrtlabs / EnigmaBounties

Secret Contract samples
5 stars 2 forks source link

Rock, Paper, Scissors #5

Open ainsleys opened 5 years ago

ainsleys commented 5 years ago

Request

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.

Success

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.

Resources

These materials should help you get started: Enigma Discovery Documentation Developer Quickstart Guide Secret Contracts Walkthrough Enigma-JS Walkthrough

gitcoinbot commented 5 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 920.0 ENG (431.02 USD @ $0.47/ENG) attached to it as part of the enigmampc fund.

guix77 commented 5 years ago

Seems fun but isn't it already https://github.com/PeterMPhillips/Enigma-Rock-Paper-Scissors ?

ainsleys commented 5 years ago

Seems fun but isn't it already https://github.com/PeterMPhillips/Enigma-Rock-Paper-Scissors ?

Hi @guix77 -- yes, but with some key differences. Since releasing Discovery (our most recent version), secret contracts are now both stateful and written in Rust, and logically separate from the smart contract.

ainsleys commented 5 years ago

Also -- reminder to everyone who is applying, please make sure you fill out this form as well-- https://airtable.com/shrCaj2aohztgjAJ2 (cc @thesachinmittal @x5engine @ashleyoyt @nionis -- I think all other applicants did already)

ainsleys commented 5 years ago

Hey @bshevchenko and @solexplorer -- would you mind sending me an email at ainsley@enigma.co ? We've decided to start work with @petermphillips on this one, but would like to discuss / possibly suggest one of our other bounties. I have already have emails from other applicants :).

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

ainsleys commented 5 years ago

Hey @PeterMPhillips I snoozed the warnings, I know you're still working.

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 5 years ago

@petermphillips Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

blackswordsman7 commented 4 years ago

@ainsleys Any updates on the bounty?

nionis commented 4 years ago

perhaps author forgot to submit work https://github.com/PeterMPhillips/discovery_rock_paper_scissors

gitcoinbot commented 4 years ago

@nionis Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 4 years ago

@nionis Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 4 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


@nionis due to inactivity, we have escalated this issue to Gitcoin's moderation team. Let us know if you believe this has been done in error!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 4 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


@nionis due to inactivity, we have escalated this issue to Gitcoin's moderation team. Let us know if you believe this has been done in error!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

nionis commented 4 years ago

@gitcoinbot @ainsleys I have been busy this last a few weeks moving to a new apt, the development of the project has started but I am not sure when it's gonna be complete, I estimate in one month. If that's an issue I can remove myself from the project so somebody else can work on it 👍

gitcoinbot commented 4 years ago

@nionis Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 4 years ago

@nionis Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

nionis commented 4 years ago

@ainsleys is it possible to snooze this? here is my https://github.com/enigmampc/EnigmaBounties/issues/5#issuecomment-555613980 in case you missed it

gitcoinbot commented 4 years ago

@nionis Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

gitcoinbot commented 4 years ago

@nionis Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

nionis commented 4 years ago

@gitcoinbot working on the UI

ainsleys commented 4 years ago

Thanks steve -- apologies for not muting the bot. Let me know if you want me to do that or if its causing any issues.

Cheers

On Mon, Dec 9, 2019 at 5:43 AM Steve notifications@github.com wrote:

@gitcoinbot https://github.com/gitcoinbot working on the UI

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/enigmampc/EnigmaBounties/issues/5?email_source=notifications&email_token=AAJQWONT6MGODDWSM6IGZQDQXYOMRA5CNFSM4IFXZXL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGIV2PA#issuecomment-563174716, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJQWOJUNYXRI5CW2NMPGXDQXYOMRANCNFSM4IFXZXLQ .

nionis commented 4 years ago

UI is expected to be done by Monday, @AshleyOyt is helping out on this one ❤️

AshleyOyt commented 4 years ago

I finished the UI and I made it look similar to the previous Enigma bounties that Steve worked on. 😄

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Workers have applied to start work.

These users each claimed they can complete the work by 2 years, 4 months ago. Please review their action plans below:

1) igormuba has applied to start work _(Funders only: approve worker | reject worker)_.

I have read the documentation and seems like it is not hard to be done. I have seen others applied but gave up so maybe it is look quite as easy as it looks, but worth trying. 2) santiagogregory has applied to start work _(Funders only: approve worker | reject worker)_.

I read the quickstart guide and I know Rust, so I was wondering if this bounty would still be available.

Learn more on the Gitcoin Issue Details page.