GriDB:通过分片与链下跨分片机制扩展区块链数据库
GriDB: Scaling Blockchain Database via Sharding and Off-Chain Cross-Shard Mechanism
AI总结:
GriDB提出首个可扩展区块链数据库,通过链下跨分片机制和新型认证数据结构,在拜占庭环境下高效支持跨分片查询与在线负载均衡,降低共识开销并保留分片收益。
摘要:
区块链数据库已引起广泛关注,但由于底层区块链不可扩展而面临可扩展性差的困境。虽然区块链分片对于可扩展的区块链数据库是必要的,但它带来了一个名为“链上跨分片数据库服务”的新挑战。每个跨分片数据库服务(例如跨分片查询或分片间负载均衡)都涉及大量跨分片数据交换,而现有跨分片机制需要经由相关分片中所有节点的共识(即链上方式)来处理每一次跨分片数据交换,以抵御区块链的拜占庭环境,这抵消了分片带来的收益。为应对这一挑战,本文提出GriDB,这是第一个可扩展的区块链数据库,其核心是设计了一种新颖的链下跨分片机制,用于实现高效的跨分片数据库服务。借鉴链下支付的思路,GriDB将大量跨分片数据交换委托给少数节点,每个节点从不同分片中随机选取。考虑到拜占庭环境,这些不可信的委托节点协作生成跨分片数据交换的简洁证明,而共识仅负责低成本的证明验证。然而,与支付不同,数据库服务的验证具有更多要求(例如完整性、正确性、新鲜性和可用性);因此,我们引入了若干新的认证数据结构(ADS)。特别地,我们利用共识扩展威胁模型,并降低传统基于累加器的ADS的复杂度,以支持带有丰富关系运算符的可验证跨分片查询。此外,我们研究了可扩展区块链数据库中进行分片间负载均衡的必要性,并设计了一种链下且在线的方法,以在均衡过程中兼顾效率和可用性。
英文摘要:
Blockchain databases have attracted widespread attention but suffer from poor scalability due to underlying non-scalable blockchains. While blockchain sharding is necessary for a scalable blockchain database, it poses a new challenge named on-chain cross-shard database services. Each cross-shard database service (e.g., cross-shard queries or inter-shard load balancing) involves massive cross-shard data exchanges, while the existing cross-shard mechanisms need to process each cross-shard data exchange via the consensus of all nodes in the related shards (i.e., on-chain) to resist a Byzantine environment of blockchain, which eliminates sharding benefits. To tackle the challenge, this paper presents GriDB, the first scalable blockchain database, by designing a novel off-chain cross-shard mechanism for efficient cross-shard database services. Borrowing the idea of off-chain payments, GriDB delegates massive cross-shard data exchange to a few nodes, each of which is randomly picked from a different shard. Considering the Byzantine environment, the untrusted delegates cooperate to generate succinct proof for cross-shard data exchanges, while the consensus is only responsible for the low-cost proof verification. However, different from payments, the database services' verification has more requirements (e.g., completeness, correctness, freshness, and availability); thus, we introduce several new authenticated data structures (ADS). Particularly, we utilize consensus to extend the threat model and reduce the complexity of traditional accumulator-based ADS for verifiable cross-shard queries with a rich set of relational operators. Moreover, we study the necessity of inter-shard load balancing for a scalable blockchain database and design an off-chain and live approach for both efficiency and availability during balancing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。