Skip to content

Simple application for validating secret data sets

Notifications You must be signed in to change notification settings

scrtlabs/enigma-data-validation

 
 

Repository files navigation

Secret Data Validation

This solution enables User A to upload a small dataset (email, phone number), and also enables a second user to submit their own dataset (with the same fields).

Then, the secret contract compares the two data sets. If they are equivalent, the secret contract sends an encrypted affirmation of this to User B, who has now verified their data set against user A.

If they are not equivalent, the user receives a false response.

Install

1. Start Discovery Network

In a separate terminal:

npm i -g @enigmampc/discovery-cli
npm install
discovery start

2. Deploy Contracts

discovery compile
discovery migrate

3. Start dApp

cd client
npm install
npm start

Using dApp

  1. Navigate browser to https://localhost:3000/
  2. Wait for Enigma to load.
  3. Select address.
  4. Fill in the phone and email fields.
  5. Click 'Submit'.
  6. Go to step 2.

Test Contracts

From the root of your project:

discovery test

About

Simple application for validating secret data sets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.5%
  • HTML 4.1%
  • Rust 3.2%
  • CSS 2.2%