This is a template repository designed to be the hello-world of mpc-framework.
It uses summon for circuit generation and emp-wasm-backend for secure 2PC.
It's a computation between two servers to find the larger of two numbers.
- ~100 sloc
- Communication with WebSocket
- Circuit code included via ordinary project files
npm install
npm run server1
npm run server2
The two input numbers are encoded in a constant for the sake of the example, and the computation's output will be displayed immediately.
This is a template repository. You are free to use it as a starting point for your own work without restriction. You may modify it, distribute it, and apply your own licensing terms to your derived work as you see fit. This software is provided "AS IS" without warranty of any kind, as described by the MIT license.