The New CAP Theorem on Blockchain Consensus Systems
Abstract
:1. Introduction
1.1. Motivation
1.2. Contribution
- -
- Autonomy is defined in the atomic scale as the fraction of the memory of each node reserved to serve local operations.
- -
- Consensus achievement is defined at the system scale as the fraction of nodes required to reach agreement, i.e., to consent on new events for the system to function.
- -
- Entropic Performance is introduced, following [14], as a metric for the efficiency of the consensus process. It is given as the overall reduction in the information entropy of the system per unit of consumed energy. It measures how efficiently a Blockchain consensus system reduces uncertainty, in the sense of data disorder, relative to the energy it consumes.
- -
- We prove that of these three essential properties, two at the most can be optimized simultaneously at any given time in the generic case. For this, we formally prove that there exists at least one peer system consideration for which (C), (A), and (P) cannot be simultaneously optimal, and we validate the results through empirical real-world Blockchain systems data benchmarking.
- -
- We demonstrate that this trait comes in a direct analogy and has the same semantic origins as Eric Brewer’s CAP theorem.
2. Materials and Methods
- -
- The deployment of the IoT micro-Blockchain, defined in [8], as a peer, distributed and architecture agnostic consensus-enabling framework.
- -
- The quantitative representation of (A), (C), and (P), with respect to the number of event witnesses in the system.
2.1. The IoT Micro-Blockchain Framework
2.2. Consensus, Autonomy, and Entropic Performance
- -
- Consensus (C): Constitutes a collective attribute and can thus be defined only within a system of nodes. In its essence, consensus is a binary function: in the end, each node may either agree or disagree with the others over an observable event.
- -
- Autonomy (A): Autonomy is a metric of the independence of the node. It constitutes an atomic trait, defined here as the fraction of its memory each node can dedicate to serving itself. Atomic traits refer to properties defined in each individual node within the system. As mentioned earlier, at a fundamental level Autonomy generally reflects the fraction of the resources dedicated to processing and storing the node’s local events.
- -
- Entropic Performance (P): At the cost of running the consensus mechanism, the observed information entropy of an isolated autonomous system decreases as W increases. As the number of witnesses increases, nodes store more uniform information, reducing the overall system entropy. This effect is strongest when the number of witnesses is low, meaning that even a small increase in witnesses leads to a sharp drop in entropy as discussed in detail in [14].
2.3. Related Work: Blockchain Consensus Tradeoffs
3. Analysis and Results
3.1. Formal Definitions
4. The New CAP Theorem
4.1. Autonomy and Consensus as Functions of W
4.2. Autonomy (A) vs. Consensus (C)
4.3. Consensus (C) vs. Entropic Performance (P)
4.4. Autonomy (A) vs. Entropic Performance (P)
4.5. Entropic Performance (P) as a Function of W
4.6. Scalability and Performance Implications in Large-Scale Systems
5. Discussion
5.1. Revealing the Intrinsic Constraints
- (a)
- Between Autonomy (A) and Consensus achievement (C)In an attempt to optimize one of two, the other is sacrificed. This derives from Equations (4)–(6) in Section 3.1 and is demonstrated in Figure 4, Section 4.2. An attempt to optimize Autonomy, i.e., moving , would leave the nodes without any resources to serve the community: W moves close to 0, leading Consensus achievement to minimum, and the system degrades down to a set of isolated nodes. Again, trying to optimize Consensus (, we would have to withhold resources from the atoms to serve the system, sacrificing Autonomy.This intrinsic constraint was revealed in this work by starting from two apparently independent starting points: while we define Autonomy in the micro-scale of the node, Consensus is defined in macro, with respect to the properties of the realm. This strengthens even more our initial hypothesis for the existence of an inherent intrinsic constraint among (A) and (C).
- (b)
- Between Consensus achievement (C) and entropic Performance (P)Consensus achievement is an energy-consuming process: it relies on data transmission, processing, and storage, all of which are known to be energy-consuming tasks. The constraint between (C) and (P) is revealed in Section 3.1 through Equations (5) and (10) and is demonstrated in Figure 5, Section 4.3. Again, trying to optimize one of the two, the other is forced away from optimal. Our consideration for the two properties has independent starting points as well: while C is defined with respect to the macroscopic traits of the system, P is defined based on Shannon information entropy principles. This further strengthens the finding of the inherent constraint among C and P. The entropic traits of distributed consensus systems are studied extensively in [14].
5.2. Empirical Validation Through Real-World Data
5.3. Large-Scale Heterogenous Blockchain Systems Implications
- -
- Light nodes and digital wallets are introduced to deliver increased autonomy and energy efficiency.
- -
- Larger capacity full nodes usually undertake the heavier duties of running the more demanding core of the consensus process.
5.4. Security and Finality Implications
5.4.1. Sybil and 51% Attacks Resilience and the Role of Autonomy (A)
5.4.2. Denial of Service (DoS), Long-Range Attacks and the Role of Consensus (C)
5.4.3. Practical Security Implications of the New CAP Theorem Tradeoffs
- -
- High Autonomy/Low Consensus: Increases the risk of Sybil attacks and 51% attacks. Fewer nodes validate each event, making it easier for malicious attackers to dominate the system. For example, systems with minimal node consensus, such as sparce and lightweight IoT Blockchains, can easily become targets of Sybil and 51% attacks. A malicious attacker may deploy multiple compromised nodes without being noticed.
- -
- High Consensus/Low Autonomy: Enhances the resilience against Sybil and Byzantine attacks. The requirement of broad validation, though, increases the system vulnerability to denial-of-service (DoS) attacks. As nodes become highly interdependent, the attacker can infuse congestion to the network more easily. For example, Bitcoin requires all nodes to validate all transactions, providing strong security against fraudulent consensus but also making the network more susceptible to congestion attacks.
- -
- Balanced Consensus and Autonomy: Partially sacrificing absolute consensus and autonomy offers better scalability and resistance to DoS attacks while still maintaining the desired resilience levels against Sybil and Byzantine threats. As a practical example, Ethereum 2.0 uses a set number of validators for consensus. This approach improves resilience against DoS balancing the hazard of Sybil attacks as well. Still, it increases the vulnerability to long-range attacks through the potential historical key compromise in certain nodes. These tradeoffs highlight once more the practical necessity of designing scalable Blockchain systems that adjust W dynamically to mitigate security risks while maintaining the desired traits in terms of entropic Performance every time.
6. Conclusions
- (a)
- Between Autonomy (A) and Consensus achievement (C): A Blockchain consensus system that maximizes the one inherently compromises the other.
- (b)
- Between Consensus achievement (C) and Entropic Performance (P): The achievement of high levels of Consensus requires significant energy and resource commitments, lowering the observed entropic efficiency of the system.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Aristoteles (284~322 B.C.) “Hθικά Νικομάχεια” Book 1, p. VII. Available online: https://www.greek-language.gr/digitalResources/ancient_greek/library/browse.html?text_id=78&page=8Last (accessed on 10 May 2024).
- Anagnostakis, A.G.; Naxakis, C.; Giannakeas, N.; Tsipouras, M.G.; Tzallas, A.T.; Glavas, E. Scalable Consensus over Finite Capacities in Multiagent IoT Ecosystems. IEEE Internet Things J. 2022, 10, 6673–6688. [Google Scholar] [CrossRef]
- Dwork, C.; Lynch, N.; Stockmeyer, L. Consensus in the Presence of Partial Synchrony. J. ACM 1988, 35, 288–323. [Google Scholar] [CrossRef]
- Alon, N.; Benjamini, I.; Lubetzky, E.; Sodin, S. Communication Cost of Consensus for Nodes with Limited Memory. Proc. Natl. Acad. Sci. USA 2019, 116, 1912980117. [Google Scholar] [CrossRef]
- Khosravi, A.; Säämäki, F. Beyond Bitcoin: Evaluating Energy Consumption and Environmental Impact across Cryptocurrency Projects. Energies 2023, 16, 6610. [Google Scholar] [CrossRef]
- Pagone, E.; Hart, A.; Salonitis, K. Carbon Footprint Comparison of Bitcoin and Conventional Currencies in a Life Cycle Analysis Perspective. Procedia CIRP 2023, 116, 468–473. [Google Scholar] [CrossRef]
- Liu, Y.; Chen, H.; Sun, X. Concerning Consensus Fairness and Efficiency with Uncertain Costs. Mathematics 2023, 12, 1266. [Google Scholar] [CrossRef]
- Anagnostakis, A.G.; Giannakeas, N.; Tsipouras, M.G.; Glavas, E.; Tzallas, A.T. IoT Micro-Blockchain Fundamentals. Sensors 2021, 21, 2784. [Google Scholar] [CrossRef]
- Vogels, W. Eventually Consistent. Commun. ACM 2009, 52, 40–44. [Google Scholar] [CrossRef]
- Brewer, E.A. Towards Robust Distributed Systems. In Proceedings of the Annual ACM Symposium on Principles of Distributed Computing (PODC), Portland, OR, USA, 16–19 July 2000. [Google Scholar] [CrossRef]
- Gilbert, S.; Lynch, N. Brewer’s Conjecture and the Feasibility of Consistent, Available, Partition-Tolerant Web Services. ACM SIGACT News 2002, 33, 51–59. [Google Scholar] [CrossRef]
- Rožman, N.; Corn, M.; Škulj, G.; Berlec, T.; Diaci, J.; Podržaj, P. Exploring the Effects of Blockchain Scalability Limitations on Performance and User Behavior in Blockchain-Based Shared Manufacturing Systems: An Experimental Approach. Appl. Sci. 2023, 13, 4251. [Google Scholar] [CrossRef]
- Bulgakov, A.L.; Aleshina, A.V.; Smirnov, S.D.; Demidov, A.D.; Milyutin, M.A.; Xin, Y. Scalability and Security in Blockchain Networks: Evaluation of Sharding Algorithms and Prospects for Decentralized Data Storage. Mathematics 2024, 12, 3860. [Google Scholar] [CrossRef]
- Anagnostakis, A.G.; Glavas, E. Entropy and Stability in Blockchain Consensus Dynamics. Information 2025, 16, 138. [Google Scholar] [CrossRef]
- Wan, S.; Lu, Q.; Li, Y.; Lai, C.; Wang, X. A Systematic Review of Consensus Mechanisms in Blockchain. Mathematics 2023, 11, 2248. [Google Scholar] [CrossRef]
- Nakamoto, S. Bitcoin: A Peer-to-Peer Electronic Cash System. Bitcoin.org. 2008. Available online: https://bitcoin.org/bitcoin.pdf (accessed on 15 May 2024).
- Buterin, V. Ethereum Whitepaper. Ethereum Foundation, 2015. Available online: https://ethereum.org/en/whitepaper/ (accessed on 10 January 2025).
- Hyperledger Fabric Documentation. Available online: https://hyperledger-fabric.readthedocs.io/ (accessed on 10 January 2025).
- Mssassi, S.; Abou El Kalam, A. The Blockchain Trilemma: A Formal Proof of the Inherent Trade-Offs Among Decentralization, Security, and Scalability. Appl. Sci. 2023, 15, 19. [Google Scholar]
- Auhl, Z.; Chilamkurti, N.; Alhadad, R.; Heyne, W. A Comparative Study of Consensus Mechanisms in Blockchain for IoT Networks. Electronics 2022, 11, 2694. [Google Scholar] [CrossRef]
- Oyinloye, D.P.; Teh, J.S.; Jamil, N.; Alawida, M. Blockchain Consensus: An Overview of Alternative Protocols. Symmetry 2021, 13, 1363. [Google Scholar] [CrossRef]
- Merrad, Y.; Habaebi, M.H.; Elsheikh, E.A.A.; Suliman, F.E.M.; Islam, M.R.; Gunawan, T.S.; Mesri, M. Blockchain: Consensus Algorithm Key Performance Indicators, Trade-Offs, Current Trends, Common Drawbacks, and Novel Solution Proposals. Mathematics 2022, 10, 2754. [Google Scholar] [CrossRef]
- Guru, A.; Mohanta, B.K.; Mohapatra, H.; Al-Turjman, F.; Altrjman, C.; Yadav, A. A Survey on Consensus Protocols and Attacks on Blockchain Technology. Appl. Sci. 2023, 13, 2604. [Google Scholar] [CrossRef]
- Zhou, Y.; Han, R.; Li, Y. Reputation Consensus Mechanism for Blockchain Based on Information-Centric Networking. Electronics 2025, 14, 1099. [Google Scholar] [CrossRef]
- Pineda, M.; Jabba, D.; Nieto-Bernal, W.; Pérez, A. Sustainable Consensus Algorithms Applied to Blockchain: A Systematic Literature Review. Sustainability 2024, 16, 10552. [Google Scholar] [CrossRef]
- Lepore, C.; Ceria, M.; Visconti, A.; Rao, U.P.; Shah, K.A. A Survey on Blockchain Consensus with a Performance Comparison of PoW, PoS, and Pure PoS. Mathematics 2020, 8, 1782. [Google Scholar] [CrossRef]
- Deirmentzoglou, E.; Papakyriakopoulos, G.; Patsakis, C. A Survey on Long-Range Attacks for Proof of Stake Protocols. IEEE Access 2019, 7, 28712–28725. [Google Scholar] [CrossRef]
- Faber, S.; Osterrieder, J.; Putz, L.M. Sybil in the Haystack: A Comprehensive Review of Blockchain Consensus Mechanisms in Search of Strong Sybil Attack Resistance. Algorithms 2023, 16, 34. [Google Scholar] [CrossRef]
- Sayeed, S.; Marco-Gisbert, H. Assessing Blockchain Consensus and Security Mechanisms against the 51% Attack. Appl. Sci. 2019, 9, 1788. [Google Scholar] [CrossRef]
- Sapra, N.; Shaikh, I.; Dash, A. Impact of Proof of Work (PoW)-Based Blockchain Applications on the Environment: A Systematic Review and Research Agenda. J. Risk Financ. Manag. 2023, 16, 218. [Google Scholar] [CrossRef]
- Noether, E. Invariante Variationsprobleme. Nachrichten von der Gesellschaft der Wissenschaften zu Göttingen, Mathematisch-Physikalische Klasse 1918, 235–257. Available online: https://eudml.org/doc/59024 (accessed on 14 February 2025).
- Noether, E. Invariant Variation Problems. Transp. Theory Stat. Phys. 1971, 1, 186–207. Available online: https://arxiv.org/pdf/physics/0503066.pdf (accessed on 14 February 2025). [CrossRef]
- Arduino. Arduino ABX00027 Datasheet. Available online: https://docs.arduino.cc/resources/datasheets/ABX00027-datasheet.pdf (accessed on 1 February 2025).
- Mempool Space. Bitcoin Explorer and Blockchain Analytics Platform; Available online: https://mempool.space/ (accessed on 13 March 2025).
- Ethernodes. Ethereum Mainnet Node Explorer. Available online: https://ethernodes.org (accessed on 13 March 2025).
- Ismail, L.; Materwala, H. A Review of Blockchain Architecture and Consensus Protocols: Use Cases, Challenges, and Solutions. Symmetry 2019, 11, 1198. [Google Scholar] [CrossRef]
- Dwivedi, K.; Agrawal, A.; Bhatia, A.; Tiwari, K. A Novel Classification of Attacks on Blockchain Layers: Vulnerabilities, Attacks, Mitigations, and Research Directions. arXiv 2024, arXiv:2404.18090. [Google Scholar]
- Park, S.; Mun, B.; Lee, S.; Jeong, W.; Lee, J.; Eom, H.; Jang, H. Impact of EIP-4844 on Ethereum: Consensus Security, Ethereum Usage, Rollup Transaction Dynamics, and Blob Gas Fee Markets. arXiv 2024, arXiv:2405.03183. [Google Scholar]
- Ali, S.; Nicer, C.; Beschastnikh, I.; Feng, C. One Bad Apple Spoils the Bunch: Transaction DoS in MimbleWimble Blockchains. arXiv 2021, arXiv:2112.13009. [Google Scholar]
Blockchain System | Number of Reachable Peer Nodes (N) | Nodes Participating in Consensus (W) | Transaction Time (Finality) | Average Transaction Size (Bits) | Energy Consumption per Transaction (Wh) ** | Entropic Performance (P) per Transaction (Bit/kWh) |
---|---|---|---|---|---|---|
Bitcoin (PoW) [16,34] | ~16,754 [34] | <9.5 min (10 min) | 4096 | ~1.200 kWh | 5.72 × 104 | |
Ethereum 2.0 (PoS) [17,35] | ~8.080 [35] | 12 s (12.8 min) | 2048 | ~0.03 kWh | 3.68 × 108 | |
Hyperledger Fabric 3.0 [18] | Variable N ~50 per Private Chain is considered | Variable W ~26 per installation considered | Variable 74.3 ms (<2 s) | 24.000 | ~33 mWh | 1.89 × 107 |
IoT micro-Blockchain [8] | Variable ~100 per installation | Variable W is considered for comparison purposes | Variable 16 ms (>32 ms) | 2048 | ~55 μWh | 3.72 × 1010 |
Blockchain System | Consensus Mechanism | Main Vulnerability ** (Attack) | Autonomy (A) | Consensus Achievement (C) | Entropic Performance (P) |
---|---|---|---|---|---|
Bitcoin | Proof-of-Work Fully open Competitive Mining | Low (51%, Sybil) | Low Miners depend on entire network | High Global Consensus | Low Energy efficiency due to maximum W and competitive hash mining |
Ethereum 2.0 | Proof-of-Stake Open Staking-based | Medium (Sybil, Long Range) | Medium Validators rely on staking, not on competitive mining | Medium Scalable from W = 128 non-competing verifiers, to validators | High Energy efficiency due to lower W, allowing non-competitive hashing and trusted nodes |
Hyperledger Fabric 3.0 | Raft, PBFT Ad-hoc private | Low (PBFT: Sybil) Low (Raft: DoS) | High Preselected validators reduce reliance on the other nodes | Low Only selected trusted nodes reach Consensus | High Energy efficiency due to lower W, allowing non-competitive hashing and trusted nodes |
IoT micro-Blockchain | Event witnessing DAG | High (Sybil) | Variable | Variable | Variable |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Anagnostakis, A.G.; Glavas, E. The New CAP Theorem on Blockchain Consensus Systems. Future Internet 2025, 17, 157. https://doi.org/10.3390/fi17040157
Anagnostakis AG, Glavas E. The New CAP Theorem on Blockchain Consensus Systems. Future Internet. 2025; 17(4):157. https://doi.org/10.3390/fi17040157
Chicago/Turabian StyleAnagnostakis, Aristidis G., and Euripidis Glavas. 2025. "The New CAP Theorem on Blockchain Consensus Systems" Future Internet 17, no. 4: 157. https://doi.org/10.3390/fi17040157
APA StyleAnagnostakis, A. G., & Glavas, E. (2025). The New CAP Theorem on Blockchain Consensus Systems. Future Internet, 17(4), 157. https://doi.org/10.3390/fi17040157