Abstract
We address the problem of efficiently verifying a commitment in a two-party computation. This addresses the scenario where a party P1 commits to a value $x$ to be used in a subsequent secure computation with another party P2 that wants to receive assurance that P1 did not cheat, i.e. that $x$ was indeed the value inputted into the secure computation. Our constructions operate in the publicly verifiable covert (PVC) security model, which is a relaxation of the malicious model of MPC appropriate in settings where P1 faces a reputational harm if caught cheating. We introduce the notion of PVC commitment scheme and indexed hash functions to build commitments schemes tailored to the PVC framework, and propose constructions for both arithmetic and Boolean circuits that result in very efficient circuits. From a practical standpoint, our constructions for Boolean circuits are $60\times$ faster to evaluate securely, and use $36\times$ less communication than baseline methods based on hashing. Moreover, we show that our constructions are tight in terms of required non-linear operations, by proving lower bounds on the nonlinear gate count of commitment verification circuits. Finally, we present a technique to amplify the security properties our constructions that allows to efficiently recover malicious guarantees with statistical security.
The Challenge of Input Commitment in MPC
In secure multi-party computation (MPC), parties collaborate to compute a function over their private inputs without revealing the inputs themselves. A significant challenge arises when a party might attempt to change their input after the protocol has begun. For instance, in a "certified" fair machine learning scenario, a service provider might commit to a specific model but secretly swap it for a more accurate (but less fair) version right before the computation.
To prevent this, cryptographic commitments are used: Party 1 (P1) commits to a value $x$, and later Party 2 (P2) verifies that $x$ was the actual value used in the MPC. However, standard cryptographic hashes like SHA-256 or SHA-3 are extremely "expensive" to compute within an MPC circuit. These hashes require thousands of non-linear gates (AND gates), which are the primary bottleneck for latency and communication in MPC protocols.
Methods: PVC Security and Indexed Hash Functions
This research introduces a more efficient approach by shifting the security model and introducing a new primitive:
- Publicly Verifiable Covert (PVC) Security: Instead of the computationally heavy "malicious" security model, the authors utilize PVC security. In this model, a cheater is caught with a specific probability $p$ (e.g., 1/2). If caught, the honest party receives a publicly transferable proof of the cheat, which can ruin the cheater's reputation or trigger legal consequences. This is often a sufficient deterrent in B2B or B2C environments.
- Indexed Hash Functions: The core innovation is a hash function $H(i, r, x)$ that utilizes an index $i$ and a random nonce $r$. Rather than checking a massive hash of the entire input inside the MPC, the verifier (P2) provides a random index $i$ during the protocol. The MPC circuit then only needs to verify the "digest" at that specific index, significantly reducing the workload.
Optimized Constructions
The authors propose several constructions, evolving from a baseline to a highly optimized "Construction 3." These constructions are designed to minimize non-linear gate counts for both Boolean and arithmetic circuits.
Construction 3 uses a pseudo-random number generator (PRNG) to expand a small index into a set of masks, allowing for extremely efficient Boolean circuit implementations. The theoretical lower bounds proven in the paper show that their construction, requiring roughly 0.5 AND gates per input bit, is asymptotically optimal for succinct indexed hashes.
Key Results and Practical Impact
The efficiency gains are substantial when compared to standard methods:
- Performance: The new verification functionality is 60x faster in runtime than a SHA-3 baseline.
- Communication: The protocol reduces communication overhead by 36x.
- Gate Count: While SHA-3 requires approximately 35–48 AND gates per bit, the main construction in this work requires only half an AND gate per input bit.
- Scalability: For an input of 1 million bits, the commitment size is approximately 1 MB, and verification completes in under 15 minutes in a standard LAN environment.
The authors demonstrated these benefits using real-world datasets (Credit, COMPAS, and Adult) in the context of Fair Machine Learning, proving that their commitment scheme can effectively prevent input-swapping attacks that would otherwise compromise model fairness.
Conclusion
By leveraging interactivity and the economic reality of reputational risk, this work provides a path toward highly efficient input verification in MPC. While the Boolean constructions are highly optimized, future work remains in finding deterministic vector generation for large fields and further reducing commitment sizes toward $O(1)$ while maintaining the current gate efficiency.
Summary updated