Files
pse.dev/content/projects/mpc-framework.md
Kalidou Diagne 31763f7662 feat: PageSpeed Insights improvements (#545)
* feat: PageSpeed Insights improvements
2025-09-01 06:01:00 +02:00

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
keywords themes types builtWith
MPC
TypeScript
privacy
Garbled Circuits
iZK
buildWith
play
research
ValueScript
Summon
MPZ
EMP-Toolkit
github website telegram
https://github.com/privacy-scaling-explorations/mpc-framework https://mpc.pse.dev https://t.me/+FKnOHTkvmX02ODVl
name image links
Andrew Morris /avatars/andrew.webp
github twitter
https://github.com/voltrevo https://x.com/voltrevo
name image links
Yanis Meziane /avatars/yanis.webp
github twitter
https://github.com/Meyanis95 https://x.com/yanis_mezn
buildWith research play
label url
Create MPC-powered apps in Typescript https://github.com/privacy-scaling-explorations/mpc-framework
label url
Generate circuits with Summon https://github.com/privacy-scaling-explorations/summon
label url
Trinity: 2PC with Laconic OT + Garbled Circuits + PLONK https://github.com/privacy-scaling-explorations/Trinity
label url
Authenticated Garbling https://hackmd.io/@a37205y_SL2LtEA1y2OWhQ/Sy4-nZ3lyx
label url
Hello world in MPC https://mpc.pse.dev/apps/hello
label url
Lizard Spock in MPC https://mpc.pse.dev/apps/lizard-spock
label url
More demos https://mpc.pse.dev/showcase

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.