The Consensus Number of a Cryptocurrency (Extended Version)
Rachid Guerraoui, Petr Kuznetsov, Matteo Monti, Matej Pavlovic, Dragos-Adrian Seredinschi
备注:
11 pages. This is an extended version of a conference article appearing in PODC'19. In the proceedings of the 2019 ACM Symposium on Principles of Distributed Computing, July 29-August 2, 2019, Toronto, ON, Canada. ACM, New York, NY, USA. arXiv admin note: substantial text overlap with arXiv:1812.10844
Many blockchain-based algorithms, such as Bitcoin, implement a decentralized asset transfer system, often referred to as a cryptocurrency. As stated in the original paper by Nakamoto, at the heart of these systems lies the problem of preventing double-spending; this is usually solved by achieving consensus on the order of transfers among the participants. In this paper, we treat the asset transfer problem as a concurrent object and determine its consensus number, showing that consensus is, in fact, not necessary to prevent double-spending. We first consider the problem as defined by Nakamoto, where only a single process---the account owner---can withdraw from each account. Safety and liveness need to be ensured for correct account owners, whereas misbehaving account owners might be unable to perform transfers. We show that the consensus number of an asset transfer object is $1$. We then consider a more general $k$-shared asset transfer object where up to $k$ processes can atomically withdraw from the same account, and show that this object has consensus number $k$. We establish our results in the context of shared memory with benign faults, allowing us to properly understand the level of difficulty of the asset transfer problem. We also translate these results in the message passing setting with Byzantine players, a model that is more relevant in practice. In this model, we describe an asynchronous Byzantine fault-tolerant asset transfer implementation that is both simpler and more efficient than state-of-the-art consensus-based solutions. Our results are applicable to both the permissioned (private) and permissionless (public) setting, as normally their differentiation is hidden by the abstractions on top of which our algorithms are based.
Towards Secure Decentralized Applications and Consensus Protocols in Blockchains (on Selfish Mining, Undercutting Attacks, DAG-Based Blockchains, E-Voting, Cryptocurrency Wallets, Secure-Logging, and CBDC)
Revisiting Optimal Resilience of Fast Byzantine Consensus (Extended Version)
人们普遍认为,拜占庭容错解决方案的共识是显着慢于他们的崩溃容错同行。事实上,在最广为人知的拜占庭容错共识协议PBFT中,需要三个消息延迟来决定一个值,而Paxos中只有两个。这激发了对快速拜占庭共识算法的搜索,该算法可以在仅仅两个消息延迟\emph{in the common case}之后产生决策,例如,假设当前的领导者是正确的,并且没有被正确的过程所怀疑。(最佳)两步延迟带来了较低的弹性成本:快速拜占庭共识需要更多的进程来容忍相同数量的故障。特别是,$5f+1$进程被认为是容忍$f$拜占庭失败所必需的。在本文中,我们提出了一个快速的拜占庭共识算法,依赖于$5f-1$进程。此外,我们证明了$5f-1$是紧下界,纠正了早期工作中的一个错误。虽然对于大的$f$值,$2$过程的差异可能看起来微不足道,但对于较小规模的系统,它可能是至关重要的。特别是,对于$f=1$,我们的算法只需要$4$进程,这是最佳的任何(不一定是快速的)部分同步拜占庭共识算法。