Interactive demonstration of Multi-Party Computation (MPC). Six participants compute their average age without anyone revealing their individual age.
MPC lets multiple parties compute a function on their combined data without any party revealing their input. This demo visualises a simplified protocol:
- Setup — 6 participants, ages hidden
- Mask — each adds a random number to their age, shares only the sum
- Pass — masked values are aggregated into a running total
- Unmask — random masks are subtracted from the total
- Result — the correct average is revealed, but no individual age was ever shown
- Click any participant to edit their age and replay
- Try to Cheat — see what adjacent participants can deduce (the collusion weakness of simplified MPC)
- Reset — start over with fresh random masks
npm install
npx playwright install chromium
python3 -m http.server 3008 --directory web
# Open http://localhost:3008npm test18 Playwright E2E tests covering security headers, protocol steps, and interactive features.
- Vanilla HTML/CSS/JS (single file, no framework)
- Playwright for E2E testing
- Netlify for static deployment
This demo accompanies The Codebreakers Part III: Distributed Trust & Confidential Computing — an introductory information security course by Albert Hui (Security Ronin).
MIT