GlassDB: An Efficient Verifiable Ledger Database System Through Transparency

Cong Yue, Tien Tuan Anh Dinh, Zhongle Xie, Meihui Zhang, Gang Chen, Beng Chin Ooi, Xiaokui Xiao

TL;DR

This paper introduces GlassDB, a novel distributed database system that provides verifiable data integrity and transaction support. It addresses the limitations of existing verifiable ledger databases by offering efficient transaction processing, high performance, and robust proof generation, making verifiable data management practical for real-world applications.

What Problem Does This Paper Address?

Maintaining the integrity of data and its history in databases is crucial, especially when the database provider is untrusted. Existing solutions like blockchains and certificate transparency logs offer transparency but often lack transaction support, making them unsuitable for transactional workloads (OLTP). Other verifiable databases, while offering some transaction capabilities, suffer from performance bottlenecks, inefficient proofs, or a lack of comprehensive data history protection. This paper aims to bridge this gap by proposing a system that combines the verifiability of transparency logs with the transactional capabilities and performance expected from modern databases.

Methods

GlassDB is built upon a novel two-level POS-tree (Pattern-Oriented Split-tree) data structure. This structure protects both the data itself and its indexes, a key innovation that addresses a major limitation in prior systems. The POS-tree is immutable and structurally invariant, enabling efficient updates and proofs.

Key methodological contributions include:

  • Hash-Protected Index Structures: Unlike many prior systems, GlassDB's indexes are cryptographically protected, preventing malicious tampering and reducing verification overhead.
  • State-Based Ledger: GlassDB builds its ledger over the state of data rather than transactions, allowing for more efficient retrieval of current data and proofs.
  • Distributed Architecture with 2PC: Data is partitioned across multiple shards, and GlassDB uses a two-phase commit (2PC) protocol to ensure atomicity for distributed transactions.
  • Asynchronous Persistence and Transaction Batching: To improve performance, GlassDB separates transaction commit from ledger persistence and batches multiple committed transactions before updating the ledger. This moves ledger updates out of the critical path.
  • Deferred Verification: Clients can opt for deferred verification, allowing the system to batch proofs and improve throughput, with a configurable delay to balance performance and security.
  • Auditing Mechanism: A set of trusted auditors continuously monitors the database for inconsistencies and forks in the history log.

Datasets

The paper does not use pre-existing datasets for training. Instead, it introduces new benchmark workloads by extending the widely-used YCSB (Yahoo! Cloud Serving Benchmark) and TPC-C benchmarks. These extensions incorporate verification requests for current and historical data, as well as a "delay" parameter for deferred verification, allowing for a more realistic evaluation of verifiable ledger databases.

Key Insights and Ideas

  • Index Integrity is Crucial: The lack of integrity protection for indexes in many existing verifiable ledger databases is a significant bottleneck, leading to either security vulnerabilities or high verification costs. GlassDB's hash-protected index structures directly address this.
  • State vs. Transactional Ledgers: Building a ledger on data states, rather than individual transactions, offers advantages in terms of proof generation and data retrieval efficiency.
  • Batching is Key for Performance: Asynchronous persistence and transaction batching are essential for achieving high throughput in verifiable ledger databases by amortizing the cost of ledger updates.
  • Deferred Verification is a Practical Trade-off: Allowing for deferred verification enables significant performance gains, making verifiable databases more practical for applications that can tolerate a small window of potential data staleness.
  • A Unified Design Space is Needed: The paper proposes a design space for verifiable ledger databases (abstraction, threat model, performance) to facilitate principled comparisons between different systems.

Key Results

GlassDB demonstrates significant performance improvements over existing systems.

  • Throughput: In YCSB workloads, GlassDB outperforms QLDB, LedgerDB, and SQL Ledger by up to 3.7x, 1.7x, and 1.8x, respectively. In TPC-C workloads, it achieves 2.3x higher throughput than QLDB, 1.3x higher than LedgerDB, and 1.4x higher than SQL Ledger.
  • Verification Latency: GlassDB exhibits comparable or lower verification latency than its baselines, often due to its efficient proof generation and batching mechanisms.
  • Storage Efficiency: GlassDB is shown to be more space-efficient than QLDB* due to its effective batching technique and smaller ledger structure.
  • Impact of Design Choices: Removing deferred verification (DV) and batching (BA) from GlassDB significantly reduces performance. The full GlassDB system, with both DV and BA, shows a 1.3x throughput improvement over the version without batching.

Limitations and Future Work

  • 2PC Blocking Nature: The paper acknowledges that the use of 2PC for distributed transactions can be blocking. While replication helps tolerate node failures, the 2PC protocol itself can introduce latency. The authors suggest exploring non-blocking atomic commitment protocols (like 3PC or Paxos commit) as future work.
  • Auditing Cost: The auditing process, while essential for overall system integrity, can be expensive, especially with high transaction rates. The paper notes that this process can be done off the critical path and is amenable to distributed processing.
  • Trusted Auditors: The system relies on a set of trusted auditors. The security of the system is dependent on the honesty of at least some of these auditors.
  • Confidentiality Not Addressed: The paper explicitly states that confidentiality is out of scope, focusing solely on data integrity and history verifiability.

Summary updated

BibTeX
@article{yue2023glassdb,
  author = {Cong Yue and Tien Tuan Anh Dinh and Zhongle Xie and Meihui Zhang and Gang Chen and Beng Chin Ooi and Xiaokui Xiao},
  title = {{GlassDB: An Efficient Verifiable Ledger Database System Through Transparency}},
  journal = {Proc. VLDB Endow.},
  year = {2023},
  doi = {10.14778/3583140.3583152},
}
Figure