Sign inSign up

sidvash/secure_party

By sidvash

Updated almost 7 years ago

Image
0

87

sidvash/secure_party repository overview

CSC481 Project on Two-party Secure Computation Tasks

Contributors: Andrew Read-McFarland and Siddharth Vashishtha

We build the source emp toolkit from: https://github.com/MPC-SoK/frameworks/tree/master/emp and build on top of it.

Steps to run the emp-toolkit functions:

  1. Pull the image from dockerhub by typing the following in terminal:

     docker pull sidvash/secure_party:version1.1
    
  2. Open two terminal windows for two parties.

  3. In terminal 1, run the container:

    docker run -it --name container1 sidvash/secure_party:version1.1
    
  4. In terminal 2, open the same container as above using:

    docker exec -it container1 bash
    
  5. In both Terminals, go to the following directory:

    cd  emp-sh2pc/build/bin/
    
  6. Once in the bin directory, follow the below instructions to run a specific function:

Examples for each function:

(a) Edit distance:

In Terminal 1, type:

     ./editdistv2 1 8080 AAAAA

In Terminal 2, type:

     ./editdistv2 2 8080 GGGGG

You should get the output:

    connected
    DISTANCE: 10

(b) Relatively prime:

In Terminal 1, type:

     ./relativelyprime 1 8080 4

In Terminal 2, type:

     ./relativelyprime 2 8080 9

You should get the output:

    connected
    The numbers are relatively prime.

(c) Mean Squared Error:

In Terminal 1, type:

     ./msquare 1 8080 5 5 5 5 5

In Terminal 2, type:

     ./msquare 2 8080 1 2 3 4 5

You should get the output:

    connected
    The mean square error is: 6

Tag summary

Content type

Image

Digest

Size

264.3 MB

Last updated

almost 7 years ago

docker pull sidvash/secure_party:version1.1