Scaling Blockchains with Error Correction Codes: A Survey on Coded Blockchains

Changlin Yang, Kwan-Wu Chin, Jiguang Wang, Xiaodong Wang, Ying Liu, Zibin Zheng

Introduction

The "Scalability Trilemma" remains one of the most significant hurdles in blockchain development: the difficulty of achieving decentralization, security, and scalability simultaneously. Traditional blockchains like Bitcoin and Ethereum rely on full replication, where every "full node" must store the entire history of transactions. As of early 2022, Bitcoin required approximately 380 GB, while Ripple exceeded 14 TB.

This massive storage requirement leads to centralization, as only users with high-end hardware can run full nodes. While "light nodes" offer a low-resource alternative, they are inherently less secure and must trust full nodes for verification. This survey explores "Coded Blockchains," which leverage Error Correction Codes (ECC) to provide a middle way: the low resource requirements of a light node with the trustless security of a full node.

The Coded Blockchain Approach

The core innovation of coded blockchains is moving away from simple replication toward mathematical encoding. By partitioning a block into $k$ fragments and encoding them into $n$ fragments ($n > k$), the system ensures that any $k$ fragments can reconstruct the original data. This allows individual nodes to store only small, encoded fragments while maintaining the integrity of the entire ledger.

Comparison of storage strategies: Conventional replication vs. Coded blockchain storage.

As shown in the figure above, while conventional blockchains require every node (A, B, and C) to store every block ($b_1, b_2, b_3$), a coded blockchain allows nodes to store unique encoded symbols ($c_{i,j}$). This significantly reduces the storage footprint per node without sacrificing the ability to recover the original data if enough nodes are online.

Key Coding Schemes and Their Applications

The survey categorizes various coding-based solutions based on the specific bottleneck they address. Different mathematical schemes offer unique trade-offs between computational overhead, efficiency, and flexibility.

  • Reed-Solomon (RS) Codes: The gold standard for fixed-rate erasure coding, widely used for distributed storage and ensuring data availability.
  • Fountain/Rateless Codes (LT and Raptor): Ideal for dynamic networks where the number of participants changes, allowing nodes to generate a continuous stream of encoded symbols.
  • Low-Density Parity-Check (LDPC) Codes: Favored for their high efficiency and low computational overhead during the decoding process.
  • Lagrange Coded Computing (LCC): An advanced technique used in "Coded Sharding" to perform computations directly on encoded data, protecting against malicious nodes.
Distribution of coding schemes across various blockchain optimization domains.

Security and Data Availability

One of the most critical insights of this research is that coding is not just a storage-saving tool; it is a security primitive. In a Data Availability (DA) attack, a malicious producer might hide a small portion of a block to prevent others from verifying it. With ECC, a producer must hide a significant portion (often >50%) of the encoded block to successfully hide even a single byte of the original data. This makes such attacks much easier to detect through random sampling.

Furthermore, "Coded Sharding" (such as PolyShard) improves upon traditional sharding. In traditional models, if a majority of nodes in one shard are malicious, that shard is compromised. In coded sharding, every node stores a coded version of the entire network's state, allowing the network to maintain high security while scaling linearly with the number of nodes.

Performance Results and Future Directions

Quantitative analysis shows that coded solutions can achieve storage requirements as low as 0.47% of the original chain size while maintaining full integrity. Additionally, coded Byzantine Fault Tolerance (BFT) protocols can reduce communication overhead from $O(Bn^2)$ to $O(Bn)$, where $B$ is block size and $n$ is the number of nodes.

Despite these gains, challenges remain. Encoding and decoding require CPU cycles, and most current codes struggle with "node churn" (nodes frequently joining and leaving). Future research is directed toward local repair codes and using Machine Learning to dynamically optimize coding parameters based on real-time network conditions.

Summary updated

BibTeX
@article{yang2022scaling,
  author = {Changlin Yang and Kwan-Wu Chin and Jiguang Wang and Xiaodong Wang and Ying Liu and Zibin Zheng},
  title = {{Scaling Blockchains with Error Correction Codes: A Survey on Coded Blockchains}},
  journal = {ACM Computing Surveys},
  year = {2022},
}
Figure