Skip to content

Conversation

@plucena-coti
Copy link

Summary

  • Implements Yao's Millionaires' Problem using COTI's MPC framework
  • Allows two parties (Alice and Bob) to securely compare their wealth without revealing actual amounts
  • Uses encrypted computation to preserve privacy while determining who is wealthier

Features

  • Privacy-preserving wealth comparison using MPC operations
  • Secure encrypted input submission for both parties
  • Comparison results encrypted separately for each party
  • Event emissions for tracking operations
  • Reset functionality for testing

Test plan

  • Compile the contract successfully
  • Deploy contract with Alice and Bob addresses
  • Test Alice and Bob submitting encrypted wealth values
  • Verify comparison logic for all cases (Alice richer, Bob richer, equal)
  • Confirm only authorized parties can view their respective results
  • Test edge cases and access control

…roblem

Implements a privacy-preserving wealth comparison using COTI's MPC framework. Two parties (Alice and Bob) can securely compare their wealth without revealing actual amounts.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 2, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants