Secure multi-party computation allows input-parties to perform operations on their data without anyone being able to know another individual's data.
HumMPC implements an algorithm that not only performs secure summation, but also allows input-parties to securely delete their data using a token easy to remember, such as an email address, which will also be kept private. Also, the deletion process is private, as no one would know who have requested deletion.
npm install
- Run the server with
node server.js
- Run the analyst with
node analyst.js
- Input data with
node input-party.js input ${token} ${input_val}
where ${token}
could be any token such as an email
If an input-party wishes to delete data, it could be done before analyst starts computation
node input-party.js delete ${token}
- Hit enter in the analyst window to start computation! The sum of all inputs (that are not deleted) will be revealed.
make run
Input in the 3rd window as the input party described in the manual guide. You can run sh test/sample_input.sh to automate 6 inputs and 2 deletes.
We have implmented summing and averaging the input-party inputs. In server and analyst mpcAverage and mpcSum are defined at the top. Switch to whichever you like by changing the name under // start computation in both files.
See test
folder to find our method time anaylsis.
To format javascript files run,
npm run lint
npm run format