Files
2025-05-06 16:16:32 +10:00
..
2025-05-06 14:55:08 +10:00
2025-05-06 14:55:08 +10:00
2025-04-11 17:38:24 -04:00
2025-05-06 16:16:32 +10:00
2025-05-06 16:16:32 +10:00
2025-04-14 12:30:37 -04:00

mpc-hello with NextJS (client <> client)

This is a template repository designed to be the hello-world of trinity.

It uses summon for circuit generation and Trinity for secure 2PC.

It's a minimal web app where users can make 1-to-1 connections with each other and compute the larger of two numbers, built with Next.js.

  • Simple frontend
  • P2P end-to-end encrypted communication
  • Circuit code included via ordinary project files
  • Can be run into Plain or Halo2 mode, by switching up the following line.
type mode = 'Plain' | 'Halo2'
const trinitySetup = protocol.trinityModule.TrinityWasmSetup(mode);

Below are other examples of mpc-hello applications you may want to explore:

Running Locally

npm install
npm run dev

License

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.