Loading…

Efficient State Sharding in Blockchain via Density-based Graph Partitioning

Sharding is a promising technique for increasing a blockchain system’s throughput by enabling parallel transaction processing. The main challenge of state sharding lies in ensuring the atomicity verification of cross-sharding transactions, which results in double communication overhead and increases...

Full description

Saved in:
Bibliographic Details
Published in:ACM transactions on the web 2024-09
Main Authors: Yin, Bo, Zhang, Peng, Chen, Tingxuan
Format: Article
Language:English
Subjects:
Citations: Items that this one cites
Online Access:Get full text
Tags: Add Tag
No Tags, Be the first to tag this record!
cited_by
cites cdi_FETCH-LOGICAL-a510-ee94ce56c118d318651d7ef7b5c33f09884f911d15605f52df7846aea4fd7c593
container_end_page
container_issue
container_start_page
container_title ACM transactions on the web
container_volume
creator Yin, Bo
Zhang, Peng
Chen, Tingxuan
description Sharding is a promising technique for increasing a blockchain system’s throughput by enabling parallel transaction processing. The main challenge of state sharding lies in ensuring the atomicity verification of cross-sharding transactions, which results in double communication overhead and increases the transaction’s confirmation time. Previous research has primarily focused on developing cross-shard protocols for the fast and reliable validation of transactions involving multiple shards. These studies typically generate a large number of cross-shard transactions because they primarily use simple address mapping for state sharding, that is, the prefix/suffix of the account address. In this paper, we propose a state sharding scheme via density-based partitioning of the account-transaction graph. In order to reduce cross-shard transactions, the scheme groups correlated accounts into the same shard by generating the densest subgraphs, as the graph density describes the correlation among accounts, i.e., how often transactions have occurred among accounts. We formulate the graph density-based state sharding problem, with the goal of maximizing the average density across all shards under the workload constraint. We prove the NP-completeness of the problem. To reduce the complexity of finding the densest subgraph, we propose the pruning-based algorithm that reduces the search space by pre-pruning some invalid edges based on the concept of core number. We also extend the linear deterministic greedy algorithm and PageRank algorithm to handle new transactions in the dynamic scenario. We conduct extensive experiments using real transaction data from Ethereum. The experimental results demonstrate a strong correlation between the shard density and the number of cross-shard transactions, and the pruning-based algorithm can reduce the running time by an order of magnitude.
doi_str_mv 10.1145/3697840
format article
fullrecord <record><control><sourceid>acm_cross</sourceid><recordid>TN_cdi_crossref_primary_10_1145_3697840</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>3697840</sourcerecordid><originalsourceid>FETCH-LOGICAL-a510-ee94ce56c118d318651d7ef7b5c33f09884f911d15605f52df7846aea4fd7c593</originalsourceid><addsrcrecordid>eNo9kM1LAzEQxYMoWKt495Sbp9VMs5PdPWqtVSwotAdvyzQfbrTdLUko9L93pbWnecz83oN5jF2DuAPI8V6qqihzccIGgFhl_e7z9KglnLOLGL-FQDUSasDeJs557W2b-DxRsnzeUDC-_eK-5Y-rTv_ohnq59cSfbBt92mVLitbwaaBNwz8oJJ981_aWS3bmaBXt1WEO2eJ5shi_ZLP36ev4YZYRgsisrXJtUWmA0kgoFYIprCuWqKV0oirL3FUABlAJdDgyrn9HkaXcmUJjJYfsdh-rQxdjsK7eBL-msKtB1H8V1IcKevJmT5JeH6H_4y-T_1Wt</addsrcrecordid><sourcetype>Aggregation Database</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype></control><display><type>article</type><title>Efficient State Sharding in Blockchain via Density-based Graph Partitioning</title><source>Association for Computing Machinery:Jisc Collections:ACM OPEN Journals 2023-2025 (reading list)</source><creator>Yin, Bo ; Zhang, Peng ; Chen, Tingxuan</creator><creatorcontrib>Yin, Bo ; Zhang, Peng ; Chen, Tingxuan</creatorcontrib><description>Sharding is a promising technique for increasing a blockchain system’s throughput by enabling parallel transaction processing. The main challenge of state sharding lies in ensuring the atomicity verification of cross-sharding transactions, which results in double communication overhead and increases the transaction’s confirmation time. Previous research has primarily focused on developing cross-shard protocols for the fast and reliable validation of transactions involving multiple shards. These studies typically generate a large number of cross-shard transactions because they primarily use simple address mapping for state sharding, that is, the prefix/suffix of the account address. In this paper, we propose a state sharding scheme via density-based partitioning of the account-transaction graph. In order to reduce cross-shard transactions, the scheme groups correlated accounts into the same shard by generating the densest subgraphs, as the graph density describes the correlation among accounts, i.e., how often transactions have occurred among accounts. We formulate the graph density-based state sharding problem, with the goal of maximizing the average density across all shards under the workload constraint. We prove the NP-completeness of the problem. To reduce the complexity of finding the densest subgraph, we propose the pruning-based algorithm that reduces the search space by pre-pruning some invalid edges based on the concept of core number. We also extend the linear deterministic greedy algorithm and PageRank algorithm to handle new transactions in the dynamic scenario. We conduct extensive experiments using real transaction data from Ethereum. The experimental results demonstrate a strong correlation between the shard density and the number of cross-shard transactions, and the pruning-based algorithm can reduce the running time by an order of magnitude.</description><identifier>ISSN: 1559-1131</identifier><identifier>EISSN: 1559-114X</identifier><identifier>DOI: 10.1145/3697840</identifier><language>eng</language><publisher>New York, NY: ACM</publisher><subject>Network manageability ; Networks ; Topology analysis and generation</subject><ispartof>ACM transactions on the web, 2024-09</ispartof><rights>Copyright held by the owner/author(s). Publication rights licensed to ACM.</rights><lds50>peer_reviewed</lds50><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed><cites>FETCH-LOGICAL-a510-ee94ce56c118d318651d7ef7b5c33f09884f911d15605f52df7846aea4fd7c593</cites><orcidid>0000-0002-0281-5970 ; 0009-0000-0621-0699 ; 0009-0001-5911-4796</orcidid></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>314,780,784,27924,27925</link.rule.ids></links><search><creatorcontrib>Yin, Bo</creatorcontrib><creatorcontrib>Zhang, Peng</creatorcontrib><creatorcontrib>Chen, Tingxuan</creatorcontrib><title>Efficient State Sharding in Blockchain via Density-based Graph Partitioning</title><title>ACM transactions on the web</title><addtitle>ACM TWEB</addtitle><description>Sharding is a promising technique for increasing a blockchain system’s throughput by enabling parallel transaction processing. The main challenge of state sharding lies in ensuring the atomicity verification of cross-sharding transactions, which results in double communication overhead and increases the transaction’s confirmation time. Previous research has primarily focused on developing cross-shard protocols for the fast and reliable validation of transactions involving multiple shards. These studies typically generate a large number of cross-shard transactions because they primarily use simple address mapping for state sharding, that is, the prefix/suffix of the account address. In this paper, we propose a state sharding scheme via density-based partitioning of the account-transaction graph. In order to reduce cross-shard transactions, the scheme groups correlated accounts into the same shard by generating the densest subgraphs, as the graph density describes the correlation among accounts, i.e., how often transactions have occurred among accounts. We formulate the graph density-based state sharding problem, with the goal of maximizing the average density across all shards under the workload constraint. We prove the NP-completeness of the problem. To reduce the complexity of finding the densest subgraph, we propose the pruning-based algorithm that reduces the search space by pre-pruning some invalid edges based on the concept of core number. We also extend the linear deterministic greedy algorithm and PageRank algorithm to handle new transactions in the dynamic scenario. We conduct extensive experiments using real transaction data from Ethereum. The experimental results demonstrate a strong correlation between the shard density and the number of cross-shard transactions, and the pruning-based algorithm can reduce the running time by an order of magnitude.</description><subject>Network manageability</subject><subject>Networks</subject><subject>Topology analysis and generation</subject><issn>1559-1131</issn><issn>1559-114X</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2024</creationdate><recordtype>article</recordtype><recordid>eNo9kM1LAzEQxYMoWKt495Sbp9VMs5PdPWqtVSwotAdvyzQfbrTdLUko9L93pbWnecz83oN5jF2DuAPI8V6qqihzccIGgFhl_e7z9KglnLOLGL-FQDUSasDeJs557W2b-DxRsnzeUDC-_eK-5Y-rTv_ohnq59cSfbBt92mVLitbwaaBNwz8oJJ981_aWS3bmaBXt1WEO2eJ5shi_ZLP36ev4YZYRgsisrXJtUWmA0kgoFYIprCuWqKV0oirL3FUABlAJdDgyrn9HkaXcmUJjJYfsdh-rQxdjsK7eBL-msKtB1H8V1IcKevJmT5JeH6H_4y-T_1Wt</recordid><startdate>20240927</startdate><enddate>20240927</enddate><creator>Yin, Bo</creator><creator>Zhang, Peng</creator><creator>Chen, Tingxuan</creator><general>ACM</general><scope>AAYXX</scope><scope>CITATION</scope><orcidid>https://orcid.org/0000-0002-0281-5970</orcidid><orcidid>https://orcid.org/0009-0000-0621-0699</orcidid><orcidid>https://orcid.org/0009-0001-5911-4796</orcidid></search><sort><creationdate>20240927</creationdate><title>Efficient State Sharding in Blockchain via Density-based Graph Partitioning</title><author>Yin, Bo ; Zhang, Peng ; Chen, Tingxuan</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-LOGICAL-a510-ee94ce56c118d318651d7ef7b5c33f09884f911d15605f52df7846aea4fd7c593</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2024</creationdate><topic>Network manageability</topic><topic>Networks</topic><topic>Topology analysis and generation</topic><toplevel>peer_reviewed</toplevel><toplevel>online_resources</toplevel><creatorcontrib>Yin, Bo</creatorcontrib><creatorcontrib>Zhang, Peng</creatorcontrib><creatorcontrib>Chen, Tingxuan</creatorcontrib><collection>CrossRef</collection><jtitle>ACM transactions on the web</jtitle></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext</fulltext></delivery><addata><au>Yin, Bo</au><au>Zhang, Peng</au><au>Chen, Tingxuan</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>Efficient State Sharding in Blockchain via Density-based Graph Partitioning</atitle><jtitle>ACM transactions on the web</jtitle><stitle>ACM TWEB</stitle><date>2024-09-27</date><risdate>2024</risdate><issn>1559-1131</issn><eissn>1559-114X</eissn><abstract>Sharding is a promising technique for increasing a blockchain system’s throughput by enabling parallel transaction processing. The main challenge of state sharding lies in ensuring the atomicity verification of cross-sharding transactions, which results in double communication overhead and increases the transaction’s confirmation time. Previous research has primarily focused on developing cross-shard protocols for the fast and reliable validation of transactions involving multiple shards. These studies typically generate a large number of cross-shard transactions because they primarily use simple address mapping for state sharding, that is, the prefix/suffix of the account address. In this paper, we propose a state sharding scheme via density-based partitioning of the account-transaction graph. In order to reduce cross-shard transactions, the scheme groups correlated accounts into the same shard by generating the densest subgraphs, as the graph density describes the correlation among accounts, i.e., how often transactions have occurred among accounts. We formulate the graph density-based state sharding problem, with the goal of maximizing the average density across all shards under the workload constraint. We prove the NP-completeness of the problem. To reduce the complexity of finding the densest subgraph, we propose the pruning-based algorithm that reduces the search space by pre-pruning some invalid edges based on the concept of core number. We also extend the linear deterministic greedy algorithm and PageRank algorithm to handle new transactions in the dynamic scenario. We conduct extensive experiments using real transaction data from Ethereum. The experimental results demonstrate a strong correlation between the shard density and the number of cross-shard transactions, and the pruning-based algorithm can reduce the running time by an order of magnitude.</abstract><cop>New York, NY</cop><pub>ACM</pub><doi>10.1145/3697840</doi><orcidid>https://orcid.org/0000-0002-0281-5970</orcidid><orcidid>https://orcid.org/0009-0000-0621-0699</orcidid><orcidid>https://orcid.org/0009-0001-5911-4796</orcidid><oa>free_for_read</oa></addata></record>
fulltext fulltext
identifier ISSN: 1559-1131
ispartof ACM transactions on the web, 2024-09
issn 1559-1131
1559-114X
language eng
recordid cdi_crossref_primary_10_1145_3697840
source Association for Computing Machinery:Jisc Collections:ACM OPEN Journals 2023-2025 (reading list)
subjects Network manageability
Networks
Topology analysis and generation
title Efficient State Sharding in Blockchain via Density-based Graph Partitioning
url http://sfxeu10.hosted.exlibrisgroup.com/loughborough?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-02T15%3A49%3A41IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-acm_cross&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.genre=article&rft.atitle=Efficient%20State%20Sharding%20in%20Blockchain%20via%20Density-based%20Graph%20Partitioning&rft.jtitle=ACM%20transactions%20on%20the%20web&rft.au=Yin,%20Bo&rft.date=2024-09-27&rft.issn=1559-1131&rft.eissn=1559-114X&rft_id=info:doi/10.1145/3697840&rft_dat=%3Cacm_cross%3E3697840%3C/acm_cross%3E%3Cgrp_id%3Ecdi_FETCH-LOGICAL-a510-ee94ce56c118d318651d7ef7b5c33f09884f911d15605f52df7846aea4fd7c593%3C/grp_id%3E%3Coa%3E%3C/oa%3E%3Curl%3E%3C/url%3E&rft_id=info:oai/&rft_id=info:pmid/&rfr_iscdi=true