Efficient Public Blockchain Client for Lightweight Users

Lei Xu, Lin Chen, Zhimin Gao, Shouhuai Xu, Weidong ShiarXiv 2018 · arXiv

TL;DR

EPBC (Efficient Verification Protocol for Public Blockchains) enables lightweight devices like IoT sensors and smartphones to verify blockchain transactions with constant-size storage, regardless of how large the blockchain grows. By leveraging cryptographic accumulators, it moves the heavy lifting to full nodes while allowing clients to remain fully decentralized and secure under the Strong RSA assumption.

What Problem Does This Paper Address?

The "blockchain bloat" problem is a significant barrier to entry for resource-constrained devices. As of 2017, the Bitcoin blockchain was already 120 GB—far too large for a smartphone or an IoT device to store.

Existing solutions have major drawbacks:

  1. Full Nodes: Require storing the entire history (prohibitive storage).
  2. Simplified Payment Verification (SPV): Proposed by Satoshi Nakamoto, this requires clients to store all block headers. While better, storage still grows linearly ($O(n)$) with the chain's length, eventually becoming too heavy for tiny devices.
  3. Trusted Servers: Clients can ask a third party to verify transactions, but this sacrifices the core "trustless" nature of decentralized ledgers and opens the door to Sybil attacks.

The authors aim for a "middle way": a protocol that provides the security of a full node with the storage footprint of a single cryptographic constant.

Methods

The core of EPBC is the use of Cryptographic Accumulators (specifically RSA-based). An accumulator allows you to "compress" a large set of values into a single, constant-size value.

  • Recursive Summaries: Instead of just linking blocks via hashes, each block in EPBC includes a "summary" ($S_i$). This summary is calculated by taking the previous block's summary and performing a modular exponentiation using the hash of the current block as the exponent: $S_i = S_{i-1}^{hash(blk_i)} \pmod N$.
  • Membership Proofs: When a lightweight user needs to verify a transaction in block $i$, they request a proof from a full node (the "prover"). This proof is essentially a witness that block $i$ was indeed factored into the current global summary $S_n$.
  • Constant-Time Verification: The lightweight client only needs to store the latest summary $S_n$. To verify a block, it performs one hash and one modular exponentiation. This cost remains the same whether the chain has 1,000 blocks or 1,000,000.
  • Prover Optimization: Generating these proofs can be computationally expensive ($O(n)$). The authors propose a binary tree structure ($T$) where internal nodes store products of hashes. This reduces the prover's computational complexity to $O(\log n)$ at the cost of some extra storage for the prover.

Datasets

The paper does not use a standard machine learning dataset. Instead, it evaluates a prototype implementation:

  • Library: MIRACL cryptographic library.
  • Parameters: 1024-bit RSA modulus $N$ and SHA256 for hashing.
  • Hardware: A desktop with an Intel Celeron 1017U processor. This was specifically chosen because its performance (measured via Geekbench 4) is comparable to the Snapdragon 805, a common mobile processor at the time.

Key Insights and Ideas

  • Independence from Chain Size: The most striking insight is that a client's storage requirement can be truly $O(1)$. By storing only the most recent summary, the client is effectively "holding" the entire history of the chain in a single 1024-bit or 2048-bit number.
  • Layered Integration: EPBC is designed to work as a "service layer." It doesn't require changing the underlying consensus rules (like Proof-of-Work) of existing blockchains. An EPBC client can run alongside a standard Bitcoin or Ethereum node, generating summaries for lightweight users to consume.
  • Security via Strong RSA: The protocol's security rests on the Strong RSA assumption. The authors prove that an attacker cannot forge a valid proof for a fake block unless they can solve the Strong RSA problem, which is computationally infeasible.

Key Results

  • Verification Speed: On mobile-equivalent hardware, verifying a single block takes approximately 0.02 seconds.
  • Storage Efficiency: A lightweight client only needs to store the latest summary (e.g., 2048 bits for a 2048-bit $N$). This is a massive improvement over SPV, which requires megabytes of header data.
  • Scalability: With the binary tree optimization, the time it takes for a full node to generate a proof scales logarithmically. Even for a chain with $2^{30}$ (over a billion) blocks, proof generation remains practical (under 0.25 seconds in their tests).

Limitations and Future Work

  • The "Trusted Setup" Problem: Like many RSA-based systems, EPBC requires a one-time generation of the modulus $N = pq$. The prime factors $p$ and $q$ must be discarded ("toxic waste"). If the creator keeps them, they could forge proofs. The authors suggest using Multi-Party Computation (MPC) to generate $N$ safely, but this adds complexity to the initial setup.
  • Prover Storage Overhead: While the client saves space, the provers (full nodes) must store the binary tree to remain efficient. This tree has a storage complexity of $O(n \log n)$, which is larger than the blockchain itself.
  • Block Discovery: EPBC tells you if a block is valid, but it doesn't help you find which block contains your transaction. The authors note that existing technologies like Bloom filters would still be needed to help clients locate relevant blocks.

Summary updated

Abstract

Public blockchains provide a decentralized method for storing transaction data and have many applications in different sectors. In order for users to track transactions, a simple method is to let them keep a local copy of the entire public ledger. Since the size of the ledger keeps growing, this method becomes increasingly less practical, especially for lightweight users such as IoT devices and smartphones. In order to cope with the problem, several solutions have been proposed to reduce the storage burden. However, existing solutions either achieve a limited storage reduction (e.g., simple payment verification), or rely on some strong security assumption (e.g., the use of trusted server). In this paper, we propose a new approach to solving the problem. Specifically, we propose an \underline{e}fficient verification protocol for \underline{p}ublic \underline{b}lock\underline{c}hains, or EPBC for short. EPBC is particularly suitable for lightweight users, who only need to store a small amount of data that is {\it independent of} the size of the blockchain. We analyze EPBC's performance and security, and discuss its integration with existing public ledger systems. Experimental results confirm that EPBC is practical for lightweight users.
BibTeX
@misc{xu2018efficient,
  author = {Lei Xu and Lin Chen and Zhimin Gao and Shouhuai Xu and Weidong Shi},
  title = {{Efficient Public Blockchain Client for Lightweight Users}},
  year = {2018},
  eprint = {1811.04900},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.04900},
}

Loading related content...

Figure