Introduction
Secure integer comparison, famously known as the "Millionaires' Problem," is a fundamental building block in secure multi-party computation (MPC). While two-party protocols are well-established, practical applications such as private auctions or joint bidding often require a third-party mediator—a "judge"—to determine the outcome without learning the underlying values. This paper presents a novel Three-Party Integer Comparison (TPIC) protocol that optimizes communication efficiency and security through the integration of homomorphic encryption and blockchain-based incentives.
Problem Statement
In traditional secure comparison scenarios, parties must often remain online simultaneously and interact directly to reach a result. In real-world auctions, this is often impractical. Furthermore, existing three-party models frequently rely on a "passive" judge who merely receives results from competitors. This creates vulnerabilities: competitors might cheat, or the protocol might stall if a party goes offline. The challenge lies in creating a protocol where a judge can actively derive the comparison result from encrypted data while ensuring that malicious competitors cannot manipulate the outcome or compromise privacy.
Proposed Methodology
The authors propose a robust framework that distinguishes between the judge (assumed semi-honest) and competitors (potentially malicious). The protocol is built on two primary models:
1. Semi-Honest and Malicious Models
For scenarios requiring lower computational overhead, a semi-honest model utilizes three homomorphic public-key encryption (PKE) schemes. It employs bit decomposition and a blinding/shuffling mechanism, allowing the judge to identify differences without revealing specific values.
For higher security, a malicious-model protocol is introduced. This version utilizes a hybrid GM-RSA encryption scheme (combining Goldwasser-Micali and RSA) and incorporates Non-Interactive Zero-Knowledge (NIZK) proofs. These proofs allow participants to verify their adherence to the protocol and their knowledge of secret inputs without exposing the inputs themselves.
2. Blockchain Integration and Economic Incentives
A key innovation is the use of a blockchain as a persistent broadcast channel. The protocol implements a commitment scheme with financial deposits. If a competitor submits a false complaint or exits the protocol prematurely, their deposit is forfeited to the judge or the honest party. This shifts part of the security burden from cryptographic complexity to game-theoretic economic deterrents.
Technical Insights: The Active Judge
Unlike standard MPC where parties interact to reveal a result, this TPIC protocol empowers the "Active Judge." Once competitors post their encrypted inputs and NIZK proofs to the blockchain, the judge can independently "pull" the data and compute the result. This decoupling ensures that the comparison can be finalized even if competitors are no longer online, provided their data is on-chain. This model is particularly suited for decentralized applications where participant availability is unpredictable.
Performance and Results
The protocol was evaluated using 128-bit and 256-bit security levels. Performance testing was conducted on an AMD PRO A10-8770 R7 CPU to measure RSA encryption and decryption timings within a Go-based simulation environment.
Efficiency and Scalability
The proposed scheme demonstrates significant improvements in communication overhead compared to existing protocols like DGK, Fischlin, and Strain. For a comparison involving 100 bidders with 30-bit integers:
- Proposed TPIC: < 400 KB
- Fischlin/Strain Protocols: ~45 MB
Round Complexity and Speed
The protocol achieves constant round complexity, completing in exactly 4 blockchain blocks, compared to the 6 rounds required by Fischlin’s protocol. At a 128-bit security level, RSA encryption takes less than 200ms, while decryption is completed in approximately 6 seconds. This predictability is vital for integration with blockchain networks where block times (e.g., Ethereum's ~15 seconds) dictate the total execution time.
Limitations and Future Directions
The primary limitation is the reliance on a non-colluding judge. If the judge colludes with a competitor, the privacy of other participants is at risk. Additionally, while communication is optimized, each participant still needs to perform $N-1$ comparisons in an $N$-party auction, which may pose scalability challenges for extremely large groups. Future research may explore decentralizing the judge's role across multiple parties to eliminate the single point of trust and further optimizing the GM-RSA encryption process.
Summary updated