mirror of
https://github.com/privacy-scaling-explorations/emp-wasm.git
synced 2026-01-09 10:07:54 -05:00
add mpc_test.sh and get it working
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
using namespace std;
|
||||
using namespace emp;
|
||||
|
||||
const string circuit_file_location = macro_xstr(EMP_CIRCUIT_PATH) + string("bristol_format/");
|
||||
const string circuit_file_location = "circuits/sha-1.txt";;
|
||||
static char out3[] = "92b404e556588ced6c1acd4ebf053f6809f73a93";//bafbc2c87c33322603f38e06c3e0f79c1f1b1475";
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
@@ -15,9 +15,7 @@ int main(int argc, char** argv) {
|
||||
NetIOMP<nP> io2(party, port+2*(nP+1)*(nP+1)+1);
|
||||
NetIOMP<nP> *ios[2] = {&io, &io2};
|
||||
ThreadPool pool(4);
|
||||
string file = circuit_file_location+"/AES-non-expanded.txt";
|
||||
file = circuit_file_location+"/sha-1.txt";
|
||||
BristolFormat cf(file.c_str());
|
||||
BristolFormat cf(circuit_file_location.c_str());
|
||||
|
||||
CMPC<nP>* mpc = new CMPC<nP>(ios, &pool, party, &cf);
|
||||
cout <<"Setup:\t"<<party<<"\n";
|
||||
|
||||
Reference in New Issue
Block a user