4.4 KiB
id, name, image, section, projectStatus, category, tldr, license, tags, links, team, extraLinks
| id | name | image | section | projectStatus | category | tldr | license | tags | links | team | extraLinks | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| mpc-framework | MPC Framework | mpc-framework.webp | pse | active | devtools | Create secure MPC apps easily in TypeScript. | MIT |
|
|
|
|
MPC Framework
A framework that makes MPC easy, in TypeScript.
Quick Start
Try a demo app or quickly spin up your own.
Overview
To make an MPC app you need three things:
1) Engine
- Implements the underlying cryptography.
2) Circuit Generator
- The shared computation needs to be specified as a circuit, and you need something to generate that. This is similar to using a compiler to get programs to run on your machine.
3) Messaging with each Party
- Send and receive bytes.
MPC Framework brings these pieces together in a straightforward TypeScript API to make MPC application development easy.
It includes multiple officially supported components for (1) and (2), templates that include (3), and is designed to accommodate new solutions for each component.
The main solution for (2) is Summon, which is a TypeScript-like language for generating circuits.
What is MPC?
MPC stands for Multi-Party Computation. In regular computation, all inputs, outputs, and intermediate calculations are necessarily visible on the device performing the computation. MPC, by contrast, allows multiple devices to collaborate on a computation while keeping intermediate calculations and others' inputs private.
Here's some ways that can be useful:
- Provide analysis on patient data to researchers without revealing the patient data
- Play Rock Paper Scissors Lizard Spock while keeping your move secret
- Hold an auction while keeping the bids secret (only the winning bidder and price is revealed)
- Match employers and job-seekers that each have hidden criteria
- Arrange optimal asset swaps (eg sports players / trading cards / corporate assets / NFTs) using hidden valuations
- Find out if you qualify for an insurance policy without sharing your health data and without requiring the insurer to reveal the policy requirements
- Quantify how much you have in common with someone and then figure out the commonalities together (or choose not to)
- Create an embarrassing songs playlist for a party where each song is liked by >=N people
For a bit more of an introduction to MPC, see Barry Whitehat's talk 2PC is for Lovers. The lovers' app described in the talk has been implemented using mpc-framework here.
For a more technical introduction, see Computerphile's video on Garbled Circuits. For a deeper dive: Pragmatic MPC.