Sharding in QuarkChain — A Deep Dive into State Partitioningby@qizhou
190 reads

Sharding in QuarkChain — A Deep Dive into State Partitioning

by Qi Zhou5mJune 2nd, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

QuarkChain partitions smart contracts, i.e., putting smart contracts in different shards if a reshard event happens. A smart contract contains code and storage, and the data size could be much larger than a user account. We do not partition user accounts, and a user can easily move its account state (mostly balance) to another shard via cross-shard transactions. This allows a user with a private key to access all resources (smart contracts) in all shards. Each smart contract has a shard key (fullShardId in our codebase), and any batch operations on all smart contracts with the same key are atomic. The behaviors of the smart contracts will be the same before- and after- reshard.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - Sharding in QuarkChain — A Deep Dive into State Partitioning
Qi Zhou HackerNoon profile picture
Qi Zhou

Qi Zhou

@qizhou

Founder & CEO of QuarkChain

About @qizhou
LEARN MORE ABOUT @QIZHOU'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Qi Zhou HackerNoon profile picture
Qi Zhou@qizhou
Founder & CEO of QuarkChain

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite