arXiv:2610.23014cs.DCOct 2026

Manuscript Offprint

arXiv:2610.23014

QuarkShard: Decomposing Cross-Shard Requests into Single-Input Transactions

Changyu Duan, Zhixuan Fang

Abstract

Sharding blockchains enhance scalability by distributing the workload across multiple shards. Within sharding blockchains, securely and efficiently processing cross-shard user requests remains a pivotal challenge. Traditional sharding blockchain protocols execute cross-shard requests under a processing paradigm that treats each user request as a monolithic entity to preserve its atomicity, inherently introducing significant intra-shard BFT execution overhead and cross-shard communication overhead.

We propose QUARKSHARD, a sharding protocol that breaks away from this traditional paradigm to achieve intrashard and cross-shard overheads below the lower bounds imposed by conventional approaches. QUARKSHARD decomposes cross-shard requests into single-input-shard transactions, where each transaction requires consensus and processing within only a single shard, thereby substantially reducing total request processing overhead. Meanwhile, through a carefully designed request decomposition algorithm, QUARKSHARD guarantees fund atomicity or location atomicity during request execution. QUARKSHARD also enhances the security of blockchain sharding systems against MEV attacks and flooding attacks. Empirical evaluation across a wide-area network spanning four AWS regions demonstrates that QUARKSHARD achieves superior performance, attaining a peak throughput of 1024 k requests per second with sub-4-second latency. Benchmark comparisons show that QUARKSHARD achieves up to 210.7% and 314.8% of the maximum throughputs of Kronos and 2PC, respectively.

1 Introduction

As blockchain technology continues to evolve, enhancing scalability has become an important challenge. Among various solutions, sharding architectures are widely regarded as an effective approach [3,7,9,13,17,19–21,30,34] and have been implemented in multiple industrial-grade systems [1,2,28].

In traditional blockchains, every replica must store the complete blockchain state and participate in a global consensus protocol to process all transactions across the network. In contrast, sharding partitions both the blockchain state and the transaction execution process across multiple shards. Each shard is maintained by a subset of replicas and processes only a fraction of the system workload, thereby significantly reducing the per-replica load. By enabling horizontal scaling, sharding allows throughput to scale dynamically as more nodes and shards join the system.

A central challenge in sharding blockchains is how to process user requests that access state across multiple shards without compromising security or scalability. In sharding blockchains, each shard maintains only part of the global state, such as a subset of account balances. Therefore, a user may intend to draw funds from multiple shards and pay accounts located in multiple destination shards. Prior studies have shown that such cross-shard payments can dominate the workload: when the system has 16 shards, more than 99% of requests would access multiple shards [34]. For clarity, we use request for the user's payment intent and transaction for the object processed by the sharding blockchain protocol in this work. 1^{1}

To process a cross-shard user request, existing works typically require coordinating the involved shards to reach consensus on and execute the request according to specific rules. Ultimately, this coordination must guarantee request atomicity: the request should either take effect on all involved shards, or leave the system as if the request had not been executed. Specifically, the execution of a cross-shard request can be decomposed into two main components: intra-shard consensus and cross-shard communication.

Generally, sharding blockchains run a Byzantine Fault Tolerance (BFT) protocol within each shard to process and reach consensus on transactions. Processing each transaction incurs corresponding communication, computation, and storage overheads, which we collectively refer to as the intra-shard consensus overhead (IS-overhead). Many current protocols

1^{1}Prior work often uses transaction-related terminology for both notions; we separate them because QUARKSHARD deliberately decouples user requests from the transactions processed by the sharding blockchain protocol.

rely on two-phase commit (2PC) based schemes [3, 7, 9, 19], incurring an IS-overhead of (2a+b)B(2a+b)\mathcal{B} or larger for a request involving a input shards and b output shards, where B\mathcal{B} denotes the intra-shard BFT execution cost required to process a single transaction. State-of-the-art general cross-shard protocols, such as Kronos [20] and Logos [21], reduce this overhead to (a+b)B(a+b)\mathcal{B}.

To synchronize execution results across multiple shards, shards must transmit cryptographic certificates to one another, incurring what we term cross-shard communication overhead (CS-overhead). Existing protocols [3,7,9] typically require all-to-all inter-shard broadcasting to guarantee message reachability, introducing a CS-overhead of O(n2rλ)O(n^2r\lambda), where nn denotes the number of replicas per shard, rr represents the number of transactions in a batch, and λ\lambda is cryptographic parameter size. Kronos [20] reduces this overhead to O(nrλ)O(nr\lambda) by leveraging erasure codes [22]. Logos [21] further lowers the pure cross-shard communication overhead to O(rλ)O(r\lambda) by offloading most of the communication into intra-shard messaging (though the total communication overhead remains O(nrλ)O(nr\lambda)).

These traditional cross-shard protocols share a common processing paradigm: the protocol treats each user request as a monolithic entity for consensus and execution, directly guaranteeing its atomicity through protocol-level mechanisms. However, this paradigm imposes inherent overheads. Prior work has proven that the intra-shard consensus overhead cannot fall below (a+b)B(a+b)\mathcal{B} [20,21], as each involved shard must execute at least one consensus round for the request. Similarly, because a certificate must be broadcast to recipient shards for every request, the lower bound for the total communication overhead remains Ω(nrλ)\Omega(nr\lambda), and the lower bound for the CS-overhead is Ω(rλ)\Omega(r\lambda) [21].

These lower bounds motivate us to reconsider a fundamental question: Is treating each user request as an indivisible entity strictly necessary?

The answer is negative. We propose QUARKSHARD, which splits each cross-shard user request into finer-grained pieces, where each piece is a transaction with a unique input shard, termed a Quark transaction. The protocol no longer reaches consensus on monolithic user requests; instead, it processes only Quark transactions, while request-level atomicity is guaranteed via a carefully designed request splitting algorithm. Through this decomposition, QUARKSHARD bypasses the theoretical lower bounds of traditional paradigms, achieving significantly lower intra-shard and cross-shard overheads.

Specifically, in QUARKSHARD, the system exclusively executes Quark transactions. Each Quark transaction debits balances from only a single shard, although it may generate credits for other shards. Because a Quark transaction has a unique input shard, its validity can be determined solely by that shard. Consequently, processing a Quark transaction requires consensus only within its input shard; output shards do not need to execute an additional consensus round for the original transaction. Instead, output shards simply trust the

Figure

Figure 1: QUARKSHARD Workflow. The user executes a single Quark transaction per input shard to fully process the request, incurring an IS-overhead of merely aBa\mathcal{B}. For any Quark transaction, its generated outputs are imported by the target destination shards with negligible overhead (depicted as gray blocks), eliminating the need for an additional BFT consensus round on the original request.

Figure

Figure 2: 2PC (left) and Kronos (right) Workflow. 2PC first executes BFT consensus across all input shards to lock the required inputs; upon successful locking, it executes consensus across all input or output shards to commit input deductions or credit output balances, incurring an IS-overhead of (2a+b)B(2a+b)\mathcal{B}. Kronos first executes BFT consensus across all input shards to consume the inputs; upon success, it executes consensus across all output shards to apply the outputs, incurring an IS-overhead of (a+b)B(a+b)\mathcal{B}.

consensus result of the input shard and import the balance increments of the output accounts with minimal overhead.

To execute a cross-shard request, the user divides it into a sequence of Quark transactions. We refer to this process as user request compilation. A carefully designed compilation algorithm guarantees the request's fund atomicity: either the request executes entirely, or all funds remain under the control of their original account holders. Furthermore, honest users can achieve a stronger guarantee, location atomicity, which eliminates any side effects of request execution on funds controlled by honest accounts.

As an example (Figure 1), consider a user holding inputs in shards S1S_{1} and S2S_{2} who wishes to pay recipient accounts in S3S_{3} and S4S_{4}. The base compilation algorithm (Algorithm 2) first issues a Quark transaction to transfer the inputs in S1S_{1} to the same account in S2S_{2}. Subsequently, it issues another Quark transaction from S2S_{2} that transfers all gathered inputs to the target accounts in S3S_{3} and S4S_{4}. On the success path, the base

Table 1: Comparison of QUARKSHARD and BFT-based Sharding Blockchain Systems.

ProtocolIS-Overhead†^{\dagger}CS-Overhead‡^{\ddagger} (for rr transactions)CS Front-Running Free∘^{\circ}Order-Fairness BFT Compatible∗^{*}
valid Requestinvalid Request
OmniLedger [17](a+b)B(a+b)\mathcal{B}2aB2a\mathcal{B}O(n2rλ)O(n^2r\lambda)✕✕
RapidChain [34](a+b)B∘(a+b)\mathcal{B}^{\circ}xB∘x\mathcal{B}^{\circ}O(n2rλ)O(n^2r\lambda)✕✕
Chainspace [3](2a+b)B(2a+b)\mathcal{B}2aB2a\mathcal{B}O(n2rλ)O(n^2r\lambda)✕✕
ByShard [9](2(a+b)−1)B(2(a+b)-1)\mathcal{B}(2x+1)B(2x+1)\mathcal{B}O(n2rλ)O(n^2r\lambda)✕✕
AHL [7](2(a+b)+3)B(2(a+b)+3)\mathcal{B}(2(a+b)+3)B(2(a+b)+3)\mathcal{B}O(n2rλ)O(n^2r\lambda)✕✕
Kronos [20](a+b)B(a+b)\mathcal{B}2xB2x\mathcal{B}O(nrλ)O(nr\lambda)✕✕
Logos [21](a+b)B(a+b)\mathcal{B}aCaCO(rλ)O(r\lambda)✕✕
QUARKSHARDaBa\mathcal{B}xBx\mathcal{B}(x+1[x>0])\mathcal{B}^{\}O(ncλ)O(nc\lambda)O(c\lambda)^{\}✓✓

✓ and ✕ denote that a property is satisfied and not satisfied, respectively.

†^{\dagger} aa and bb: the numbers of input and output shards for a request. B\mathcal{B}: the BFT execution cost for a single transaction. x(<a)x (<a): the number of input shards that have consumed or locked funds prior to the rejection of an invalid request.

‡^{\ddagger} rr: the number of transactions in a batch. cc: the number of output accounts involved in these transactions. λ\lambda: the cryptographic parameter size. This column indicates the communication overhead required to guarantee that every honest node in the destination shard eventually receives the identical, reliably delivered data [21].

CS Front-Running Free indicates whether the cross-shard request processing scheme eliminates time windows in which an adversary can observe transaction intent in advance and perform front-running using intra-shard transactions (Definition 5.1).

★ Order-Fairness BFT Compatible indicates whether the system is compatible with non-sharding Order-Fairness BFT consensus protocols (Definition 5.2).

◇ RapidChain only supports single-destination output requests (b=1b=1) and does not support all-or-nothing atomicity. The term xBx\mathcal{B} represents its overhead for invalid requests when achieving fund atomicity analogous to that defined in this paper.

§ The terms xBx\mathcal{B} and (x+1[x>0])B(x+\mathbf{1}[x>0])\mathcal{B} represent the IS-overhead under fund atomicity and location atomicity, respectively. 1[x>0]\mathbf{1}[x>0] is the indicator function that equals 1 if x>0x>0 and 0 otherwise. The term O(cλ)O(c\lambda) represents the reduced overhead when employing a Logos-based optimization scheme [21].

compilation algorithm commits one Quark transaction per input shard, incurring an IS-overhead of aBa\mathcal{B}. For comparison, the execution workflows of 2PC and Kronos for processing this request are illustrated in Figure 2.

Regarding CS-overhead, QUARKSHARD requires a shard to broadcast the cross-shard outputs of Quark transactions to the target shards. However, the cross-shard effects of a large volume of transactions can be aggregated by account. Through this mechanism, QUARKSHARD reduces the CS-overhead of rr Quark transactions to O(ncλ)O(nc\lambda), where cc represents the number of distinct destination accounts in distinct shards across these rr transactions. By incorporating the cross-shard communication optimization from Logos [21], the CS-overhead can be further lowered to O(cλ)O(c\lambda).

The design of QUARKSHARD not only reduces the overhead of processing cross-shard requests, but also enhances the security and robustness of sharding blockchain systems. In blockchain environments, adversaries can exploit transaction ordering to extract Maximal Extractable Value (MEV) at honest users' expense [6, 26]. sharding blockchains are particularly susceptible to these attacks [35]. QUARKSHARD mitigates the impact of MEV attacks on sharding blockchains at two distinct levels.

First, in traditional cross-shard protocols, a cross-shard request must reach consensus in the input shards before undergoing consensus in the output shards. This sequential workflow inherently imposes higher latency on cross-shard requests compared to intra-shard transactions, expanding the exposure to front-running attacks. An attacker observing a published cross-shard request during its processing in the input shard can issue a front-running intra-shard transaction in the output shard, executing it before the cross-shard request completes [35]. In QUARKSHARD, a user's cross-shard request is never publicly broadcast as a monolithic intent. Consequently, when an adversary observes a user transferring funds from one shard to another, they cannot ascertain what subsequent transaction, if any, the user will initiate. This effectively closes the extra front-running attack window caused by latency disparities between cross-shard and intra-shard execution.

Second, in traditional cross-shard protocols, achieving order-fairness across all requests requires additional cross-shard ordering mechanisms due to multi-shard involvement [12, 35]. In contrast, each shard in QUARKSHARD processes only the Quark transactions without having to coordinate with other shards, the intra-shard consensus can directly employ standard order-fairness protocols designed for non-sharding blockchains [15, 16] and ensuring fair ordering for all Quark transactions in the same shard. It is worth noting that QUARKSHARD does not eliminate MEV entirely; rather, it shrinks the MEV attack surface introduced by sharding and offers superior compatibility with conventional anti-MEV mechanisms.

Existing work indicates that sharding blockchains are more vulnerable to flooding attacks compared to non-sharding systems [21]. In most 2PC-based protocols and Kronos, a failed cross-shard request incurs a wasted IS-overhead of at least 2xB2x\mathcal{B}, where xx is the number of input shards that have consumed or locked funds prior to the rejection of the invalid request. As a result, an adversary can exhaust system resources by flooding the system with invalid cross-shard requests. Logos mitigates this by decoupling the broadcast and agreement phases of consensus, allowing invalid requests to fail early during the broadcast phase and reducing the wasted overhead to aC, where C denotes the cost of broadcasting a transaction in consensus. 2^{2} In QUARKSHARD, an invalid request incurs an overhead of xB when relying on fund atomicity. If location atomicity is required, an additional refund transaction is executed, resulting in an overhead of (x+1[x>0])B(x + 1[x > 0])\mathcal{B}. In scenarios where broadcast bandwidth is the primary bottleneck, QUARKSHARD can achieve lower practical overhead than Logos. A comparison between QUARKSHARD and existing sharding blockchain architectures is presented in Table 1.

Our contributions are summarized as follows:

• We propose QUARKSHARD, which breaks away from the traditional cross-shard request processing paradigm that treats each user request as a monolithic entity. By compiling and decomposing a cross-shard user request into a sequence of single-input-shard Quark transactions, QUARKSHARD achieves an IS-overhead of O(aB)O(a\mathcal{B}) and an optimal CS-overhead of O(cλ)O(c\lambda), both below the theoretical lower bounds imposed by the traditional paradigm. Meanwhile, QUARKSHARD enhances the security of sharding blockchain systems in aspects such as resistance to MEV and flood attacks.

• We present a carefully designed request compilation algorithm that decomposes a cross-shard request into multiple Quark transactions. The base algorithm guarantees fund atomicity, and its IS-overhead on the success path is aBa\mathcal{B}. Furthermore, a refund algorithm ensures location atomicity for honest users.

• We implemented a prototype of QUARKSHARD and evaluated its performance on an empirical wide-area network (WAN) spanning four AWS regions, benchmarking it against 2PC and Kronos. Experimental results demonstrate that QUARKSHARD exhibits exceptional performance, achieving a peak throughput of 1024 k requests per second across 96 nodes and 24 shards while consistently maintaining sub-4-second latency. Compared to Kronos and 2PC, QUARKSHARD achieves up to 210.7% and 314.8% of their maximum throughputs, respectively.

References (29)