This is a template repository designed to be the hello-world of mpc-framework. The repository contains three different examples:
- Client-Client: A web application built using Vite that demonstrates peer-to-peer (p2p) computation between two clients. Communication is facilitated via
rtc-pair-socketfor direct client-to-client interaction.
- Looking for NextJS? Take a look at npm create @mpc-cli
- Client-Server: A web application, also built with Vite, that illustrates how a client and a server can collaboratively run a secure computation. Communication is established using WebSockets.
- Server-Server: An example showcasing how two servers can perform a secure MPC computation. This setup uses WebSockets for communication between the servers.
- Deno-Deno: An example showcasing how two Deno servers can perform a secure MPC computation. This setup uses WebSockets for communication between the servers.
After creating your repository based on this template, clone it and navigate to the example you want to run:
git clone https://github.com/voltrevo/mpc-hello.git
cd mpc-hello/<example-folder>
npm installRead the README file of the example for more instructions on how to run the app.
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.