Abstract
A group of mutually trusting clients outsources a computation service to a remote server, which they do not fully trust and that may be subject to attacks. The clients do not communicate with each other and would like to verify the correctness of the remote computation and the consistency of the server's responses. This paper presents the Conflict-free Operation verification Protocol (COP) that ensures linearizability when the server is correct and preserves fork-linearizability in any other case. All clients that observe each other's operations are consistent, in the sense that their own operations and those operations of other clients that they see are linearizable. If the server forks two clients by hiding an operation, these clients never again see operations of each other. COP supports wait-free client operations in the sense that when executed with a correct server, non-conflicting operations can run without waiting for other clients, allowing more parallelism than earlier protocols. A conflict arises when an operation causes a subsequent operation to produce a different output value for the client who runs it. The paper gives a precise model for the guarantees of COP and includes a formal analysis that these are achieved.
Introduction
As organizations increasingly outsource data storage and computation to cloud providers, the security of these remote services becomes a critical concern. While clients may trust one another, they often have little reason to fully trust the cloud provider. A compromised or malicious server (a "Byzantine" server) can perform a forking attack, where it presents different versions of the state to different clients. Because clients typically communicate only through the server, detecting such inconsistencies is a significant challenge.
This paper introduces the Conflict-free Operation verification Protocol (COP), a system designed to ensure that clients can verify the correctness of remote computations and maintain consistent views of the service state, even when the server is untrusted.
The Problem: Forking Attacks and Performance Bottlenecks
The gold standard for security in untrusted environments is fork-linearizability. This property guarantees that if a server ever lies to a client by hiding an update, it creates a permanent "fork" in the timeline. Once forked, those clients will never see each other's subsequent operations again. If the clients ever compare their state out-of-band, the discrepancy becomes immediately apparent.
Previous protocols that achieved fork-linearizability often suffered from severe performance limitations. Specifically, they required clients to "block" or wait for other clients to complete their operations to ensure a consistent global order. This lack of concurrency made such systems impractical for high-throughput applications. COP addresses this by allowing for wait-free execution of non-conflicting operations.
The COP Protocol
In the COP model, the server acts as a coordinator that orders operations, while the clients maintain a local copy of the service state and perform the actual computations. The protocol follows a structured lifecycle:
- Invocation: A client signs an operation request and sends it to the server to receive a position in the global sequence.
- Pending Operations: The server responds with a list of "pending" operations from other clients that have been sequenced but not yet finalized.
- Integrity via Hash Chains: Clients maintain cryptographic hash chains of the operation history. If two clients share the same hash at a specific point in the sequence, they are mathematically guaranteed to have observed the exact same history up to that point.
- Conflict Detection: Unlike previous models that used static commutativity rules, COP uses a dynamic simulation. The client simulates the pending operations locally to determine if they conflict with its own operation based on the current state.
- Wait-Free Commit/Abort: If no conflict is detected, the client commits the operation and outputs the result. If a conflict is found, the client aborts its operation rather than waiting. This "abortable" model ensures that a single slow or malicious client cannot block the progress of others.
Key Insights
Sequences over Commutativity
Traditional protocols often rely on commutativity (e.g., two "add" operations can happen in any order). COP improves on this by evaluating sequences of operations. Even if two operations do not commute in a general sense, they may not conflict in the current specific state. By simulating the actual execution, COP allows for higher levels of parallelism.
Fixing Protocol Flaws
The authors identify and resolve subtle flaws in predecessor protocols like Blind Stone Tablet (BST). BST occasionally checked for conflicts using outdated local states, which could lead to incorrect outputs. COP ensures correctness by strictly simulating all pending operations before evaluating the validity of a new operation.
Results and Formal Analysis
The paper provides a rigorous mathematical proof that COP emulates an abortable functionality with fork-linearizability. Key findings include:
- Wait-Freedom: COP is entirely wait-free for non-conflicting operations. Clients never have to wait for others to finish before proceeding with their own tasks.
- Response Consistency: While some previous works only focused on the consistency of the internal database state, COP formally guarantees fork-linearizability for the actual responses returned to the clients.
Limitations and Future Directions
The primary limitation of COP is the overhead placed on the client. Because the server is untrusted, every client must store the full state and execute every operation locally. This results in a computational cost that scales linearly with the number of operations ($O(\ell n)$).
Future work aims to mitigate this by using Authenticated Data Structures (like Merkle trees) to allow the server to store the state while clients only hold small cryptographic roots. Additionally, the integration of Verifiable Computation (such as zk-SNARKs) could allow the server to provide mathematical proofs of correctness, further reducing the client's local processing requirements.
Summary updated