Manuscript Offprint
arXiv:2610.23014QuarkShard: Decomposing Cross-Shard Requests into Single-Input Transactions
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.
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
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 or larger for a request involving a input shards and b output shards, where 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 .
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 , where denotes the number of replicas per shard, represents the number of transactions in a batch, and is cryptographic parameter size. Kronos [20] reduces this overhead to by leveraging erasure codes [22]. Logos [21] further lowers the pure cross-shard communication overhead to by offloading most of the communication into intra-shard messaging (though the total communication overhead remains ).
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 [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 , and the lower bound for the CS-overhead is [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 1: QUARKSHARD Workflow. The user executes a single Quark transaction per input shard to fully process the request, incurring an IS-overhead of merely . 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 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 . 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 .
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 and who wishes to pay recipient accounts in and . The base compilation algorithm (Algorithm 2) first issues a Quark transaction to transfer the inputs in to the same account in . Subsequently, it issues another Quark transaction from that transfers all gathered inputs to the target accounts in and . On the success path, the base
Table 1: Comparison of QUARKSHARD and BFT-based Sharding Blockchain Systems.
| Protocol | IS-Overhead | CS-Overhead (for transactions) | CS Front-Running Free | Order-Fairness BFT Compatible | |
|---|---|---|---|---|---|
| valid Request | invalid Request | ||||
| OmniLedger [17] | ✕ | ✕ | |||
| RapidChain [34] | ✕ | ✕ | |||
| Chainspace [3] | ✕ | ✕ | |||
| ByShard [9] | ✕ | ✕ | |||
| AHL [7] | ✕ | ✕ | |||
| Kronos [20] | ✕ | ✕ | |||
| Logos [21] | ✕ | ✕ | |||
| QUARKSHARD | (x+1[x>0])\mathcal{B}^{\} | O(c\lambda)^{\} | ✓ | ✓ | |
✓ and ✕ denote that a property is satisfied and not satisfied, respectively.
and : the numbers of input and output shards for a request. : the BFT execution cost for a single transaction. : the number of input shards that have consumed or locked funds prior to the rejection of an invalid request.
: the number of transactions in a batch. : the number of output accounts involved in these transactions. : 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 () and does not support all-or-nothing atomicity. The term represents its overhead for invalid requests when achieving fund atomicity analogous to that defined in this paper.
§ The terms and represent the IS-overhead under fund atomicity and location atomicity, respectively. is the indicator function that equals 1 if and 0 otherwise. The term 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 . 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 Quark transactions to , where represents the number of distinct destination accounts in distinct shards across these transactions. By incorporating the cross-shard communication optimization from Logos [21], the CS-overhead can be further lowered to .
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 , where 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. 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 . 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 and an optimal CS-overhead of , 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 . 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.
2.1 Sharding Blockchain Model
The system consists of shards, . Each shard consists of replicas, among which at most are Byzantine, satisfying . A shard maintains a local chain and a replicated account state.
In blockchain systems, common account models include the account-balance model [31] and the Unspent Transaction Output (UTXO) model [25]. For simplicity, this paper adopts the account-balance model, although QUARKSHARD is equally applicable to the UTXO model. An account is uniquely identified by its cryptographic public key pk and may hold balances across multiple shards. Let denote the balance of account pk recorded in shard .
2.2 User Requests and Quark Transactions
A user request represents a payment intent whose inputs and outputs may span multiple shards.
Definition 2.1 (User request). A user request req is defined as a tuple , where is a set of inputs and is a set of outputs. Each input or output is denoted as , which specifies an account pk, an amount v, and the shard where the corresponding balance is or should be recorded.
A request is considered well-formed if the sum of its input values equals the sum of its output values, and the users authorize every input.
QUARKSHARD does not directly process user requests; instead, it executes Quark transactions.
Definition 2.2 (Quark transaction). A transaction tx is defined as a Quark transaction of input shard if all balances it debits are recorded in . Quark transactions have the form , where is a set of inputs and is a set of outputs, nonce is a unique identifier for the transaction, and sig is a set of signatures for the transaction of the input accounts. All inputs of a Quark transaction must belong to the same shard, while its outputs may belong to any shard.
A Quark transaction is considered valid in shard if all inputs are in and enough, the sum of its input values equals the sum of its output values, the nonce is unique, and all signatures in sig are valid for the corresponding input accounts.
To process a cross-shard request, a user compiles it into multiple Quark transactions and submits them sequentially to their respective shards.
Definition 2.3 (Request compilation algorithm). A request compilation algorithm is a procedure that takes a well-formed user request as input, decomposes it into a sequence of Quark transactions, and submits them to their respective shards according to prescribed rules and ordering constraints.
Although Logos claims an overhead of xC, its algorithm and security proof explicitly require all input shards to execute csdRBC, rather than only valid input shards; hence, the actual overhead is aC.
We assume the existence of committee assignment and reconfiguration mechanisms that ensure each shard satisfies this requirement throughout system execution with overwhelming probability [17, 23, 34].
2.3 BFT Protocol
Each shard uses a BFT protocol to commit a totally ordered sequence of blocks. The BFT protocol must satisfy the following properties if at most replicas are Byzantine:
• Agreement. Honest replicas never commit different blocks at the same height.
• Validity. A committed block satisfies the shard’s deterministic block-validity predicate.
• Liveness. Blocks are continuously committed, with at least a fixed fraction of them being proposed by honest nodes.
2.4 Cross-Shard Reliable Delivery
QUARKSHARD requires reliable delivery of intra-shard consensus results from one shard to all honest nodes in another shard. To address this requirement, we define a new cross-shard communication primitive named Cross-Shard Reliable Delivery (CSRD).
A CSRD instance from shard to shard is identified by a tag and provides the following interface:
• CSRD .Send( , M), invoked by replicas in to send a message M;
• CSRD .Deliver( ) , invoked by replicas in to output the delivered message M and its corresponding certificate ;
• CSRD .Verify( , ), which publicly verifies the certificate without obtaining M.
CSRD must satisfy the following properties if at most replicas are Byzantine in each shard:
• Correctness. If all honest source replicas invoke Send on the same message M, then all honest destination replicas will eventually obtain M and a certificate via Deliver, such that is accepted by Verify.
• Validity. If any replica obtains a certificate accepted by Verify, then at least one honest source replica must have invoked Send.
In Section B, we present a concrete construction of CSRD that leverages threshold signatures, cryptographic commitments, and erasure codes (EC).
2.5 Network and Adversary Model
The network model can be either asynchronous or partially synchronous; the underlying network assumptions can be adapted by adjusting the intra-shard BFT protocol and the CSRD primitive used to construct QUARKSHARD. All messages are transmitted over authenticated channels, and eventual message delivery is guaranteed. In an asynchronous network, message propagation delays can be arbitrarily large. In a partially synchronous network, there exists a Global Stabilization Time (GST) such that, after GST, all messages transmitted between honest nodes are guaranteed to be delivered within a known bounded delay.
The adversary may corrupt and fully control up to replicas per shard, causing them to arbitrarily deviate from the protocol. Subject to the constraints of the network model, the adversary can arbitrarily delay or reorder messages, but cannot forge or suppress messages sent by other replicas.
3 QUARKSHARD Protocol
In this section, we present the details of QUARKSHARD, with its primary procedures outlined in Algorithm 1. The protocol reaches consensus on Quark transactions within their input shards, leverages the CSRD primitive to deliver cross-shard account credits to output shards, and imports these account credits into output shards with minimal overhead. This section focuses on the execution and processing of Quark transactions, while the user request compilation scheme is detailed in Section 4.
3.1 Block Structure and Execution
In QUARKSHARD, each shard runs an intra-shard BFT consensus protocol to agree on a chain of blocks, denoted as . Each block takes the form , where meta includes the parent block hash, state root, transaction root, and other standard header fields, denotes the block's import frontier (detailed below), and is an ordered sequence of Quark transactions contained within the block.
Upon block commitment (line 31–46), replicas execute all transactions contained therein. For intra-shard inputs and outputs targeting the current shard, the corresponding account balances are directly debited or credited. For cross-shard outputs targeting external shards, replicas aggregate their credits into a cross-shard credit batch, which is subsequently transmitted to the destination shard via the CSRD primitive after block execution. Specifically, all account credits generated by shard at block height and destined for shard are aggregated into a batch , where represents the balance credit for account in the destination shard.
For clarity of presentation and proof, we require that even empty credit batches be transmitted to destination shards; we present a straightforward optimization in Section 8.1 that eliminates the overhead incurred by empty credit batches.
Destination shards store incoming credit batches in a local credit pool and import them into subsequent blocks (line 47–48). Because credit batches are uniquely produced through input-shard consensus and reliably delivered via CSRD, destination shards do not need to execute an additional consensus round on the contents of each credit batch. Instead, each block records an import frontier vector F of length equal to the number of shards, where
has been imported by the end of .
For convenience, we define and .
Upon block commitment, replicas wait until all credit batches selected for import have arrived, and apply the corresponding balance credits to their respective accounts before executing any transactions.
3.2 Block Proposal and Validation
Because each Quark transaction accesses a unique input shard, upon receiving a user transaction, replicas in the input shard can determine its validity solely based on their local state. If valid, the transaction is added to the local transaction pool; otherwise, the replica rejects it and notifies the user (line 1–5). If a transaction already in the pool becomes invalid due to subsequent conflicting transactions, replicas remove it and inform the user. Note that when evaluating transaction validity, replicas account for both current account balances and pending balance credits residing in the credit pool.
When proposing a new block (line 6–15), a replica first inspects the parent block's import frontier and the current credit pool. For each input shard, the replica selects the highest contiguous height at which all corresponding credit batches are present, setting this value as the new block's import frontier. The replica then selects a sequence of valid Quark transactions from the transaction pool to populate the new block, where balance sufficiency checks account for the newly imported funds in this block. Finally, the replica computes the block metadata.
Along with the proposed block, the replica broadcasts a validation witness W, which consists of cryptographic proofs for all newly imported credit batches. The witness W serves as proof that at least one honest node in the source shard has transmitted the corresponding credit batch, ensuring that any replica can safely await the required credit batches without incurring liveness issues. The witness W needs to be broadcast only once during block proposal; it is neither subjected to consensus nor persistently stored.
Upon receiving a block proposal (line 16–30), a replica first verifies the correctness of its metadata (excluding the state root). It then verifies that the block’s import frontier is non-decreasing relative to its parent, and that all necessary cryptographic proofs in W are valid. Once these checks pass, the replica can safely wait for all required credit batches to arrive. Next, the replica sequentially verifies the validity of all block transactions after applying the newly imported funds,
Algorithm 1: QUARKSHARD Block Processing.
▷ as a replica in shard
1 upon receiving a Quark transaction tx from user do
2 if tx is valid then
3 Store tx into the transaction pool.
4 else
5 Response to the user that tx is rejected.
6 upon proposing a new block do
7 Let ; .
8 for each source do
9 Let be the largest value such that for all ,
exists in the credit pool.
10 For all , add to W.
11 Let .
12 Let .
13 Select valid Quark transactions in order from the transaction pool and add them to .txs.
14 Fill in .meta.
15 Propose .
16 upon verifying proposal do
17 if any field in .meta except the state root is invalid then
18 Refuse to sign for .
19 if for any k then
20 Refuse to sign for .
21 for each and do
22 if or .Verify( ) is false then
23 Refuse to sign for .
24 for each and do
25 wait until appears in the credit pool.
26 if not all transactions in .txs are valid then
27 Refuse to sign for .
28 if the state root in does not match the root of the state obtained after importing all selected credit batches and executing all transactions then
29 Refuse to sign for .
30 Sign for if all checks pass.
31 upon committing do
32 for each source do
33 for each in increasing order do
34 wait until appears in the credit pool.
35 Add every credit in to the target accounts.
36 Delete from the credit pool.
37 Initialize for every .
38 for each .txs in order do
39 Debit its inputs.
40 for each output do
41 if then
42 .
43 else
44 .
45 for each do
46 Invoke .Send( ).
▷ as a replica in shard
47 upon .Deliver( do
48 Store into the credit pool.
and confirms that the resulting state root matches the proposed state root. Replicas cast their consensus votes for the block if and only if all validation checks succeed.
The aforementioned validation procedure ensures that credit batch importation is monotonic and contiguous, with each height's credit batch being imported exactly once. Furthermore, it guarantees that all transactions contained within committed blocks are valid Quark transactions.
3.3 CSRD
QUARKSHARD employs the CSRD primitive to guarantee that credit batches derived from an input shard are reliably and verifiably delivered to target output shards. CSRD can be realized through various implementations; here, we briefly outline one concrete construction, with complete structural details deferred to Appendix B.2. Furthermore, by integrating the RPST primitive proposed by Logos [21], the vast majority of cross-shard communication overhead can be shifted onto intra-shard networks, as elaborated in Appendix B.3.
Specifically, to verifiably deliver a message M bound to a tag , each replica in the input shard generates a threshold signature on with a threshold of , and broadcasts this signature to all nodes in the target output shard. Upon collecting distinct valid signatures, a node in the target shard aggregates them into a valid cryptographic certificate. This certificate provides undeniable proof that at least honest replicas in the source shard authorized and transmitted the message associated with .
To minimize communication cost when transmitting the payload M, each replica in the input shard applies erasure code (EC) to M with a reconstruction threshold of . Each replica then broadcasts its designated EC fragment corresponding to its replica index along with its threshold signature share. Once a target shard node receives valid signatures and constructs the certificate, it is guaranteed that at least honest replicas have contributed valid EC fragments. Consequently, these fragments suffice to reconstruct the original message M. To prevent Byzantine nodes from broadcasting valid signature shares alongside corrupted EC fragments, the scheme secures all fragments using cryptographic commitments.
4 User Request Compilation
To process a request spanning multiple input and output shards, the user employs a request compilation algorithm to decompose it into a sequence of Quark transactions, which are subsequently submitted to their corresponding shards according to prescribed rules. In this section, we first formally define two notions of atomicity for user request processing: fund atomicity and location atomicity. We then present a base compilation algorithm that achieves fund atomicity, followed by a refund mechanism that strengthens this guarantee to location atomicity. Finally, we introduce a prefunding optimization that reduces user request overhead and latency.
4.1 Atomicity
We observe that system safety is preserved for an execution as long as all funds remain under the control of their original account holders upon failure. Therefore, we first define a safe, albeit relaxed, property compared to conventional atomicity [3, 7, 17]. Algorithms satisfying this relaxed property guarantee user fund safety while incurring lower overhead along failure execution paths.
Definition 4.1 (Fund Atomicity). A request compilation algorithm satisfies fund atomicity if it guarantees that, either all inputs and outputs of a user request are successfully executed, or all involved funds remain under the control of their original account holders.
Additionally, we define a stronger property that is equivalent to traditional atomicity from the perspective of honest users:
Definition 4.2 (Location Atomicity). A request compilation algorithm satisfies location atomicity if it guarantees that, either all inputs and outputs of a user request are successfully executed, or all funds in accounts controlled by honest users remain in their initial states, exactly as if the user request had never been executed.
4.2 Base Compilation and Refund
The base compilation algorithm operates by first consolidating all required funds onto a single coordinator shard, and subsequently committing a single Quark transaction on that coordinator shard to disburse all funds simultaneously to their final destinations, thereby fulfilling the user request. Algorithm 2 details this procedure. Note that terms such as "funding transaction" and "final transaction" in the algorithm are introduced solely for ease of exposition; they represent standard, independent Quark transactions with no special properties.
In the base compilation algorithm, one of the input shards is designated as the coordinator shard. Let denote the set of input shards for a given user request req. For each shard in other than the coordinator shard, the algorithm submits a funding Quark transaction. The input of this transaction consists of all inputs of the user request on that specific shard, while its output targets the coordinator shard, keeping the account and balance amounts unchanged. If the user request involves only a single input shard, this step is bypassed.
Subsequently, the algorithm waits until all funding transactions are committed and the credit batches containing their outputs are imported by the coordinator shard. Once all funding transactions are finalized, a final Quark transaction is
Algorithm 2: Base Compilation of a User Request.
Input: Request req = and coordinator . Output: success only after all requested effects settle.
1 for each in parallel do 2 construct a funding Quark transaction in with 3 4 5 Submit to . 6 wait until every funding transaction is committed or rejected. 7 if a funding transaction was rejected then 8 return failure. 9 wait until every corresponding credit batch is imported by . 10 construct a final Quark transaction in with 11 12 13 Submit to . 14 wait until the final transaction is committed or rejected. 15 if was rejected then 16 return failure. 17 wait until every corresponding credit batch of is imported. 18 return success.
Algorithm 3: Refund for Location Atomicity.
Input: A transaction set TX to be refunded, coordinator . 1 return if . 2 wait until every corresponding credit batch of is imported. 3 construct a refund Quark transaction in with 4 and 5 and 6 Submit to . 7 wait until the refund transaction is committed. 8 wait until every corresponding credit batch of is imported.
submitted to the coordinator shard. Its inputs comprise all request inputs (now located on the coordinator shard), and its outputs correspond to all outputs specified by the user request. The user request completes successfully once the final transaction is committed and its resulting credit batches are imported by the destination shards.
If any transaction is rejected during this process, the algorithm immediately terminates and returns a failure status. Because the base compilation algorithm does not alter fund ownership prior to the final transaction, it inherently guarantees fund atomicity.
When an execution fails and an honest user seeks to achieve location atomicity, they can invoke the refund mechanism outlined in Algorithm 3 to relocate their funds back to their original shards. Algorithm 3 takes a set of funding transactions to be reverted along with the coordinator shard as inputs, and submits a single refund transaction on the coordinator shard to transfer all migrated funds back to their initial shards. Because an honest user will not issue conflicting transactions against the refund transaction, this procedure is guaranteed to succeed.
4.3 Prefunding
In the base compilation algorithm, users must transfer funds to the coordinator shard prior to executing the final transaction. However, users are not required to execute the base compilation independently for every individual request. Consider a scenario where a user anticipates conducting multiple transactions with a specific coordinator shard, while holding the majority of their funds on another shard. In this case, the user can prefund a sufficient balance to the coordinator shard in advance through a single batch transfer. During subsequent request executions, the user bypasses the need to submit fund-transferring funding transactions, directly issuing the final transaction instead. Consequently, the overhead incurred by multiple funding transactions is effectively amortized while simultaneously reducing request execution latency.
For clarity of presentation, transaction fee mechanisms are not explicitly detailed in this paper. However, in typical blockchain systems, users generally pay execution fees for each transaction [31]. Under such economic models, users are inherently motivated to minimize the number of submitted transactions required to process a given volume of requests, which directly aligns with our design goal of reducing overall system overhead.
5 Security Analysis
In this section, we formally prove the security properties of QUARKSHARD. We first establish the safety and liveness of QUARKSHARD when processing Quark transactions. Next, we demonstrate that Algorithm 2 and Algorithm 3 satisfy fund atomicity and location atomicity. Finally, we analyze the security guarantees provided by QUARKSHARD regarding MEV resistance.
5.1 Consistency, Validity, and Liveness
Theorem 5.1 (Consistency). Any two honest replicas within the same shard commit the same block at the same height.
Proof. Since the number of Byzantine replicas within the shard satisfies , the underlying BFT consensus protocol satisfies Agreement. Consequently, every honest replica in the shard commits the identical block at any given height.
Theorem 5.2 (Validity). Any Quark transaction contained in a committed block is valid. Any credit batch imported by a committed destination block is derived from a committed source block, and every credit batch is imported by its destination shard exactly once.
Proof. Since the number of Byzantine replicas within the shard satisfies , the underlying BFT protocol satisfies Validity. That is, every committed block must pass the verification rules specified in Algorithm 1 lines 16–30.
During block verification, the validity of all transactions contained within the block is enforced. Therefore, all Quark transactions included in a committed block are valid.
Similarly, verification ensures that the proof for each imported credit batch exists and is valid. By the Validity property of CSRD, at least one honest replica in the source shard has transmitted the credit batch. According to Algorithm 1, an honest replica transmits the credit batch generated by a block if and only if that block has been committed. Thus, any credit batch imported by a committed block is guaranteed to originate from a committed block.
Furthermore, according to the verification rules, the importation of credit batches is strictly monotonic and contiguous. Consequently, each credit batch is imported by its destination shard exactly once.
Theorem 5.3 (Liveness). Any Quark transaction added to an honest replica’s transaction pool that remains persistently valid will eventually be included in a committed block. Every generated credit batch will eventually be imported by its destination shard.
Proof. During block verification and commitment, QUARKSHARD waits for all required credit batches to arrive; we first prove that this waiting mechanism does not compromise the Liveness property of the underlying BFT protocol. During verification, an honest replica waits for a credit batch only after validating that its cryptographic proof exists and is valid. By the Validity of CSRD, at least one honest replica in the source shard has transmitted this batch. Hence, the block deriving this credit batch has already been committed. According to Algorithm 1, all honest replicas invoke CSRD to transmit the credit batch upon block commitment. By the Correctness of CSRD, all honest replicas in the destination shard will eventually receive the batch. Thus, waiting for credit batches during verification does not undermine liveness. Analogously, because a committed block must be a verifiable block, waiting for credit batches during commitment also preserves liveness.
Since the number of Byzantine replicas within the shard satisfies , the running BFT consensus protocol satisfies Liveness. Consequently, blocks proposed by honest replicas are continuously committed. According to the proposal rules for honest replicas (Algorithm 1 lines 6–15), honest replicas propose valid Quark transactions sequentially and import as many pending credit batches as possible. Therefore, any Quark transaction added to an honest replica's transaction pool that remains continuously valid will eventually be included in a committed block.
For any credit batch derived from a committed block, all honest replicas in the destination shard will eventually receive it pursuant to honest transmission rules and the Correctness of CSRD. Therefore, all generated credit batches will eventually be imported by their respective destination shards.
5.2 Atomicity
Theorem 5.4 (Fund Atomicity). Algorithm 2 satisfies fund atomicity.
Proof. First, consider the case where Algorithm 2 completes successfully. In this scenario, all funding transactions and the final transaction are committed, and their corresponding credit batches are imported. The funding transactions migrate all inputs of the user request to the coordinator shard, whereupon the final transaction transfers these funds to all destination outputs specified by the user request. Thus, along the execution success path, all inputs and outputs of the user request are fully executed.
Conversely, when the algorithm fails, the final transaction is necessarily not executed. In this case, only a subset of funding transactions may have been executed. Because funding transactions do not alter the ownership of the funds, all involved funds remain under the control of their original accounts. □
Theorem 5.5 (Location Atomicity). Upon failure of Algorithm 2, an honest user can invoke Algorithm 3 to guarantee location atomicity.
Proof. According to the execution logic of Algorithm 3, upon successful execution, all funds associated with the reverted funding transactions are transferred back to their original shards. Furthermore, because honest users do not issue conflicting transactions against the refund transaction, Algorithm 3 is guaranteed to execute successfully. Consequently, location atomicity is preserved.
5.3 Anti-MEV
Definition 5.1 (Cross-Shard Front-Running Free). A sharding blockchain system is cross-shard front-running free if executing a front-running attack against a cross-shard request is no easier for an adversary than executing a front-running attack against an intra-shard request.
Theorem 5.6 (Cross-Shard Front-Running Free). QUARKSHARD is cross-shard front-running free.
Proof. In QUARKSHARD, a cross-shard user request is compiled and decomposed into a sequence of individual, independent Quark transactions. An adversary observing an issued Quark transaction cannot infer the structure of the underlying complete user request or predict subsequent Quark transactions that the user will execute. Consequently, the adversary can initiate a front-running attack only after the specific target Quark transaction is publicly broadcast, which presents the same level of difficulty as front-running a purely intra-shard request.
Definition 5.2 (Order-Fairness BFT Compatibility).
A sharding blockchain system is order-fairness BFT compatible if it can seamlessly integrate non-sharding order-fairness
BFT consensus protocols [15, 16] within each shard to enforce order fairness for all processed transactions.
Theorem 5.7 (Order-Fairness BFT Compatibility). QUARK-SHARD is Order-Fairness BFT Compatible.
Proof. In QUARKSHARD, each shard processes only those Quark transactions for which it serves as the input shard, operating without the need for inter-shard coordination to process a given individual transaction. As a result, Order-Fairness BFT protocols designed for non-sharding blockchains can be directly deployed within each shard to enforce order fairness across all Quark transactions.
6 Performance Analysis
In this section, we analyze the performance of QUARKSHARD. Regarding intra-shard overhead, we first analyze the execution cost of the base compilation algorithm on the success path, followed by an analysis of the overhead resulting from invalid requests and credit batch importations. Next, we demonstrate that QUARKSHARD achieves exceptionally low cross-shard communication overhead. Finally, we evaluate the processing latency of user requests under QUARKSHARD.
6.1 Intra-Shard Overhead
Theorem 6.1 (IS-Overhead of Base Compilation on the Success Path). For a user request spanning a input shards, a successful execution of Algorithm 2 without prefunding incurs an IS-overhead of .
Proof. On the success path, Algorithm 2 commits one funding transaction in each of the input shards other than the coordinator shard, followed by one final transaction in the coordinator shard. Each of these Quark transactions is processed by BFT consensus within its input shard, incurring an IS-overhead of per transaction under our cost model. Thus, the total IS-overhead is .
Through the prefunding optimization introduced in Section 4.3, assuming that a single prefunding operation can be amortized across l subsequent transactions on average, the overhead of funding transactions for user requests is effectively reduced. On the success path, the amortized IS-overhead per user request becomes .
Theorem 6.2 (IS-Overhead of Base Compilation on the Failure Path). For an invalid user request, let denote the number of funding transactions that are committed on the failure path. When Algorithm 2 fails, the resulting IS-overhead is . If the user requires location atomicity, executing Algorithm 3 incurs an additional overhead, yielding a total IS-overhead of , where is the indicator function that equals 1 if and 0 otherwise.
Proof. Along the failure path, if transactions are committed, input shards should execute BFT consensus for transactions, thus the IS-overhead is . If the user requires location atomicity and there are any transactions to be refunded, executing Algorithm 3 submits one additional refund transaction on the coordinator shard, bringing the total IS-overhead to .
Theorem 6.3 (Overhead of Importing Credit Batches). For a block importing credit batches, the logical intra-shard broadcast overhead incurred by importing credit batches is , where denotes the number of shards, is the byte size of an integer, and is the size of a CSRD-generated certificate. The vast majority of this data requires only broadcast, with only the portion participating in the consensus protocol.
Proof. Each block stores an import frontier consisting of an integer for each shard to participate in consensus, incurring a total consensus overhead of . Furthermore, during block proposal, the replica broadcasts cryptographic proofs for all imported credit batches in the block, contributing an additional broadcast overhead of . Consequently, the total intra-shard broadcast overhead sums to .
Assuming a standard integer size of approximately 8 Bytes and a Threshold BLS (TBLS) signature certificate size of approximately 48 Bytes, in a system with 100 shards where all shards produce blocks at comparable rates and each block contains cross-shard outputs destined for every other shard, the importation overhead is approximately 5.42 KB. This accounts for merely 0.26% of a classic 2 MB block in Bitcoin. In practice, because empty credit batches can be compressed using the scheme presented in Section 8.1, the actual overhead is even lower.
6.2 Cross-Shard Overhead
Theorem 6.4 (CS-Overhead of QUARKSHARD). For a batch of Quark transactions involving distinct output accounts in distinct shards, the total logical data payload delivered by QUARKSHARD to one output shard via the CSRD primitive is . Assuming the batch is sufficiently large (Lemma B.2). When employing the baseline CSRD implementation in Algorithm 4, the resulting CS-overhead is . By using the optimized CSRD scheme in Algorithm 5, the majority of cross-shard communication is offloaded to intra-shard networks, yielding a CS-overhead of .
Proof. According to Algorithm 1, the data delivered by QUARKSHARD to destination shards via CSRD consists of output funds aggregated on a per-account basis across the r transactions. For each involved account, the payload contains only the account identifier and an integer representing the net balance update. Consequently, the total logical data payload delivered across shards is .
By Lemma B.2, using Algorithm 4 as the concrete CSRD implementation incurs a CS-overhead of . Furthermore, adopting Algorithm 5 reduces the CS-overhead to .
Note that if each transaction specifies multiple outputs, the number of output accounts may exceed the number of transactions. However, rather than transmitting only a transaction identifier, traditional protocols are required to transmit the full transaction payload to the output shards. In contrast, QUARKSHARD obviates the need to transmit transaction contents by transmitting only the aggregated account credits, which strictly outperforms transaction-granularity transmission.
6.3 Latency
Below, we analyze the processing latency of QUARKSHARD for individual Quark transactions and full user requests. For ease of analysis, let bound the time elapsed from when a transaction is submitted to an honest node in a shard until it is committed via BFT consensus, let bound the delivery latency of the CSRD primitive, and let bound the delay between a credit batch being delivered to a shard and its eventual importation into a committed block.
The processing of a single Quark transaction requires committing the transaction in its input shard and subsequently waiting for the credit batches containing its outputs to be delivered and imported by the target shard. Its total processing latency is bounded by
The same upper bound applies to user requests that involve only a single input shard, or whose inputs have all been prefunded to the coordinator shard.
For user requests spanning multiple input shards, the base compilation algorithm requires submitting two sequential rounds of Quark transactions, yielding a total latency bounded by
Although the latency of QUARKSHARD when handling multi-input requests is higher than that of protocols such as 2PC (which typically require two rounds of BFT consensus and one round of cross-shard communication), this trade-off yields significantly better system throughput and scalability, while the latency can be effectively mitigated through mechanisms such as prefunding.
7 Evaluation
We implemented a prototype of QUARKSHARD and deployed it on Amazon Web Services (AWS) to evaluate its empirical performance under real-world wide-area network (WAN) conditions. The deployment spanned four AWS geographical

Figure 3: QUARKSHARD Scalability.

(a) 1 Input, 1 Output.
(b) 2 Input, 2 Output.
Figure 4: QUARKSHARD vs. Baselines.
regions (Virginia, California, Tokyo, and London), scaling up to 96 replicas across 24 shards. To ensure a fair evaluation, we implemented 2PC and Kronos within the exact same experimental framework and benchmarked QUARKSHARD against them.
Implementation Details. We implemented the core benchmarking framework as well as QUARKSHARD, 2PC, and Kronos in Golang. Cryptographic primitives include SHA-256 for cryptographic hashing and Threshold BLS (TBLS) for threshold signatures [4, 5]. Erasure coding is implemented using Reed-Solomon codes [27]. Intra-shard consensus is implemented using HotStuff [33].
Deployment Details. Each replica was deployed on a dedicated AWS EC2 c5.2xlarge instance equipped with 8 vCPUs and 16 GB of RAM. The outbound network bandwidth for each instance was capped at 100 Mbps. The payload size for an individual transaction was set to 128 bytes, matching the average size of a standard native transfer transaction in Ethereum.
7.1 Overall Performance
We first evaluate the scalability of QUARKSHARD by measuring its throughput and latency variations under increasing workloads across different numbers of nodes and shards, using requests with two input shards and two output shards (2-input-2-output) as the benchmark workload (Figure 3). Experimental results demonstrate that system throughput grows continuously with the number of shards and nodes, reaching a peak throughput of 1024 k requests per second under a 96-node, 24-shard deployment. Concurrently, the end-to-end latency remains low, staying below 4 seconds under normal workloads even when individual shards are large (12 nodes per shard). This demonstrates that QUARKSHARD achieves near-linear throughput scalability with respect to shard counts while consistently maintaining low processing latency.
Next, we benchmark the performance of QUARKSHARD, Kronos, and 2PC under a 64-node, 16-shard deployment using two workload profiles: 1-input-1-output requests (Figure 4a) and 2-input-2-output requests (Figure 4b). Experimental results indicate that across different workloads, QUARKSHARD achieves 199.6%–210.7% of Kronos's maximum throughput and 299.1%–314.8% of 2PC's maximum throughput.
Under the single-input request workload, because QUARKSHARD requires only one round of BFT consensus alongside one round of credit batch importation, its end-to-end request latency is significantly lower than the two-round BFT consensus required by 2PC and Kronos. Specifically, the end-to-end latency of QUARKSHARD is only 78.1% of Kronos and 65.2% of 2PC. Under the multi-input request workload, QUARKSHARD trades slightly higher latency for substantially higher throughput. Specifically, QUARKSHARD incurs an latency approximately 127% of Kronos and 110% of 2PC.
7.2 Performance under Varying Numbers of Inputs and Outputs
To evaluate the impact of different workload characteristics across protocols, we first fix the number of input shards to 1 and measure how varying the number of output shards affects throughput and latency (Figure 5a and 5b). We then fix the number of output shards to 1 and evaluate the system under varying numbers of input shards (Figure 5c and 5d). The experiments were conducted under a deployment of 64 nodes and 16 shards. Experimental results demonstrate that QUARKSHARD consistently outperforms 2PC and Kronos in throughput across all tested input and output shard configurations. Furthermore, except for the transition from 1 to 2 input shards, the latency of QUARKSHARD exhibits lower sensitivity and grows slower with respect to increasing input and output shard counts.
When fixing the number of input shards, variations in the number of output shards have virtually no impact on the throughput of QUARKSHARD: scaling from 1 to 4 output

(a) Throughput vs. # of Outputs.
(b) Latency vs. # of Outputs.

(c) Throughput vs. # of Inputs.
(d) Latency vs. # of Inputs.
Figure 5: Performance under Different Workload Profiles.
shards results in a throughput degradation of less than 0.5%. In contrast, the throughputs of 2PC and Kronos decrease by 50.9% and 60.2%, respectively. This highlights that in QUARKSHARD, the computational and communication overhead associated with credit batch importation is negligible compared to transaction execution. Regarding latency, as the number of output shards scales from 1 to 4, the latency of QUARKSHARD increases by approximately 13.7%, compared to 24.2% for 2PC and 43.0% for Kronos.
When fixing the number of output shards, the throughput of QUARKSHARD is strictly inversely proportional to the number of input shards: the throughput under 1 input shard is approximately that under 2 input shards and that under 4 input shards. This is consistent with the IS-overhead of successful requests under the base compilation algorithm, which grows linearly with the number of input shards. As for latency, when the number of input shards increases from 2 to 4, the latency of QUARKSHARD increases by approximately 15.5%, whereas 2PC and Kronos experience increases of roughly 30.5% and 17.3%, respectively.
7.3 Cross-Shard Communication Overhead
To evaluate the effectiveness of aggregating transaction outputs on a per-account basis in reducing cross-shard communication overhead, we measure the total logical cross-shard communication payload across various batch sizes (i.e., the number of transactions committed per block). The evaluation is conducted under a deployment of 64 nodes across 16 shards, with 1,000 active accounts per shard. Experimental results demonstrate that the logical cross-shard communication volume of QUARKSHARD is consistently lower than that of Kronos. Furthermore, as the block batch size increases, per-account aggregation becomes increasingly effective, leading

Figure 6: Cross-Shard Communication Overhead.
to a continuous reduction in amortized cross-shard communication payload. This empirically validates the efficacy of cross-shard transaction outputs aggregating.
8 Discussion
8.1 Empty Credit Batch Compression
In Algorithm 1, we require that for each block and every external shard, a CSRD primitive invocation be executed regardless of whether the corresponding credit batch is empty. Here, we introduce a straightforward optimization that eliminates the potential overhead of transmitting empty batches while preserving protocol security.
Specifically, each credit batch no longer represents outputs generated from a single block height, but rather spans a contiguous range of block heights. We denote by a non-empty credit batch generated at block height , signifying that all blocks within the height interval in shard contained no transaction outputs destined for shard . Upon committing a block, replicas omit transmissions to shards with empty batches and instead send credit batches exclusively to shards with non-empty outputs, embedding the starting height of the preceding sequence of empty heights into the batch header. The destination shard can import if and only if all heights in have already been imported, which atomically effects the importation of all batches within the interval .
This modification preserves the security of credit batch importation: for every non-empty height, honest replicas transmit exactly one identical credit batch derived from a consensus-committed block. Consequently, honest nodes in the destination shard receive authenticated credit batches solely for non-empty heights. Because each credit batch explicitly encodes range metadata, destination nodes maintain monotonic and contiguous importation progress, guaranteeing that every batch is imported exactly once. Furthermore, since importing empty batches yields no observable state transitions, compressing empty batches into subsequent non-empty batches introduces no additional processing latency.
8.2 Application on UTXO Model
QUARKSHARD can be readily adapted to the UTXO model. Specifically, by treating every input and output tuple as a UTXO of value assigned to account managed by shard , all preceding design logic and theoretical guarantees hold directly. Instead of tracking explicit account balances, each replica maintains a local UTXO set, replacing balance additions and deductions with UTXO insertions and deletions. Cross-shard credit batches remain aggregated on a per-account basis, represented as a single consolidated UTXO for each account, and are delivered to destination shards via the CSRD primitive. When evaluating transaction validity, replicas verify whether the UTXOs consumed by the transaction exist within the local UTXO set.
9 Conclusion
We propose QUARKSHARD, a novel sharding blockchain protocol that breaks away from the traditional cross-shard request processing paradigm that treats each user request as a monolithic entity. By compiling and decomposing a request into independent Quark transactions, QUARKSHARD processes cross-shard requests with reduced overhead while guaranteeing fund atomicity or location atomicity through a carefully designed request compilation algorithm. This paradigm shift enables QUARKSHARD to achieve intra-shard BFT execution overhead and cross-shard communication overhead below the theoretical lower bounds imposed by conventional paradigms. Furthermore, QUARKSHARD reduces the sharding-specific attack surface for cross-shard front-running and improves resilience to invalid-request flooding. Comprehensive empirical evaluations demonstrate the low overhead and superior performance of QUARKSHARD over state-of-the-art protocols.
References
[1] Harmony: Technical whitepaper, 2018. URL: https://harmony.one/whitepaper.pdf.
[2] Polkadot lightpaper: An introduction to polkadot, 2020. URL: https://assets.polkadot.network/Polkadot-lightpaper.pdf.
[3] Mustafa Al-Bassam, Alberto Sonnino, Shehar Bano, Dave Hrycyszyn, and George Danezis. Chainspace: A sharded smart contracts platform. In Network and Distributed System Security Symposium (NDSS), 2018.
[4] Alexandra Boldyreva. Threshold signatures, multisignatures and blind signatures based on the gap-diffie-hellman-group signature scheme. In International Workshop on Public Key Cryptography, pages 31–46. Springer, 2002.
[5] Dan Boneh, Ben Lynn, and Hovav Shacham. Short signatures from the weil pairing. In International conference on the theory and application of cryptology and information security, pages 514–532. Springer, 2001.
[6] Philip Daian, Steven Goldfeder, Tyler Kell, Yunqi Li, Xueyuan Zhao, Iddo Bentov, Lorenz Breidenbach, and Ari Juels. Flash boys 2.0: Frontrunning in decentralized exchanges, miner extractable value, and consensus instability. In 2020 IEEE symposium on security and privacy (SP), pages 910–927. IEEE, 2020.
[7] Hung Dang, Tien Tuan Anh Dinh, Dumitrel Loghin, Ee-Chien Chang, Qian Lin, and Beng Chin Ooi. Towards scaling blockchain systems via sharding. In Proceedings of the 2019 international conference on management of data, pages 123–140, 2019.
[8] Sourav Das, Vinith Krishnan, and Ling Ren. Efficient cross-shard transaction execution in sharded blockchains. arXiv preprint arXiv:2007.14521, 2020.
[9] Jelle Hellings and Mohammad Sadoghi. Byshard: Sharding in a byzantine environment. Proc. VLDB Endow., 14(11):2230–2243, 2021.
[10] Zicong Hong, Song Guo, and Peng Li. Scaling blockchain via layered sharding. IEEE Journal on Selected Areas in Communications, 40(12):3575–3588, 2022.
[11] Zicong Hong, Song Guo, Peng Li, and Wuhui Chen. Pyramid: A layered sharding blockchain system. In IEEE INFOCOM 2021-IEEE Conference on Computer Communications, pages 1–10. IEEE, 2021.
[12] Zicong Hong, Song Guo, Enyuan Zhou, Jianting Zhang, Wuhui Chen, Jinwen Liang, Jie Zhang, and Albert
Zomaya. Prophet: Conflict-free sharding blockchain via byzantine-tolerant deterministic ordering. In IEEE INFOCOM 2023-IEEE Conference on Computer Communications, pages 1–10. IEEE, 2023.
[13] Huawei Huang, Xiaowen Peng, Jianzhou Zhan, Shenyang Zhang, Yue Lin, Zibin Zheng, and Song Guo. Brokerchain: A cross-shard blockchain protocol for account/balance-based state sharding. In IEEE INFOCOM 2022-IEEE conference on computer communications, pages 1968–1977. IEEE, 2022.
[14] Shan Jiang, Jiannong Cao, Cheung Leong Tung, Yuqin Wang, and Shan Wang. Sharon: Secure and efficient cross-shard transaction processing via shard rotation. In IEEE INFOCOM 2024-IEEE Conference on Computer Communications, pages 2418–2427. IEEE, 2024.
[15] Mahimna Kelkar, Soubhik Deb, Sishan Long, Ari Juels, and Sreeram Kannan. Themis: Fast, strong order-fairness in byzantine consensus. In Proceedings of the 2023 acm sigsac conference on computer and communications security, pages 475–489, 2023.
[16] Mahimna Kelkar, Fan Zhang, Steven Goldfeder, and Ari Juels. Order-fairness for byzantine consensus. In Annual International Cryptology Conference, pages 451–480. Springer, 2020.
[17] Eleftherios Kokoris-Kogias, Philipp Jovanovic, Linus Gasser, Nicolas Gailly, Ewa Syta, and Bryan Ford. Omniledger: A secure, scale-out, decentralized ledger via sharding. In 2018 IEEE symposium on security and privacy (SP), pages 583–598. IEEE, 2018.
[18] Mingzhe Li, You Lin, Jin Zhang, and Wei Wang. Cochain: High concurrency blockchain sharding via consensus on consensus. In IEEE INFOCOM 2023-IEEE Conference on Computer Communications, pages 1–10. IEEE, 2023.
[19] Andi Liu, Yizhong Liu, Qianhong Wu, Boyu Zhao, Dongyu Li, Yuan Lu, Rongxing Lu, and Willy Susilo. Cherubim: A secure and highly parallel cross-shard consensus using quadruple pipelined two-phase commit for sharding blockchains. IEEE Transactions on Information Forensics and Security, 19:3178–3193, 2024.
[20] Yizhong Liu, Andi Liu, Yuan Lu, Zhuocheng Pan, Yinuo Li, Jianwei Liu, Song Bian, and Mauro Conti. Kronos: A secure and generic sharding blockchain consensus with optimized overhead. In Network and Distributed System Security Symposium (NDSS), 2025.
[21] Yizhong Liu, Boyu Zhao, Yuxuan Hu, Haojun Tan, Feiang Ran, Andi Liu, Zhuocheng Pan, Yuan Lu, Song Bian, Jianwei Liu, et al. Logos: Robust sharding blockchain with fast processing and optimal {Cross-Shard} overhead. In 35th USENIX Security Symposium (USENIX Security 26), 2026.
[22] Michael G Luby, Michael Mitzenmacher, Mohammad Amin Shokrollahi, and Daniel A Spielman. Efficient erasure correcting codes. IEEE Transactions on Information Theory, 47(2):569–584, 2001.
[23] Loi Luu, Viswesh Narayanan, Chaodong Zheng, Kunal Baweja, Seth Gilbert, and Prateek Saxena. A secure sharding protocol for open blockchains. In Proceedings of the 2016 ACM SIGSAC conference on computer and communications security, pages 17–30, 2016.
[24] Ralph C Merkle. A digital signature based on a conventional encryption function. In Conference on the theory and application of cryptographic techniques, pages 369–378. Springer, 1987.
[25] Satoshi Nakamoto. Bitcoin: A peer-to-peer electronic cash system, 2008. URL: https://bitcoin.org/bitcoin.pdf.
[26] Kaihua Qin, Liyi Zhou, and Arthur Gervais. Quantifying blockchain extractable value: How dark is the forest? In 2022 IEEE Symposium on Security and Privacy (SP), pages 198–214. IEEE, 2022.
[27] Irving S Reed and Gustave Solomon. Polynomial codes over certain finite fields. Journal of the society for industrial and applied mathematics, 8(2):300–304, 1960.
[28] Alex Skidanov, Illia Polosukhin, and Bowen Wang. Nightshade: Near protocol sharding design 2.0, 2019. URL: https://discovery-domain.org/papers/nightshade.pdf.
[29] Junfeng Tian, Yuyang Zhao, and Jin Tian. Controlshard: A cross-shard transaction processing method based on congestion control strategy. Computer Networks, page 112028, 2026.
[30] Jiaping Wang and Hao Wang. Monoxide: Scale out blockchains with asynchronous consensus zones. In 16th USENIX symposium on networked systems design and implementation (NSDI 19), pages 95–112, 2019.
[31] Gavin Wood et al. Ethereum: A secure decentralised generalised transaction ledger. Ethereum project yellow paper, 151(2014):1–32, 2014.
[32] Yibin Xu, Jingyi Zheng, Boris Düdder, Tijs Slaats, and Yongluan Zhou. A two-layer blockchain sharding protocol leveraging safety and liveness for enhanced performance. arXiv preprint arXiv:2310.11373, 2023.
[33] Maofan Yin, Dahlia Malkhi, Michael K Reiter, Guy Golan Gueta, and Ittai Abraham. Hotstuff: Bft consensus with linearity and responsiveness. In Proceedings of the 2019 ACM symposium on principles of distributed computing, pages 347–356, 2019.
[34] Mahdi Zamani, Mahnush Movahedi, and Mariana Raykova. Rapidchain: Scaling blockchain via full sharding. In Proceedings of the 2018 ACM SIGSAC conference on computer and communications security, pages 931–948, 2018.
[35] Jianting Zhang, Wuhui Chen, Sifu Luo, Tiantian Gong, Zicong Hong, and Aniket Kate. Front-running attack in sharded blockchains and fair cross-shard consensus. In Network and Distributed System Security Symposium (NDSS), 2024.
A Related Works
A.1 Cross-Shard Requests Processing
A substantial body of prior work has investigated the processing of cross-shard user requests in sharding blockchain systems, proposing various mechanisms to enhance performance [3, 7–11, 13, 14, 17–21, 29, 30, 34].
State-of-the-art approaches include Kronos [20] and Logos [21]. For a cross-shard user request, Kronos first executes BFT consensus across all input shards to consume the inputs. The consumed inputs are then transmitted via a trusted cross-shard channel to the output shards, where they are temporarily staged. Subsequently, output shards execute consensus to transfer all staged funds to the target accounts. If invalid inputs are encountered, Kronos requires all shards that have already consumed funds to execute consensus on a refund transaction to revert the execution. In contrast, Logos first broadcasts the user request to all involved shards, whereupon all input shards execute a cross-state determine reliable broadcast (csdRBC) protocol to verify the validity of all inputs. The resulting validity determinations are then delivered to all involved shards via a trusted cross-shard channel. If all inputs are valid, all input and output shards execute consensus on the user request to perform the fund deductions and additions. If any input is invalid, all shards terminate the process directly without requiring further consensus, though the initial broadcast overhead is still incurred. To optimize cross-shard communication, Logos introduces RPST, which offloads the majority of communication volume to intra-shard networks.
In addition, several other cross-shard request processing schemes have been proposed. A widely adopted approach is Two-Phase Commit (2PC) [3, 7, 9, 19]. For a cross-shard request, 2PC first executes BFT consensus across all input shards to lock funds, followed by a second consensus round across all input and output shards to actually deduct or credit balances. Another common approach utilizes relay accounts or user coordinators [13, 34]: to process a request, funds are first transferred via BFT consensus in all input shards to relay accounts or coordinator users in the output shards, followed by a second consensus round in the output shards to transfer funds from the relay or coordinator accounts to the final destinations. Monoxide [30] and CoChain [18] adopt a relay transaction mechanism analogous to relay accounts: a relay transaction first undergoes BFT consensus in the input shard to transfer funds toward the target shard, after which its output is transferred to the final destination within the target shard.
Nevertheless, these systems adhere to the traditional processing paradigm that treats each user request as a monolithic entity for consensus and execution. Consequently, they cannot overcome the lower bounds of an IS-overhead of at least and a CS-overhead of at least [20, 21].
Other schemes introduce specialized sharding architectures to handle cross-shard requests. Das et al. [8] introduces a dedicated coordinator shard responsible for orchestrating cross-shard requests across different shards. Tian et al. [29] employs specialized shards to process cross-shard requests. Hong et al. [10, 11] introduces a hierarchical sharding structure in which bridge shards cover multiple lower-level shards and coordinate their cross-shard requests. Xu et al. [32] similarly employ a two-tiered sharding architecture, in which a set of small execution shards is overseen by a control shard to process user requests. Jiang et al. [14] proposed a method that dynamically merges pairs of shards and periodically rotates the pairings, permitting cross-shard requests to execute only when the involved shards are actively merged.
A.2 MEV in sharding Blockchains
Extracting Maximal Extractable Value (MEV) through transaction order manipulation has emerged as a major security challenge in blockchain systems [6,26].
Order-fairness BFT protocols, such as Aequitas [16], investigate mechanisms to prevent malicious leaders or proposers from arbitrarily reordering transactions observed by honest nodes. However, these protocols primarily address local transaction ordering within a single consensus instance. In sharding blockchains, achieving fair ordering for cross-shard requests typically necessitates specialized protocol designs. Prophet [12] adopts a Byzantine fault-tolerant deterministic ordering strategy to prevent conflicts among cross-shard transactions.
Furthermore, sharding blockchains introduce unique fairness challenges. In conventional cross-shard protocols, a cross-shard request must reach consensus within its input shards before undergoing a separate consensus process within its output shards. This sequential workflow inherently exposes cross-shard requests to higher latency compared to intra-shard transactions, thereby expanding the attack surface for front-running exploits. Haechi [35] identifies front-running attacks stemming from the execution window gap between input and output shard consensus instances in traditional cross-shard workflows, and proposes finalization fairness to align the processing and execution order across shards.
B CSRD Construction
B.1 Building Blocks
We use the following standard building blocks. Throughout this section, and .
Threshold signatures. A threshold signature scheme provides:
- TSig.SignShare , invoked by replica to generate its signature share on ;
• TSig.VerifyShare( ), which verifies a signature share;
- TSig.Combine , which aggregates valid signature shares from distinct replicas into a threshold signature ;
• TSig.Verify(x, ), which verifies a threshold signature .
Combining q valid signature shares from distinct replicas yields an accepted signature. Conversely, if fewer than q replicas contribute signature shares, generating an accepted signature is computationally infeasible.
Erasure coding. A erasure code provides:
• EC Encode(M) → {e₁, ..., eₙ}, which encodes a message M into n fragments;
• EC.Decode( ) M, which reconstructs the original message M using a set of fragments indexed by I, where I is an index set of size at least k.
Any distinct valid fragments guarantee the exact reconstruction of the original message. The encoding is deterministic, and each fragment has a size of .
Commitments. A commitment scheme provides:
• Com.CommitOpen( ) , which returns a commitment and an opening ;
• Com.Verify( ), which verifies that occupies position in the committed vector.
We require that the commitment is deterministic. And we require correctness and position binding: after c is fixed, no adversary can open the same position to two different values.
We keep this interface generic, but all commitment instances in this paper are instantiated via a Merkle tree [24] in which serves as the -th leaf node. Under this construction, the commitment is the Merkle root, and an opening is a Merkle proof for the corresponding leaf. Thus, has a size of , and an opening has a size of .
Intra-shard certification. The Logos-based construction additionally employs an intra-shard certification primitive. This primitive provides:
• Certify , invoked by replica to produce a certificate for ;
• CertVerify(x, ), which verifies whether a certificate is valid.
An accepted certificate can be obtained by all replicas if and only if at least q replicas invoke . In general, this certification primitive does not introduce additional consensus rounds; instead, it can be seamlessly embedded into intra-shard BFT consensus. A typical instantiation involves embedding the hash of x into the header of a BFT proposal block, using the block commit certificate together with the Merkle proof of inclusion for x's hash in the block header as the validity certificate .
B.2 A Basic CSRD Instance
In Algorithm 4, each replica in the input shard broadcasts its threshold signature share along with its designated erasure-coded fragment corresponding to its replica index to all replicas in the target shard. Simultaneously, cryptographic commitments are used to protect the integrity of the fragments. Upon receiving messages containing valid signature shares, a replica in the target shard can aggregate these shares to form a certificate. Among these messages, at least originate from honest replicas; thus, the original data can be reconstructed using the accompanying erasure-coded fragments.
B.3 CSRD Instance based on Logos
Algorithm 5 adopts the one-to-one cross-shard transmission pattern proposed by Logos [21]. Specifically, a source replica with index transmits fragment exclusively to the target replica sharing the same index , which subsequently propagates the fragment within the destination shard. Unlike Algorithm 4, where target shard replicas aggregate the certificate, source replicas in Algorithm 5 first generate the certificate intra-shard before transmitting it to the destination.
For ease of proof, the algorithm specifies that certificate generation occurs after replicas initiate transmission. However, in practical deployments, the certificate may be generated alongside intra-shard BFT consensus prior to transmission. This does not compromise security, as our model requires that any honest replica observing a valid certificate will invariably invoke the transmission procedure.
B.4 Analysis
Lemma B.1 (CSRD security). Under authenticated reliable channels, , and the properties of the building blocks
Algorithm 4: A basic CSRD instance from to with tag .
▷ as the -th replica
1 upon . Send is called do
2 .
3 .
4 .
5 Send to every replica of .
▷ as a replica in
6 upon receiving from distinct source replicas , each satisfying do
7 .
8 Find of distinct indices whose messages have the same and satisfy .
9 .
10 Deliver .
▷ as a replica in or
11 upon . Verify is called do
12 return .
above, Algorithms 4 and 5 satisfy CSRD correctness and validity.
Proof. For Algorithm 4, suppose all honest source replicas invoke with the same . Deterministic encoding and commitment make them send fragments under the same commitment . Every honest destination replica eventually receives messages from all honest source replicas and can therefore combine their signature shares. Any received messages contain at least honest messages, so a qualifying set of messages exists. Moreover, every set of messages from distinct source replicas that shares a commitment contains an honest message. Its commitment must consequently be ; position binding makes every accepted fragment in that set the corresponding fragment of the codeword for . Erasure-code correctness therefore reconstructs the unique . This proves correctness.
For validity, an accepted threshold signature contains distinct shares, at least of which came from honest source replicas. Since an honest replica signs only while processing . , at least one honest source replica invoked for this instance. Notice that this argument does not require the signature to cover , a digest, or .
For Algorithm 5, deterministic encoding again gives all honest source replicas the same , and certification correctness supplies an accepted certificate for it. Among the honest sources, at most have a Byzantine replica at the corresponding destination index. Hence at least correctly opened fragments reach honest paired destinations and are broadcast to every honest destination replica. Position binding and erasure-code correctness make every such replica reconstruct the same .
For validity, an accepted certification proof has participants, at least of which are honest; each honest
Algorithm 5: A Logos-based CSRD instance from to with tag .
▷ as the -th replica
1 upon CSRD.Send() is called do
2 .
3 .
4 .
5 Send msg to the -th replica of .
▷ as a replica in
6 upon receiving msg from the -th replica of , satisfying CertVerify and Com.Verify() do
7 Broadcast msg to all replicas in .
8 upon receiving valid msg for a set of distinct indices, all with the same do
9 .
10 for any valid among these messages.
11 Deliver .
▷ as a replica in or
12 upon CSRD.Verify() is called do
13 Parse .
14 return CertVerify().
participant certifies only while processing Send(). Thus an accepted CSRD certificate implies that an honest source replica invoked Send(). Certification agreement additionally prevents the same instance from certifying two different commitments.
Lemma B.2 (CSRD cross-shard overhead). Ignoring lower-order authentication metadata when the encoded message dominates it, Algorithms 4 and 5 transmit
bytes across shards, respectively. Under the standard configuration , these become and .
Proof. Each encoded fragment has size . In Algorithm 4, every cross-shard message additionally contains the tag , source index , commitment , opening , and signature share . Thus, the size of the metadata in each message is
and sending one such message from each of source replicas to each of destination replicas costs
Let denote the number of entries covered by the export root used for certification, taking when the certified value is committed directly in the block header. In Algorithm 5, a cross-shard message instead contains , , , , and the intra-shard certificate . Hence, the size of the metadata in each message is
Only one message is transmitted along each of the matched source–destination pairs, yielding a total cost of
The certification procedure and the subsequent destination-shard rebroadcast are intra-shard operations, so neither contributes to CS-overhead.
With the default instantiation, , while . The certificate consists of a constant-size threshold-signature commit certificate and, when needed, a Merkle inclusion proof with respect to this export root. Consequently, . The tag and replica index are absorbed by these terms, yielding and . Substitution gives
and
For , these become and .
Finally, if , the message terms dominate the metadata terms, leaving and , respectively.