AT2: Asynchronous Trustworthy Transfers

Rachid Guerraoui, Petr Kuznetsov, Matteo Monti, Matej Pavlovic, Dragos-Adrian SeredinschiarXiv 2018

Abstract

Many blockchain-based protocols, such as Bitcoin, implement a decentralized asset transfer system. As clearly stated in the original paper by Nakamoto, the crux of this problem lies in prohibiting any participant from engaging in double-spending. There seems to be a common belief that consensus is necessary for solving the double-spending problem. Indeed, whether it is for a permissionless or a permissioned environment, the typical solution uses consensus to build a totally ordered ledger of submitted transfers. In this paper we show that this common belief is false: consensus is not needed to implement a decentralized asset transfer system. We do so by introducing AT2 (Asynchronous Trustworthy Transfers), a class of consensusless algorithms. To show formally that consensus is unnecessary for asset transfers, we consider this problem first in the shared-memory context. We introduce AT2${SM}$, a wait-free algorithm that asynchronously implements asset transfer in the read-write shared-memory model. In other words, we show that the consensus number of an asset-transfer object is one. In the message passing model with Byzantine faults, we introduce a generic asynchronous algorithm called AT2${MP}$ and discuss two instantiations of this solution. First, AT2${D}$ ensures deterministic guarantees and consequently targets a small scale deployment (tens to hundreds of nodes), typically for a permissioned environment. Second, AT2${P}$ provides probabilistic guarantees and scales well to a very large system size (tens of thousands of nodes), ensuring logarithmic latency and communication complexity. Instead of consensus, we construct AT2${D}$ and AT2${P}$ on top of a broadcast primitive with causal ordering guarantees offering deterministic and probabilistic properties, respectively.

Introduction: Challenging the Consensus Paradigm

Since the inception of Bitcoin, the decentralized finance landscape has been built on the assumption that preventing double-spending requires a totally ordered ledger—a "blockchain." This requirement necessitates consensus, a process that is computationally expensive, communication-intensive, and subject to the FLP impossibility in asynchronous networks.

This paper challenges this fundamental assumption. We demonstrate that the "double-spending problem" does not inherently require consensus. Instead, we propose AT2 (Asynchronous Trustworthy Transfers), a suite of algorithms that rely on causal ordering rather than total ordering. By relaxing the ordering requirements to only those necessary for safety, AT2 achieves significantly higher throughput and lower latency than traditional consensus-based systems.

Theoretical Foundation: The Consensus Number of Asset Transfers

To rigorously prove that consensus is unnecessary, we analyze the "consensus number" of an asset-transfer object. In the theory of concurrent objects, the consensus number represents the maximum number of processes for which an object can solve consensus. We prove that for accounts with a single owner, the consensus number is one. This implies that asset transfers can be implemented using basic read-write registers, which are inherently wait-free and do not require powerful synchronization primitives like Compare-and-Swap.

The AT2 Algorithm Suite

We present three variants of the AT2 algorithm tailored for different execution environments:

  • AT2$_{SM}$ (Shared Memory): A wait-free implementation for multi-core systems using read-write registers.
  • AT2$_{D}$ (Deterministic): Designed for message-passing environments with Byzantine faults. It provides deterministic safety and liveness for permissioned settings (tens to hundreds of nodes).
  • AT2$_{P}$ (Probabilistic): Optimized for massive scale (tens of thousands of nodes). It utilizes gossip protocols to provide probabilistic guarantees with logarithmic complexity.

Causal Ordering and the "Depends-On" Relation

The core innovation of AT2 is the shift from total ordering to causal ordering. In a traditional blockchain, every transaction must be ordered relative to every other transaction. In AT2, we only enforce order where a causal dependency exists.

Mapping of financial transfers between participants to a causal dependency graph.

As illustrated in the figure above, a transfer $T_1$ depends on $T_0$ if they share a common participant (sender or receiver) such that the validity of $T_1$ is contingent on the completion of $T_0$. Unrelated transfers, such as those between entirely different sets of users, are considered commutative and can be processed in any order. This parallelism is the source of AT2's performance advantages.

Experimental Results

We evaluated AT2 against BFT-Smart, a leading consensus-based state machine replication system.

  • Throughput: AT2$_{D}$ demonstrated a 1.5x to 6x improvement in throughput for systems up to 100 replicas.
  • Latency: Latency was reduced by up to 2x compared to consensus-heavy alternatives.
  • Scalability: AT2$_{P}$ achieved sub-second execution times in global deployments of thousands of nodes, proving its viability for large-scale decentralized networks.

Sybil Resistance and Future Work

While AT2 handles the payment aspect of smart contracts efficiently, it is not a drop-in replacement for general-purpose Turing-complete smart contracts that require global state agreement. For permissionless environments, the authors propose a "proof-of-bandwidth" scheme for Sybil resistance, where participants prove their legitimacy locally to peers. Future work includes full implementation and adversarial testing of this layer.

Conclusion

AT2 proves that the "blockchain bottleneck" is largely a result of over-engineering. By recognizing that asset transfers only require causal consistency, we can build decentralized systems that are faster, more scalable, and more resilient to network asynchrony than those relying on traditional consensus.

Summary updated

BibTeX
@misc{guerraoui2018at,
  author = {Rachid Guerraoui and Petr Kuznetsov and Matteo Monti and Matej Pavlovic and Dragos-Adrian Seredinschi},
  title = {{AT2: Asynchronous Trustworthy Transfers}},
  year = {2018},
  eprint = {1812.10844},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.10844},
}
Figure