No funded issue found.
Check out the Issue Explorer
Be the OSS Funding you wish to see in the world.
Looking to fund some work? You can submit a new Funded Issue here .
Time left
Opened
Issue Type
Workers Auto Approve
Project Type
Time Commitment
Experience Level
Permissions
Accepted
Reserved For
Secret Access-Control
enigmampc
privacy, rust, ethereum, enigma, messaging, encryption
## Request
Enigma Secret Contracts enable apps to compute over encrypted data. One simple use-case for this is “access-control”, sharing a certain message only with a qualified user.
An example of how to create a secret contract with Enigma can be found [here.](https://blog.enigma.co/getting-started-with-enigma-an-intro-to-secret-contracts-cdba4fe501c2)
## Solution Description
This solution should enable user A to encrypt a message, and specify a list of authorized recipient addresses. Users on the list of authorized recipients should be able to access and view the message.
This will involve:
- Writing a Secret Contract in Rust and deploying it to the Enigma Discovery network that handles the logic for the access-control application
- Using the Enigma-JS client to encrypt and transmit user A’s messages to the secret contract, as well as 2 or more “whitelisted” recipient addresses.
- Using the Enigma-JS client to encrypt and transmit whitelisted user’s requests for the data to the secret contract, to receive the correct output and successfully decrypt the message.
## Success
A running application, which should have a simple React-based UI (or similar), enable the solution, and handle failure (i.e., displays a meaningful message when a non-whitelist user attempts to access the secret message). Well-commented code both in the javascript and Rust.
## Implementation Details & Data Flow
1. Alice enters the Ethereum addresses of her intended recipients (Bob and Charles), and a short message, into fields in a UI.
2. The Enigma-JS client encrypts these inputs, and submits them as a task to the secret contract in the Enigma network.
3. Bob clicks a button in a UI “check for messages”, which uses Enigma-JS to submit a task to the secret contract via the UI.
4. The secret contract receives Bob’s task, and compares Bob’s address to the whitelist of Bob and Charles that Alice submitted.
5. Bob is on the list, so the secret contract encrypts Alice’s message for Bob and returns it to Bob.
6. Enigma-JS receives the message from the secret contract on the Enigma network, and decrypts it locally by calling (enigma.decryptTaskResult(task) and enabling for Bob to read in his UI.
## Elements of Submission:
Secret contract.
Contract data:
publisher: address authorized to save the message, can set to contract owner in construct
whitelist: H160[]
secretMessage: message data
Functions:
sendSecretMessage(addresses: H160[], str: message)
- sender must be contract owner
- validate 2 or more recipients
- validate message
readMessage()
- if sender address is whitelisted, return message.
Front end:
Create 2 UI components, 1 for the owner/publisher to save a message and recipients, and another (possibly same) for a user to view the secret message
## Other deliverables:
Migration scripts (if required)
Integration tests
Readme
## 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, comment on this issue within github and indicate your interest. Then, please also complete [this application form. ](https://airtable.com/shrN7Bu95f3R21XKx)
## Resources
These materials should help you get started:
[Enigma Discovery Documentation
](https://enigma.co/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)
[Enigma-JS
Walkthrough](https://blog.enigma.co/getting-started-with-enigma-a-front-end-demo-for-dapps-bc694d3d81b9)
Setup your profile
Tell us a little about you:
Skills
No results found for [[search]] .
Type to search skills..
Bio Required
[[totalcharacter]] / 240
Are you currently looking for work?
[[ option.string ]]
Next
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.
Back
Next
Save
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:
Email
Back
Save