betaFeedback

WorksComputer Science

Pearl: TEE-Enabled Fair Ordering with Minimal Replication

Abstract

Recent research has investigated fair transaction ordering in blockchain consensus. An orthogonal line of work has demonstrated that equipping replicas with trusted execution environments (TEEs) enables more efficient consensus protocols with only 2f+12f{+}1 replicas. In this work, we bridge these two areas and demonstrate that two key fair-ordering properties, ordering linearizability and γγ-batch-order fairness with minimal batching, cannot be implemented in partially synchronous networks with 2f+12f{+}1 replicas, even when the replicas are equipped with TEEs. We show that Byzantine replicas can circumvent TEE protections by manipulating the timing of transaction submissions to the enclave, thereby biasing the resulting ordering indicators. However, we prove that assuming a synchronous network allows both properties to be implemented with a reduced replica count. We propose two mechanisms: one uses absolute TEE-attested timestamps to guarantee ordering linearizability in a system of n≥2f+1n \ge 2f{+}1 replicas, and the other uses TEE-maintained relative sequence numbers to guarantee γγ-batch-order fairness when n>2γf2γ−1n > \frac{2γf}{2γ-1}. Ultimately, we integrate these mechanisms into a synchronous lane-based consensus algorithm, achieving strong fair-ordering properties and superior performance while requiring fewer replicas than representative state-of-the-art baselines.

Artifact availability: https://github.com/VianRobotin/incubator-resilientdb/tree/vian

Introduction

Distributed ledgers rely on a Byzantine fault-tolerant (BFT) consensus service to produce a total order over client transactions [1, 2]. Yet classical leader-based and DAG-based BFT consensus protocols [3, 4, 5, 6, 7, 8] only require agreement on a total order, leaving the position of each transaction entirely to (potentially malicious) protocol participants. In financial applications, this freedom has been weaponized: the maximal extractable value (MEV) literature has documented the extraction of hundreds of millions of dollars per year from end users through transaction reordering attacks [9, 10, 11, 12, 13].

A growing body of work formalizes what a “fair” total order should look like. Receive-order fairness, defined in Aequitas [14], promises that if all correct replicas observe a transaction t1t_1 before a transaction t2t_2, then t1t_1 is committed before t2t_2. This property, however, is impossible to achieve in fully asynchronous settings because of Condorcet cycles [15, 16]. γ\gamma-batch-order fairness [17] sidesteps the impossibility by relaxing the property and grouping transactions from Condorcet cycles into the same batch. Ordering linearizability [18] follows a different approach by attaching a numerical ordering indicator (typically a timestamp) to each transaction and requiring the system to order transactions using the median of 2f+12f+1 ordering indicators per transaction. Subsequent work has explored attacks against fair ordering protocols [16, 19], faster variants of γ\gamma-batch-order fairness [20], leaderless variants of fair ordering protocols on DAGs [21, 22, 23, 24], and median- or threshold-encryption-based defenses [25, 26, 27, 28, 29]. To the best of our knowledge, all fair ordering protocols proposed to date require at least 3f+13f+1 replicas for ordering linearizability, and between 3f+13f+1 and 4f+14f+1 replicas for γ\gamma-batch-order fairness.

Another line of work equipped each replica with a trusted execution environment (TEE), a hardware-isolated enclave that can run authenticated code and produce unforgeable attestations, to lower the replication threshold and improve the performance of BFT consensus from 3f+13f+1 to 2f+12f+1 by ruling out equivocation [30, 31, 32, 33]. It is therefore natural to ask whether TEEs can enable fair ordering. Prior work has explored this direction but still assumes 3f+13f+1 replicas [34, 35]. Using TEEs to lower the replica count while maintaining fair ordering is not straightforward because TEEs cannot directly read or send network messages: a Byzantine host can control when a transaction is shown to its enclave.

In this work, we make the following contributions:

  • We prove that ordering linearizability and γ\gamma-batch-order fairness cannot be implemented in partially synchronous networks with only 2f+12f+1 replicas, even with TEEs (§III).

  • We then show that this impossibility can be overcome in synchronous networks (§III). We propose two mechanisms: one achieving ordering linearizability with absolute timestamps, requiring n≥2f+1n \ge2f+1 replicas, and another achieving γ\gamma-batch-order fairness with relative local ordering, requiring n>2γf2γ−1n > \frac{2\gamma f}{2\gamma-1}. Both improve on the state of the art.

  • We compose these mechanisms with lane-based dissemination and synchronous consensus to obtain the Pearl protocols: a shared core (§V), Pearl-OL for ordering linearizability (§VI), and Pearl-BOF for γ\gamma-batch-order fairness (§VII). Pearl builds on modified versions of Autobahn [8] and Sync HotStuff [36], respectively. Table 1 compares both variants with the related work.

  • We machine-checked the impossibility results and the safety and liveness of both variants in Lean 4, on a model of the protocols.

  • We deploy Pearl on the DAS-5 cluster [37] and compare it with four fair-ordering baselines (Pompē [18], Themis [17], FairDAG-AB [22], and FairDAG-RL [22]) and with Tusk [6] as a vanilla DAG-BFT reference. Pearl achieves 3–13× the

Protocol(s)FairnessNetworkReplicasTEELivenessTechnique
Pompeí [18], AOAB [29]Ordering linearizabilityPartial synchronyn≥3f+1n \ge3f+1×StandardTimestamp aggregation
Sync. Aequitas [14]γ\gamma-batch-order fairnessSynchronyn>2f2γ−1n > \frac{2f}{2\gamma-1}×WeakOrdering/dependency graph
Async. Aequitas [14]γ\gamma-batch-order fairnessAsynchronyn>2f(γ+1)2γ−1n > \frac{2f(\gamma+1)}{2\gamma-1}×WeakOrdering/dependency graph
Auncel [40]γ\gamma-batch-order fairnessPartial synchronyn>2f(γ+1)2γ−1n > \frac{2f(\gamma+1)}{2\gamma-1}×StandardOrdering/dependency graph
Rashnu [41]Data-dependent order fairnessPartial synchronyn≥3f+1n \ge3f+1×StandardData-dependent ordering graph
AuTIG [42]γ\gamma-batch-order fairnessPartial synchronyn≥3f+1n \ge3f+1×StandardIncremental ordering graph + proofs
Themis [17]γ\gamma-batch-order fairnessPartial synchronyn>2f(γ+1)2γ−1n > \frac{2f(\gamma+1)}{2\gamma-1}×StandardRelative order + batching
FairDAG-AB [22], Tilikum-OL [23]Ordering linearizabilityPartial synchronyn≥3f+1n \ge3f+1×StandardDAG-based ordering
FairDAG-RL [22], Tilikum-BOF [23]γ\gamma-batch-order fairnessPartial synchronyn>(2γ+1)f2γ−1n > \frac{(2\gamma+1)f}{2\gamma-1}×StandardDAG-based ordering
Herring [24]γ\gamma-batch-order fairnessPartial synchronyn>4f2γ−1n > \frac{4f}{2\gamma-1}×StandardDAG-based ordering
Fairy [34], Aion [35]Input/time-basedPartial synchronyn≥3f+1n \ge3f+1✓StandardTEE-attested timestamps
Pearl-OL (this work)Ordering linearizabilitySynchronyn≥2f+1n \ge2f+1✓StandardTEE-attested host timestamps
Pearl-BOF (this work)γ\gamma-batch-order fairnessSynchronyn>2f2γ−1n > \frac{2f}{2\gamma-1}✓StandardTEE-attested local orderings

Table 1. Comparison of fair-ordering protocols.

throughput of the strongest fair-ordering baseline, while also providing lower latency (230–300 ms).

System Model and Objectives

System Model. We consider a system of nn replicas running a consensus service for a blockchain. Up to ff replicas may be Byzantine. Clients submit their transactions to every replica to have them committed in the chain. We make no synchrony assumption on the links between clients and replicas. A transaction only needs to reach one correct replica, and our fairness guarantees are stated from that point on. Our impossibility results assume a partially synchronous inter-replica network.1 By contrast, our fair-ordering protocols, Pearl-OL and Pearl-BOF, assume a synchronous network with a known maximum transmission delay Δ\Delta. They respectively require n≥2f+1n \ge2f+1 and n>2γf2γ−1n > \frac{2\gamma f}{2\gamma-1}. Each correct replica has a local clock that it uses to measure durations, and we assume that these clocks advance at the rate of real time. We do not assume synchronized clocks.

Trusted Execution Environments. Each replica runs a trusted execution environment (TEE) capable of executing authenticated code and producing unforgeable attestations. TEEs cannot directly communicate over the network and rely on their (potentially Byzantine) host for communication. We assume remote authentication and access to signature and encryption schemes, but exclude rollback and side-channel attacks [39]. TEEs have no trusted clock but can maintain state that their host cannot read or tamper with. When a TEE needs a timestamp, it reads one from its host and enforces that successive attested values strictly increase. Through remote attestation, the enclaves of different replicas can also establish a shared key that no host learns. Pearl-OL uses host-provided timestamps attested by TEEs, whereas Pearl-BOF uses TEE-maintained counters.

Fair Ordering. We aim to implement ordering linearizability [18] and γ\gamma-batch-order fairness [14, 17] in systems with 2f+12f+1 replicas, achieving this combination for the first time.

Definition 1 (Ordering Linearizability). For any two transactions t1t_1 and t2t_2, if every timestamp that a correct replica assigns to t1t_1 is smaller than every timestamp that a correct replica assigns to t2t_2, then t1t_1 is ordered before t2t_2.

The timestamp that a replica assigns to a transaction is the reading of its local clock when it observes the transaction, raised just above its previous timestamp if the two readings coincide. Note, however, that ordering linearizability does not require clock synchronization. Pompē [18] implements ordering linearizability using 3f+13f+1 non-TEE replicas by assigning each transaction a final ordering indicator equal to the median of 2f+12f+1 replica timestamps. This guarantees that the final timestamp is both lower- and upper-bounded by timestamps from correct replicas. Differently, γ\gamma-batch-order fairness [14], [17] relies on replicas’ relative transaction orders rather than absolute timestamps.

Definition 2 (γ\gamma-batch-order fairness with minimal batching). For any two transactions t1t_1 and t2t_2, if at least a fraction γ∈(12,1]\gamma\in(\frac{1}{2},1] of all correct replicas receive t1t_1 before t2t_2 (denoted t1≺loct2t_1 \prec_{\mathrm{loc}} t_2), then t1t_1 must be ordered before t2t_2 or in the same batch. Transactions are placed in the same batch only if their preferences form a directed cycle in which each edge t1→t2t_1 \to t_2 is supported by at least qq correct replicas that receive t1t_1 before t2t_2. The protocol fixes the batching support q∈{1,…,⌈γ(n−f)⌉}q \in\{1,\ldots,\lceil\gamma(n-f)\rceil\}, ensuring batch minimality at support qq. A batch may be output over several execution steps and need not be contiguous.

We adopt the formulation introduced by Themis [17], which places transactions in the same batch only when necessary to resolve cyclic ordering dependencies. Condorcet cycles can chain without bound, so a protocol that waits for a complete batch is not live.

Impossibility of Fair Ordering with n=2f+1n=2f+1 in Partially-Synchronous Networks

In this section, we assume that the inter-replica network is partially synchronous. We aim to design fair-ordering protocols that operate with n≥2f+1n \ge2f+1 replicas, which is the minimum number of replicas required to implement consensus. In this setting, a consensus algorithm should order transactions based on f+1f+1 ordering indicators per transaction. Under this constraint, we show that neither ordering linearizability (based on absolute timestamps) nor γ\gamma-batch-order fairness (based on local relative orderings) can be guaranteed, even with TEEs.

Lemma 1. In a partially synchronous system of n=2f+1n = 2f+1 replicas with up to f≥1f \ge1 Byzantine faults, no live ordering rule that decides from only f+1f+1 signed absolute-timestamp reports per transaction can guarantee ordering linearizability.

Proof. We consider two scenarios that a protocol collecting f+1f+1 absolute timestamps per transaction cannot distinguish, yet that require opposite ordering decisions.

Scenario 1 (Fig. 1). Every correct timestamp of tat_a is smaller than every correct timestamp of tbt_b. Ordering linearizability therefore requires that tat_a be ordered before tbt_b. Meanwhile, the ff faulty replicas issue timestamps for tat_a that exceed all correct timestamps of tbt_b and timestamps for tbt_b that exceed all faulty timestamps of tat_a. The adversary then arranges for the protocol to collect, for each transaction, the set of f+1f+1 highlighted timestamps: one correct timestamp and ff faulty timestamps for tat_a and f+1f+1 correct timestamps for tbt_b. From these collected timestamps, the protocol must, by assumption, decide ta≺tbt_a \prec t_b to remain consistent with ordering linearizability.

Scenario 2 (Fig. 1). Every correct timestamp of tbt_b is smaller than every correct timestamp of tat_a. Ordering linearizability therefore requires that tbt_b be ordered before tat_a. The faulty replicas issue timestamps for tat_a that are smaller than all correct timestamps of tbt_b and timestamps for tbt_b that are larger than all correct timestamps of tat_a. The adversary arranges for the protocol to collect ff correct timestamps and one faulty timestamp for tat_a, and f+1f+1 correct timestamps for tbt_b. Assuming that the collected timestamps are identical to those collected in Scenario 1, the protocol must make the same decision and order tat_a before tbt_b. However, in this case, this decision contradicts ordering linearizability, completing the proof.

Figure 1. Fair ordering impossibility with 2f+12f+1 replicas in partially synchronous networks. (a) Ordering linearizability scenarios. Both scenarios produce the same f+1f+1 absolute timestamps per transaction, signed by the same replicas. Purple outlines mark the timestamps used per transaction. (b) γ\gamma-batch-order fairness scenarios. Both scenarios produce the same f+1f+1 local-order certificates, where a replica that observes a transaction tat_a before a transaction tbt_b expresses it as ta≺loctbt_a \prec_{\mathrm{loc}} t_b.

Lemma 2. In a partially synchronous system of n=2f+1n = 2f+1 replicas with up to f≥1f \ge1 Byzantine faults, no live ordering rule that decides from f+1f+1 signed local-order reports guarantees γ\gamma-batch-order fairness with minimal batching, for any γ∈(12,1]\gamma\in\left(\frac{1}{2}, 1\right].

Proof. In the considered setting, a consensus protocol must order any pair of transactions using only f+1f+1 local orderings that contain both tat_a and tbt_b, with γ∈(12,1]\gamma\in\left(\frac{1}{2}, 1\right]. We exhibit two scenarios that cannot be distinguished and that require opposite ordering decisions according to γ\gamma-batch-order fairness. In both, all correct replicas observe a transaction before the other, so batch minimality prevents the two transactions from being batched together.

Scenario 3 (Fig. 1). All f+1f+1 correct replicas receive tat_a before tbt_b. Thus, by γ\gamma-batch-order fairness, the protocol must order tat_a no later than tbt_b. The adversary arranges for the collected f+1f+1 local orderings to consist of ff correct reports where ta≺loctbt_a \prec_{\mathrm{loc}} t_b (i.e., tat_a appears before tbt_b) and one faulty report where tb≺loctat_b \prec_{\mathrm{loc}} t_a. By assumption, the protocol must decide ta≺tbt_a \prec t_b.

Scenario 4 (Fig. 1). All f+1f+1 correct replicas receive tbt_b before tat_a. The adversary now arranges for the collected f+1f+1 local orderings to consist of ff faulty reports of ta≺loctbt_a \prec_{\mathrm{loc}} t_b and one correct report of tb≺loctat_b \prec_{\mathrm{loc}} t_a. The local relative orderings collected are indistinguishable from those in Scenario 3, so the protocol must make the same decision and order tat_a before tbt_b, which contradicts γ\gamma-batch-order fairness.

Fair Ordering Mechanisms in Synchronous Networks

We now state and prove the mechanisms that implement ordering linearizability and γ\gamma-batch-order fairness with fewer replicas in a synchronous network.

Lemma 3. Let CC denote the set of correct replicas, and let Tc(t)T_c(t) be the absolute timestamp that correct replica c∈Cc \in C produces for transaction tt. A system of n=2f+1n = 2f+1 replicas implements ordering linearizability if it assigns every transaction tt a final ordering key K(t)K(t) that falls within the range of its correct timestamps, i.e., min⁡c∈CTc(t)≤K(t)≤max⁡c∈CTc(t)\min_{c \in C} T_c(t) \le K(t) \le\max_{c \in C} T_c(t), and orders transactions by increasing key.

Proof. Assume that every timestamp that a correct replica produces for tat_a is smaller than every timestamp that a correct replica produces for tbt_b, i.e., max⁡c∈CTc(ta)<min⁡c∈CTc(tb)\max_{c \in C} T_c(t_a) < \min_{c \in C} T_c(t_b). Since both keys fall within the range of their correct timestamps, K(ta)≤max⁡c∈CTc(ta)<min⁡c∈CTc(tb)≤K(tb)K(t_a) \le\max_{c \in C} T_c(t_a) < \min_{c \in C} T_c(t_b) \le K(t_b), and the system, which orders transactions by increasing key, orders tat_a before tbt_b as required by ordering linearizability.

Lemma 4. Let γ∈(12,1]\gamma\in\left(\frac{1}{2}, 1\right], and let every replica report, for each pair of transactions, the order in which it received them. In a synchronous network of n>2γf2γ−1n > \frac{2\gamma f}{2\gamma-1} replicas, consider the rule that orders tat_a no later than tbt_b whenever at least γ(n−f)\gamma(n-f) of the counted reports state that tat_a was received first, where the counted reports include those of all n−fn-f correct replicas. This rule applies to every pair (ta,tb)(t_a,t_b) that Definition 2 constrains, and then does not apply to (tb,ta)(t_b,t_a).

Proof. Assume that n>2γf2γ−1n > \frac{2\gamma f}{2\gamma-1} and consider transactions tat_a and tbt_b such that at least γ(n−f)\gamma(n-f) correct replicas receive tat_a before tbt_b, so that Definition 2 requires tat_a to be ordered no later than tbt_b. Because the counted reports include those of every correct replica, these γ(n−f)\gamma(n-f) replicas all report ta≺loctbt_a \prec_{\mathrm{loc}} t_b, so the rule applies to (ta,tb)(t_a,t_b). It remains to show that it does not

also apply to (tb,ta)(t_b,t_a). Each replica reports one order for the pair, so there are at most n−γ(n−f)n-\gamma(n-f) reports that support tb≺loctat_b \prec_{\mathrm{loc}} t_a. It is not possible to have γ(n−f)\gamma(n-f) such reports, because we would then have 2γ(n−f)≤n2\gamma(n-f) \le n, which rearranges to (2γ−1)n≤2γf(2\gamma-1)n \le2\gamma f, that is, n≤2γf2γ−1n \le\frac{2\gamma f}{2\gamma-1}, which contradicts our assumption. The rule therefore applies to (ta,tb)(t_a,t_b) only. Pairs to which it applies along a cycle are placed in the same batch (§VII-C).

Pearl: Common Core

Pearl turns the mechanisms of §IV into two variants that share the same two layers: a TEE-assisted dissemination layer (Alg. 1), and a synchronous consensus layer (Alg. 2). This design enables nodes to concurrently propose transaction blocks, while the synchronous consensus layer ensures the ordering mechanisms operate correctly. The dissemination layer guarantees that transactions remain retrievable from at least one correct replica and associates each transaction with unforgeable ordering evidence. The consensus layer then commits transaction digests and variant-specific ordering evidence, allowing the execution layer to deterministically derive the final transaction order. Figure 2 sketches the resulting five-phase pipeline.

Steady-state workflow of Pearl

Figure 2. Steady-state workflow of Pearl (illustrated with f=1f = 1 and n=3n = 3); R1R_1 is the leader, and time flows from left to right. Here, Ii=TiI_i = T_i in Pearl-OL and Ii=siI_i = s_i in Pearl-BOF. Inline OL/BOF labels distinguish the variant-specific echo, Car-preparation, and post-commit ordering steps; Car dissemination and acknowledgment (forming a PoA) and the Sync HotStuff proposal/vote/timer path are shared. If its 2Δ2\Delta timer expires without equivocation or a view change, each replica commits locally without an additional commit-message round, derives the variant-specific order from committed data, and executes eligible transactions.

Building blocks in a nutshell. Autobahn [8] is a partially synchronous protocol that separates data dissemination from consensus. Each replica disseminates batches of transactions, called Cars, in its own lane, a hash chain that extends at its own pace. A Car is certified available once f+1f+1 replicas acknowledge it, so at least one correct replica holds it. Its consensus layer agrees on tip cuts, i.e., one certified tip per lane, and committing a tip cut commits every Car in the prefix of each lane. Sync HotStuff [36] is a synchronous consensus protocol for n≥2f+1n \ge2f+1 replicas. A stable leader proposes a chain of blocks, each carrying a certificate of f+1f+1 votes for its predecessor. Replicas forward every proposal and broadcast their votes, and a replica commits a block 2Δ2\Delta after voting for it if it has observed no equivocation in the meantime.

The Pearl variants, Pearl-OL (§VI) and Pearl-BOF (§VII), differ in the authenticated evidence that their TEEs issue and in the rule that derives the final transaction order.

TEE-Attested Ordering Evidence

Ordering evidence. Correct clients send each of their transactions to every replica. When a replica receives a transaction tt for the first time, either directly from a client or from another replica, it forwards it to its local TEE to record the local order and generate authenticated evidence (Alg. 1, l. 5). The TEE keeps in its protected memory a set H\mathcal{H} of the identifiers of the transactions it has already attested (Alg. 1, l. 4), where id⁡(t)\operatorname{id}(t) is the hash digest of tt. If id⁡(t)∈H\operatorname{id}(t) \in\mathcal{H}, the TEE avoids processing transaction tt a second time and returns nothing (Alg. 1, l. 6). Otherwise it inserts id⁡(t)\operatorname{id}(t) into H\mathcal{H} (Alg. 1, l. 7) and produces variant-specific evidence. In Pearl-OL, the enclave accepts a host-provided timestamp TT only if it exceeds the last timestamp it attested, and returns σOL=Sign⁡TEE(t,T)\sigma_{\mathrm{OL}}=\operatorname{Sign}_{\mathrm{TEE}}(t,T) (Alg. 1, ll. 9–10). A correct host therefore submits the larger of its clock reading and a value just above the last attested timestamp TlastT_{\mathrm{last}}. In Pearl-BOF, the enclave increments its local sequence number ss, appends tt to its open Car cc, and returns the placement evidence σBOF=Sign⁡TEE(t,c)\sigma_{\mathrm{BOF}}=\operatorname{Sign}_{\mathrm{TEE}}(t,c) (ll. 14–15). The signed Car later authenticates the resulting sequence order, while the placement signature separately binds tt to the Car index announced during echoing. Thus, each TEE’s timestamp sequence in Pearl-OL and transaction sequence in Pearl-BOF is unique and monotonically increasing, but the two variants do not share a common signed-indicator format.

Non-equivocation. Because H\mathcal{H} is enclave-resident and checked before each attestation (Alg. 1, l. 6), a Byzantine host cannot obtain multiple attestations for the same transaction or report different authenticated timestamps or placements for it to different replicas. However, a faulty host retains several capabilities that a TEE cannot prevent (§III), because an enclave only observes the inputs forwarded to it by its host. Thus, the host may delay forwarding a transaction to the enclave or submit one of its transactions early, respectively inflating or deflating its indicator. Furthermore, it may withhold an attestation instead of broadcasting it. In Pearl-OL, the host also chooses the timestamps fed to its enclave, subject only to the monotonicity check.

Enclave state. The enclave keeps H\mathcal{H} for its lifetime, because a host able to trigger the deletion of an identifier could obtain a second attestation for its transaction. For garbage collection, the enclave can delete an identifier after verifying a proof that its transaction was executed.

Data Dissemination and Ordering-Evidence Collection

Transaction dissemination. Pearl borrows the data dissemination layer of Autobahn [8], but adapts it to a lower number of replicas under synchrony. Unlike the DAG-BFT protocols it takes inspiration from [6, 7], Autobahn builds no graph of cross-referencing proposals: its data layer consists of nn independent lanes, one per replica, each a hash chain that its owner extends at its own pace. Replicas assemble the digests of the transactions they have received into batches (called Cars in Autobahn, Alg. 1, ll. 14 and 41), which are broadcast (in PROP messages, l. 24) and acknowledged by the other replicas (in ACK messages2, l. 29).

A correct replica seals its open Car once it is full or once an interval XX has elapsed since its previous seal, whichever comes first. We set X=ΔX = \Delta, the time a Car takes to reach every replica: at this cadence a replica has already received and acknowledged a Car’s predecessor when the Car itself arrives, and can therefore acknowledge every Car on reception. Cars are chained into per-replica lanes: a replica votes for the Car at position ii of a lane only if it references the Car at position i−1i-1, which the replica has already received and voted on. In both variants the enclave controls the content of a Car: in Pearl-BOF it signs a Car only if the transactions appear in the order it observed them, while in Pearl-OL it checks that it has attested all transactions and certified their local ordering keys (S⁠VI–VII). Each Car carries the f+1f+1 signed acknowledgments of the most recent Car of the same lane for which its owner has assembled them, forming a Proof of Availability (PoA). The availability of a lane prefix still follows from the voting rule above. A replica acknowledges a Car only once it holds the body of every transaction the Car references,

fetching any missing body from the Car’s owner and then from all replicas, so the f+1f+1 acknowledgments of a PoA include a correct replica able to serve every body. Cars also contain protocol-specific ordering information for the transactions they contain (see S⁠VI–VII). Each Car finally carries a frontier, which we define below.

Transaction echoing and ordering-evidence collection. Upon receiving a transaction tt for the first time, a replica produces variant-specific TEE evidence and retransmits tt to all other replicas in a dedicated message (Alg. 1, l. 12)3. In Pearl-OL, this message also carries the locally generated timestamp TT and its TEE signature σOL\sigma_{\mathrm{OL}}. In Pearl-BOF, it carries instead the placement announcement cr(t)c_r(t), the index of the Car of lane rr in which the enclave has just placed tt. This announcement is an unforgable commitment on where tt appears in rr’s local order. Every recipient verifies the complete variant-specific signed tuple before storing it (Alg. 1, ll. 33–37). A replica might receive a transaction for the first time either directly from a client, by fetching it for a Car it acknowledges, or after this retransmission. The first correct replica that receives a transaction retransmits it immediately, so every correct replica receives it within Δ\Delta of that replica, and broadcasts its attestation upon reception. This holds whatever the delays between clients and replicas. Consequently, at most 2Δ2\Delta after it first receives a transaction tt, a correct replica holds the attestation of every correct replica for tt, i.e., at least f+1f+1 and up to nn of them, which is why the collection window of l. 39 lasts 2Δ2\Delta. Both variants use this window, at different points of their pipeline. In Pearl-OL, it reduces timestamps[tt] to a local ordering key Kr(t)K_r(t) (Alg. 1, l. 40) and places tt in its next Car (Alg. 1, l. 41). In Pearl-BOF placement is immediate (Alg. 1, l. 14), and the window instead governs the frontier defined next.

Frontiers. Sealing a Car fixes a frontier from which the protocol variants decide, from the committed Cars alone, when a transaction may be ordered. Pearl-OL seals the completion frontier GrG_r (l. 22), the largest indicator that the enclave has issued such that every transaction rr attested at or below it has its local ordering key in that Car or in an earlier one. The enclave places each ordering key in a single Car. The frontier of a lane therefore never decreases from one Car to the next, since a transaction that is attested after a Car was sealed receives an ordering indicator that is greater than every earlier one. The enclave derives GrG_r from the set H\mathcal{H} of identifiers it has attested (l. 4). A host may hold its frontier back, by queueing transactions before sealing a Car, but can never advance it past a transaction whose key it has withheld, nor past the largest indicator its enclave has issued (otherwise a transaction attested later could fall at or below an already-sealed frontier). Pearl-BOF seals the reception frontier (wr,Mr)(w_r, M_r) (l. 23). Its first component wrw_r is the highest position of lane rr, no higher than the Car that carries it, such that the collection window of every transaction placed at or below it has closed. Its second component gives, for every replica jj, the largest placement announcement Mr[j]M_r[j] that rr collected from jj for those transactions, carried with the enclave signature of jj that certifies it. A correct rr therefore seals Mr[j]≥cj(t)M_r[j] \ge c_j(t) for every correct jj and every transaction tt placed at or below wrw_r: the window of tt closed 2Δ2\Delta after rr received tt, by which time jj’s announcement for tt had arrived. A faulty host may hold wrw_r back or omit entries from MrM_r, but the signatures prevent it from reporting an index that jj’s enclave never opened, and §VII-A tolerates under-reporting by aggregating the frontiers of f+1f+1 lanes. Because a frontier only advances when the enclave issues new indicators, correct replicas submit a no-op heartbeat transaction to their enclave whenever no client transaction has arrived for a configurable period, so that frontiers keep advancing when client traffic pauses.

Synchronous Consensus

Pearl’s consensus layer is based on the Sync HotStuff [36] synchronous algorithm that requires n≥2f+1n \ge2f+1 replicas, which both Pearl variants satisfy. In its steady state, blocks form a hash chain and the leader broadcasts a block (l. 5) with a certificate of f+1f+1 votes for its predecessor. A replica that has detected no leader equivocation forwards the proposal to all replicas, broadcasts its vote (l. 16), and starts a 2Δ2\Delta timer. It commits the block and its ancestors if the timer expires while it has neither detected equivocation nor quit the view (l. 19). Forwarding and broadcasting are what make the 2Δ2\Delta commit rule safe [36]. Commit timers do not block progress: a replica may vote at the next height without waiting for the previous block’s timer to expire. Pearl keeps this structure and its commit rule unchanged, and modifies only the content of blocks and how replicas validate them.

Propose. Besides the Sync HotStuff certificate for its predecessor block, a block proposal contains the PoAs of a tip cut ⟨tip1,…,tipn⟩\langle tip_1,\ldots,tip_n\rangle, i.e., one certified lane tip per replica, and, in Pearl-BOF, the delinquency claims introduced below (Alg. 2, ll. 2–3). Eligibility for execution is decided after commitment, from the committed Cars alone (§VI-B and §VII-A). Committing a tip cut transitively commits every Car in the history of each lane tip, so a constant-size proposal references an arbitrarily large set of transactions and dissemination remains decoupled from consensus.

Pearl’s transaction dissemination and ordering-evidence collection algorithm

Figure 1 (PDF p. 6). Algorithm 1 Pearl’s transaction dissemination and ordering-evidence collection at replica rr. Pearl-OL and Pearl-BOF-specific instructions are indicated using OL and BOF, respectively; routine lane-progression checks are omitted.

Algorithm 1 Pearl’s transaction dissemination and ordering-evidence collection at replica rr. Pearl-OL and Pearl-BOF-specific instructions are indicated using OL and BOF, respectively; routine lane-progression checks are omitted.

  1. Global (OL): timestamps[t]: signed timestamps, one per replica

  2. Global (BOF): placements[t]: signed Car indices, one per replica

  3. Global: lane ← ∅ ▷ Local sequence of Cars

  4. Global (inside TEE): H←∅\mathcal{H} \leftarrow\varnothing ▷ Identifiers already attested

  5. procedure OnFirstReceive(t)(t)

  6. if id⁡(t)∉H\operatorname{id}(t) \notin\mathcal{H} then ▷ TEE refuses a second attestation

  7. H←H∪{id⁡(t)}\mathcal{H} \leftarrow\mathcal{H} \cup\{\operatorname{id}(t)\}

  8. if OL then

  9. T←max⁡(LocalClock⁡(),Tlast+ϵ)T \leftarrow\max(\operatorname{LocalClock}(),T_{\mathrm{last}}+\epsilon) ▷ host-provided

  10. σOL←TEE.Sign⁡(t,T)\sigma_{\mathrm{OL}} \leftarrow\operatorname{TEE.Sign}(t,T) ▷ refused unless TT exceeds the last attested

  11. timestamps[t].add(T, σOL)

  12. BroadcastOLEcho(t, T, σOL)

  13. else ▷ BOF

  14. c←TEE.PlaceInOpenCar⁡(t)c \leftarrow\operatorname{TEE.PlaceInOpenCar}(t) ▷ increment ss and append tt to Car cc

  15. σBOF←TEE.Sign⁡(t,c)\sigma_{\mathrm{BOF}} \leftarrow\operatorname{TEE.Sign}(t,c)

  16. placements[t].add(c, σBOF)

  17. BroadcastBOFEcho(t, c, σBOF)

  18. end if

  19. end if

  20. end procedure

  21. procedure OnCarReady(car)(car) ▷ append to lane

  22. car.G←TEE.CompletionFrontier⁡()car.G \leftarrow\operatorname{TEE.CompletionFrontier}() ▷ OL only

  23. car.(w,M)←TEE.ReceptionFrontier⁡()car.(w,M) \leftarrow\operatorname{TEE.ReceptionFrontier}() ▷ BOF only

  24. Broadcast(Prop, car) ▷ with TEE attestation

  25. end procedure

  26. procedure OnReceiveProp(car,p)(car,p)

  27. FetchMissingBodies(car) ▷ OnFirstReceive on each

  28. Store(car)

  29. Send(p, Ack, car)

  30. end procedure

  31. procedure OnReceiveOLEcho(t,T,σOL)(t,T,\sigma_{\mathrm{OL}})

  32. OnFirstReceive(t) ▷ no effect if already attested

  33. if TEE.Verify(t,T,σOL) then timestamps[t].add(T,σOL)

  34. end procedure

  35. procedure OnReceiveBOFEcho(t,c,σBOF)(t,c,\sigma_{\mathrm{BOF}})

  36. OnFirstReceive(t) ▷ no effect if already attested

  37. if TEE.Verify(t,c,σBOF) then placements[t].add(c,σBOF)

  38. end procedure

  39. procedure AfterCollectionWindow(t)(t) ▷ 2Δ2\Delta after first reception of tt

  40. FinalizeOrderingInfo(t, timestamps[t]) ▷ OL: local ordering key

  41. AddToCurrentCar(t, K_r(t)) ▷ OL only

  42. TEE.RecordAnnouncements(t, placements[t]) ▷ BOF: advances (w,M)(w,M)

  43. end procedure

Vote. Before voting for a block, a replica checks that (i) the tip cut is valid, i.e., every referenced tip carries a valid PoA and no lane regresses below its last committed position, and fresh, i.e., every tipjtip_j is at least as high as the highest certified tip of lane jj that the voter sent to the leader more than 2Δ2\Delta before it received the proposal (Alg. 2, l. 8), and (ii) in Pearl-BOF, its own delinquency timer has expired for every delinquency claim that the block carries (l. 14). A replica that fails a check abstains from voting, permanently for (i), and until its timers expire for (ii), if they do. It otherwise follows Sync HotStuff, forwarding the proposal and broadcasting its vote to all replicas (l. 16) rather than replying to the leader alone.

Validity alone lets a faulty leader propose well-formed blocks at full rate while possibly pinning a lane at a stale tip. Freshness is what keeps a leader from starving a lane while remaining unblamable. A replica that receives a proposal omitting a certified tip that it holds sends the corresponding PoA to the leader. This forwarding is necessary because a faulty lane owner may reveal a certified tip to some replicas only. For the same reason, a replica that abstains from voting on a block because one of its tips is stale broadcasts the corresponding PoA to all replicas, once per tip and view. Otherwise a correct replica that is the only one to hold the tip would abstain from every block of a faulty leader that omits it, while the other replicas would keep certifying these blocks, and it would never vote, hence never commit, again in this view. With the broadcast, every correct replica learns the tip, forwards it to the leader, and abstains in turn 2Δ2\Delta later, so the leader must reference the tip or lose every correct vote. A correct leader never triggers this broadcast. The freshness check never rejects a correct leader. A PoA that a voter sent more than 2Δ2\Delta before receiving a proposal reached the leader within Δ\Delta, hence before the leader sent this proposal, which took at most Δ\Delta to arrive. A leader cannot omit a certified tip for long. Once a correct replica votes for a block that omits a tip held by all correct replicas, they all receive this block within Δ\Delta and have sent the PoA to the leader by then. No correct replica votes for a block that still omits the tip if it receives this block more than 3Δ3\Delta after that vote, so no such block is certified.

Relation to Sync HotStuff. These checks only make a correct replica abstain from proposals that Sync HotStuff would let it vote for. They never make it vote for a proposal that Sync HotStuff rejects, so Pearl inherits the safety of Sync HotStuff [36]. It does not inherit its liveness, because a replica that abstained from the proposals of a correct leader would eventually blame it. The checks, however, accept every proposal that a correct leader makes by the rules above, at every correct replica. A correct leader references every certified tip that reaches it before it proposes, and a PoA that a voter sent more than 2Δ2\Delta before receiving the proposal reached the leader in time. A correct leader’s own timers likewise bound those of the voters within Δ\Delta. No correct replica therefore blames a correct leader, the view of a correct leader never ends, and a view that never ends keeps committing blocks, whether its leader is correct or not. Our proofs take the commit rule and the view-change rules of Sync HotStuff as given.

Lane delinquency. Pearl-BOF must also be able to conclude that a lane will not deliver a Car that its enclave has announced (§VII-A). To do so, a block may carry delinquency claims ⟨j,c⟩\langle j,c\rangle, asserting that lane jj has not reached position cc, which check (ii) of the Vote paragraph subjects to the voter’s own timer. A claim names the lowest c^j(t)\hat{c}_j(t) (§VII-A) of a pending transaction that lane jj’s committed prefix has not reached. A voter also abstains from a block that carries neither this claim nor a tip of lane jj at this position or beyond, if it armed its timer of duration D=5ΔD=5\Delta for the claim more than D+4ΔD+4\Delta before it received the block ((13), so that a leader cannot ignore a delinquent lane. This obligation ends once a committed claim names lane jj. It never rejects a correct leader, which arms its own timer at most Δ\Delta after the voter and thus proposes such a block more than 2Δ2\Delta after that timer

expired, when it carries the claim or references the Car. A block certificate carries f+1f+1 votes, hence a correct one, so a committed claim is always backed by a correct replica that has waited long enough; and because the claim is committed, all correct replicas act on the same claims. A claim that no correct replica supports gathers no vote. Check (ii) of the Vote paragraph never delays a correct replica’s vote on a correct leader’s proposal (§VII-A), so Pearl keeps Sync HotStuff’s view-change procedure unchanged.

View changes. Replicas leave a view when the leader equivocates or stalls. Pearl follows the view-change rules of Sync HotStuff unchanged. A replica broadcasts a blame message for view vv if fewer than pp proposals have triggered its vote within (2p+4)Δ(2p+4)\Delta in this view, where pp is a parameter of the protocol, or if it detects that the leader equivocates, in which case it attaches the two conflicting proposals. A replica that gathers f+1f+1 blame messages for view vv broadcasts them, stops voting in view vv, and aborts its commit timers of this view. It then waits 2Δ2\Delta, locks on the highest certified block that it knows, sends this block and its certificate to the leader of view v+1v+1, and enters view v+1v+1. The new leader waits 2Δ2\Delta after entering the view and proposes a block that extends the highest certified block it has received. A replica forwards this proposal and votes for it if the certified block it extends ranks at least as high as its own lock, after which the steady state resumes. A new leader builds its proposals like any other leader. Its tip cut references the certified lane tips that it holds, and in Pearl-BOF it carries the delinquency claims that its own timers allow. Nothing is inherited from the previous leader. In particular, a PoA that a replica forwarded to the previous leader is forwarded again to the new one, on the first of its proposals that omits the tip.

Pearl-OL: Ordering Linearizability

In Pearl-OL, the ordering indicator that a TEE attaches to a transaction is its host’s clock reading when the transaction reaches the enclave, which the enclave attests and checks to exceed the last timestamp it signed. Every final ordering key falls within the range of its correct timestamps.

From Timestamps to Ordering Keys

A. From Timestamps to Ordering Keys.

Local ordering key. Once its 2Δ2\Delta collection window for a transaction tt has closed, replica rr forwards the timestamps it collected for tt to its TEE. The TEE verifies that they are signed for tt by at least f+1f+1 distinct enclaves, selects the (f+1)(f+1)-th smallest timestamp, and certifies the selected value. We call this value the local ordering key Kr(t)K_r(t) of tt at replica rr. While local ordering keys eliminate deflation attacks, where faulty replicas give low timestamps to a transaction, a faulty replica can still inflate its own local ordering key by withholding some ordering indicators from its TEE. Pearl-OL therefore computes final ordering keys from several local ordering keys.

Final ordering key. Once a replica has obtained a local ordering key for a transaction, it inserts the transaction along with the local ordering key in a Car it generates and disseminates, so that it is eventually committed by the consensus protocol. Since

Algorithm 2 Pearl consensus layer (steady state): block proposal and validation

  1. procedure RUNVIEW(viewview) ▷ at the leader

  2. tipcut←⟨tip1,…,tipn⟩tipcut \leftarrow\langle tip_1,\ldots,tip_n\rangle ▷ latest certified lane tips

  3. claims←{⟨j,c⟩:lane j delinquent at c}claims \leftarrow\{\langle j,c\rangle: lane\ j\ delinquent\ at\ c\} ▷ BOF only

  4. block←TEE.SignBlock⁡(tipcut,claims)block \leftarrow\operatorname{TEE.SignBlock}(tipcut,claims)

  5. Broadcast⁡(PROPOSE⁡,block)\operatorname{Broadcast}(\operatorname{PROPOSE},block)

  6. end procedure

  7. procedure ONRECEIVEPROPOSE(blockblock) ▷ at every replica

  8. if ¬ValidTipCut⁡(block.tipcut)\neg\operatorname{ValidTipCut}(block.tipcut) then

  9. BroadcastStaleTips⁡(block.tipcut)\operatorname{BroadcastStaleTips}(block.tipcut) ▷ PoAs, to all replicas

  10. return ▷ invalid PoA, lane regression, or stale tip

  11. end if

  12. ForwardOmittedTips⁡(block.tipcut)\operatorname{ForwardOmittedTips}(block.tipcut) ▷ PoAs, to the leader

  13. if some timer ⟨j,c⟩\langle j,c\rangle was armed more than D+4ΔD+4\Delta ago, no committed claim names lane jj, and block has neither the claim ⟨j,c⟩\langle j,c\rangle nor a tip of lane jj at position ≥c\ge c then return ▷ BOF only

  14. wait until the delinquency timer of every claim of blockblock has expired ▷ BOF only

  15. Broadcast⁡(PROPOSE⁡,block)\operatorname{Broadcast}(\operatorname{PROPOSE},block) ▷ Proposal forwarding

  16. Broadcast⁡(VOTE⁡,block)\operatorname{Broadcast}(\operatorname{VOTE},block)

  17. StartCommitTimer⁡(block,2Δ)\operatorname{StartCommitTimer}(block,2\Delta)

  18. end procedure

  19. procedure ONCOMMITTIMEREXPIRY(blockblock)

  20. if leader equivocation detected or view left then

  21. return ▷ Sync HotStuff’s commit rule

  22. end if

  23. UpdateOrderingState⁡(block and its ancestors)\operatorname{UpdateOrderingState}(block\ \text{and its ancestors})

  24. ExecuteEligibleTransactions⁡()\operatorname{ExecuteEligibleTransactions}() ▷ see §VI or §VII

  25. end procedure

at most ff replicas are faulty, at most ff local ordering keys may be inflated. The final ordering key of a transaction tt is the minimum over the first f+1f+1 local ordering keys for tt that are committed: K(t)=min⁡r∈Sf+1(t)Kr(t)K(t)=\min_{r\in S_{f+1}(t)}K_r(t), where Sf+1(t)S_{f+1}(t) is the set of replicas whose local ordering keys for tt are committed first (decided by block height, then by replica identifier, then by position within the block). By Lemma 5, this is the key that Lemma 3 requires.

Lemma 5 (Key Range). For every transaction tt, the final ordering key satisfies min⁡c∈CTc(t)≤K(t)≤max⁡c∈CTc(t)\min_{c\in C}T_c(t)\le K(t)\le\max_{c\in C}T_c(t), where CC is the set of correct replicas.

Proof. Lower bound (deflation protection). Every local ordering key, including one certified for a faulty replica, is the (f+1)(f+1)-th smallest element of a set of genuine TEE attestations: a TEE produces exactly one signed timestamp per transaction (§V-A), so a faulty host cannot forge low timestamps or present different ones to different replicas; it can only withhold attestations, which never decreases the (f+1)(f+1)-th smallest of the submitted set. Among the f+1f+1 smallest attestations submitted to a TEE, at least one originates from a correct replica, since at most ff replicas are faulty. The (f+1)(f+1)-th smallest submitted timestamp is therefore at least that correct timestamp, so Kr(t)≥min⁡c∈CTc(t)K_r(t)\ge\min_{c\in C}T_c(t) for every replica rr, and the minimum over the keys of Sf+1(t)S_{f+1}(t) preserves this bound.

Upper bound (inflation protection). The set Sf+1(t)S_{f+1}(t) contains f+1f+1 distinct replicas, so at least one of them, say r∗r^*, is correct. A correct replica computes its local ordering key only once its 2Δ2\Delta collection window has closed (§V-B), by which time it has collected the attestations of all f+1f+1 correct replicas. A set that contains all f+1f+1 correct timestamps has its (f+1)(f+1)-th smallest element at most the largest of them, so Kr∗(t)≤max⁡c∈CTc(t)K_{r^*}(t)\le\max_{c\in C}T_c(t), and taking the minimum gives K(t)≤Kr∗(t)≤max⁡c∈CTc(t)K(t)\le K_{r^*}(t)\le\max_{c\in C}T_c(t).

Execution Threshold and Finality

Computing K(t)K(t) is necessary but not sufficient to execute a transaction. A replica must also ensure that no transaction whose key is not yet computed can be ordered before it. Pearl-OL obtains this guarantee with an execution threshold τ\tau: a lower bound, computable from the committed Cars alone, on the smallest final ordering key that any transaction whose key is not yet fixed might still obtain.

The threshold is read off the completion frontiers of §V-B. Let GjG_j be the largest frontier sealed into a committed Car of lane jj; like every quantity in this subsection except the issued timestamps themselves, it is a function of the committed prefix of Cars, and it grows as further Cars commit. An enclave never advances its frontier past a transaction whose key it has withheld, nor past the largest indicator it has issued (§V-B). Consequently, a transaction that jj attested at or below GjG_j already has its key in a committed Car, and one that jj has not yet attested will, by enclave monotonicity, receive an indicator larger than GjG_j. No transaction can therefore sit below a committed frontier and still be waiting to appear.

For a transaction tt and a replica jj, define

Tj(t)={Gj(i−1)if j first published Kj(t) in Car i,Gjotherwise.T_j(t)= \begin{cases} G_j^{(i-1)} & \text{if }j\text{ first published }K_j(t)\text{ in Car }i,\\ G_j & \text{otherwise.} \end{cases}

where Gj(i−1)G_j^{(i-1)} is the frontier sealed into Car i−1i-1 of lane jj, and Car ii is the first committed Car of lane jj that carries Kj(t)K_j(t). Any later Car that repeated the key could carry a frontier above Tj(t)T_j(t). Let K‾(t)\overline{K}(t) denote the (f+1)(f+1)-th smallest of T1(t),…,Tn(t)T_1(t),\ldots,T_n(t), and let U\mathcal{U} be the set of transactions that appear in the committed Cars with fewer than f+1f+1 local ordering keys. A transaction absent from the committed Cars has Tj(t)=GjT_j(t)=G_j for every jj, so the single term G(f+1)G^{(f+1)}, the (f+1)(f+1)-th smallest of G1,…,GnG_1,\ldots,G_n, accounts for all of those at once. The threshold is

τ=min⁡(G(f+1), min⁡t∈UK‾(t)).(1)\tau=\min\left(G^{(f+1)},\ \min_{t\in\mathcal{U}}\overline{K}(t)\right). \tag*{(1)}

A transaction is eligible for execution as soon as its final ordering key has been fixed by f+1f+1 committed local ordering keys and K(t)<τK(t)<\tau. Transactions whose key reaches τ\tau wait for a later block. Eligible transactions are executed by increasing final ordering key, and transactions with equal keys by increasing transaction digest. Lemma 6 in fact places every unfixed key strictly above τ\tau. The strict inequality only concerns transactions whose key is fixed and equals τ\tau, which wait for a later block.

Lemma 6 (Execution Threshold Safety). At any point of the execution, with τ\tau evaluated on the prefix of Cars committed at that point, no transaction whose final ordering key is not yet fixed can ever obtain a final ordering key smaller than τ\tau, nor can any replica ever certify for it a local ordering key that is not above τ\tau.

Proof. Let t′t' be a transaction whose final ordering key is not yet fixed, and let P(t′)P(t') be the (f+1)(f+1)-th smallest of all timestamps ever issued for t′t', including those issued after the evaluation point. At least f+1f+1 correct timestamps eventually exist. Every local ordering key for t′t', whenever it is certified, is the (f+1)(f+1)-th smallest of a subset of these timestamps, so the fact above gives Kr(t′)≥P(t′)K_r(t') \ge P(t') for every replica rr, hence K(t′)≥P(t′)K(t') \ge P(t').

Consider a replica jj that ever issues a timestamp Tj(t′)T_j(t'). If jj published Kj(t′)K_j(t') in Car ii of the committed prefix, then t′t'’s key was absent from Car i−1i-1, so by the frontier’s definition Tj(t′)>Gj(i−1)=Tj(t′)T_j(t') > G_j^{(i-1)} = T_j(t'). If jj attested t′t' but published no key for it in any committed Car, the same reasoning against the latest committed Car of its lane gives Tj(t′)>Gj=Tj(t′)T_j(t') > G_j = T_j(t'). If jj has not attested t′t' by the evaluation point, the indicator it later issues exceeds every indicator it issued before, and its frontier never exceeds its largest issued indicator (§V-B), so again Tj(t′)>Gj=Tj(t′)T_j(t') > G_j = T_j(t'). Every issued timestamp thus exceeds its replica’s entry of T(t′)T(t'), and replicas that never issue a timestamp for t′t' only remove elements from the comparison, so the fact above gives P(t′)≥K(t′)P(t') \ge K(t').

It remains to bound K(t′)K(t'). If t′t' appears in the committed Cars, it lies in UU, because its key is unfixed, and K(t′)≥τK(t') \ge\tau by Eq. (1). If it does not, then no replica has published a key for t′t', so Tj(t′)=GjT_j(t') = G_j at every jj and K(t′)=G(f+1)≥τK(t') = G^{(f+1)} \ge\tau. In both cases K(t′)≥P(t′)>K(t′)≥τK(t') \ge P(t') > K(t') \ge\tau, and the same holds for every local ordering key Kr(t′)K_r(t'). □

Correctness

Theorem 7. Under synchrony, Pearl-OL ensures ordering linearizability (Definition 1) with 2f+12f+1 TEE-equipped replicas.

Proof. Ordering Linearizability. We first argue that the order in which Pearl-OL executes transactions is the order of increasing final ordering keys. A transaction is executed only once its key has been fixed by f+1f+1 committed local ordering keys and lies below the execution threshold, and by Lemma 6 no transaction whose key is still unfixed can ever obtain a key below that threshold. The realized execution order therefore coincides with the order by increasing K(⋅)K(\cdot). By Lemma 5, every final ordering key falls within the range of its transaction’s correct timestamps, so Lemma 3 applies and this order implements ordering linearizability. It remains to show that t1t_1 is not left behind when t2t_2 is executed, for t1t_1 and t2t_2 as in Definition 1. Some correct replica eventually closes its collection window for t1t_1 and certifies a local ordering key at most max⁡c∈CTc(t1)\max_{c\in C} T_c(t_1) (§V-B), which is below K(t2)K(t_2) and hence below the threshold τ\tau under which t2t_2 is executed. By Lemma 6, the key of t1t_1 is then already fixed at that point. Since K(t1)<K(t2)<τK(t_1) < K(t_2) < \tau, t1t_1 is executed in the same step or earlier, before t2t_2.

Finality. The same argument makes execution irrevocable: once the transactions with K(t)<τK(t) < \tau are executed, Lemma 6 guarantees that no later transaction can acquire a final ordering key that requires insertion before this executed prefix.

Agreement. Correct replicas commit the same blocks by the safety of Sync HotStuff, and apply the same deterministic rules.

Liveness. Every correct client’s transaction is eventually disseminated, its collection window closes, and its local ordering key is committed. K(t)K(t) is fixed when f+1f+1 local ordering keys are committed. The same holds for a transaction that only a faulty replica disseminated. Its Car was acknowledged by a correct replica, which first obtained its body and echoed it (§V-B), so all correct replicas attest it, close their collection window and publish a local ordering key. The correct replicas keep sealing Cars, every correct replica holds the PoA of each of these Cars within 4Δ4\Delta of its seal, and the freshness rule (§V-C) then keeps any leader from omitting it, so every Car of a correct lane is eventually committed. Since each correct enclave keeps issuing indicators, for client transactions or, when traffic pauses, for the heartbeat transactions of §V-B, the completion frontiers GjG_j of the correct replicas grow without bound. Each correct lane jj thus has a Car iji_j from which its frontiers exceed K(t)K(t), because frontiers never decrease (§V-B). Eventually Gj>K(t)G_j > K(t) at the n−fn-f correct lanes, so G(f+1)>K(t)G^{(f+1)} > K(t). Under load, however, new transactions keep entering UU, so UU never becomes empty and the second term of Eq. (1) must also exceed K(t)K(t). Consider t′∈Ut' \in U and a correct lane jj. If jj has not published Kj(t′)K_j(t'), then Tj(t′)=Gj>K(t)T_j(t') = G_j > K(t). If it first published it in a Car after iji_j, then Tj(t′)T_j(t') is the frontier of a Car at or after iji_j and also exceeds K(t)K(t). Only the finitely many transactions whose key a correct lane published up to Car iji_j remain, and each of them leaves UU for good once its key is fixed. From then on Tj(t′)>K(t)T_j(t') > K(t) at every correct lane, hence K(t′)>K(t)K(t') > K(t) for every t′∈Ut' \in U, so K(t)<τK(t) < \tau and tt becomes eligible for execution. □

Pearl-BOF: γ-Batch-Order Fairness

In Pearl-BOF, the ordering indicator is the value of a counter that the enclave increments at every attestation, so the sequence numbers sr(⋅)s_r(\cdot) that replica rr’s TEE issues reveal the order in which rr received transactions. Lemma 4 shows that with n>2γf2γ−1n > \frac{2\gamma f}{2\gamma-1}, tat_a can be ordered no later than tbt_b whenever at least γ(n−f)\gamma(n-f) of the counted reports place tat_a first, over a set of reports that includes those of every correct replica.

Attestations, Settlement, and Eligibility

In Pearl-BOF, transactions appear in Cars in the order they have been observed by a TEE. It is therefore unnecessary to include ordering indicators in Cars. Instead, replicas obtain a single signature on a Car from their TEE, which verifies that the transactions appear in it according to the order it observed them. A Car committed at position ii of lane rr commits every earlier Car of that lane, so the committed Cars of lane rr hold every transaction rr sequenced at or before tt, and no transaction can later appear and claim a position before tt in rr’s local order.

Settlement. Let cr(t)c_r(t) be the position of the Car of lane rr that contains tt (§V-B). Lane rr covers tt once the committed prefix of that lane contains tt and one of its committed Cars carries a reception frontier with wr≥cr(t)w_r \ge c_r(t). Let MrtM_r^t be the announcement vector of the first such Car. Let Cf+1(t)C_{f+1}(t) be the first f+1f+1 lanes that cover tt, ordered by block height, then the replica identifier, then position within the block, and let c^j(t)=max⁡r∈Cf+1(t)Mr[j]\hat{c}_j(t)=\max_{r\in C_{f+1}(t)}M^r[j]. At least one lane of Cf+1(t)C_{f+1}(t) is correct, and a correct rr seals Mr[j]≥cj(t)M_r[j]\ge c_j(t) for every correct jj (§V-B), so c^j(t)≥cj(t)\hat{c}_j(t)\ge c_j(t) at every correct replica jj: a faulty lane may inflate the maximum, but no coalition of them can pull it below what a correct lane has sealed.

Lane jj is settled for tt once the committed prefix of lane jj has reached position c^j(t)\hat{c}_j(t), or once any committed delinquency claim names lane jj. In the first case, either tt appears in the committed Cars of lane jj, which fixes sj(t)s_j(t), or it does not, and jj is faulty. In the second case, a committed delinquency claim implies that a correct replica voted on it, and thus jj is faulty. A lane named by a committed claim contributes no ordering report thereafter. The other lanes are counted. A transaction is eligible once every lane is settled for it.

Release across execution steps. Eligibility is decided per transaction, so two transactions bound by an edge may become eligible in different blocks. For instance, if every correct replica receives tat_a before tbt_b and the ff faulty lanes include tbt_b but not tat_a, then tbt_b is covered by f+1f+1 lanes and may be eligible and ordered before tat_a is even covered. Pearl-BOF therefore orders an eligible transaction only once it is released, i.e., once the transactions it must wait for are eligible too. Let θ=⌈γ(n−f)⌉\theta=\lceil\gamma(n-f)\rceil be the edge threshold of §VII-B. A transaction vv blocks an eligible uu if vv precedes uu in at least θ\theta counted lanes. Waiting for all blockers, and for their blockers in turn, would not be live, as such chains grow without bound under continuous load. The chain is thus cut where tt is ahead of vv, for v≠tv\ne t, i.e., where at least θ\theta counted lanes have committed tt with vv not before it, which can be decided even before vv is committed. The closure D(t)D(t) of an eligible tt, the set that tt waits for, is the smallest set that contains tt and, for every eligible u∈D(t)u\in D(t), each unexecuted blocker vv of uu that tt is not ahead of. Once every transaction of D(t)D(t) is eligible, the unexecuted ones are released, and the step orders the released transactions. A blocker left out of D(t)D(t) is ordered later, but lies on a cycle with the transaction it blocks (Lemma 9), i.e., in the same batch. Like eligibility, release is a function of the committed prefix alone, so all correct replicas agree on it.

Suspicion and the delinquency timer. Let c=c^j(t)c=\hat{c}_j(t) and D=2X+3Δ=5ΔD=2X+3\Delta=5\Delta. A replica that has committed the block that fixes cc and has not received a certified Car of lane jj at position cc or beyond within DD broadcasts a SUSPECT message for {j,c}\{j,c\}. This message carries the announcement, signed by jj’s enclave, that sets cc, which proves that this enclave has opened Car cc. A replica that receives a valid SUSPECT message for the first time relays it and arms its delinquency timer for {j,c}\{j,c\}, which also lasts DD. Correct replicas thus arm their timers within Δ\Delta of one another, whenever they commit. A replica that already holds a certified Car of lane jj at position cc or beyond, or that receives one before its timer expires, cancels its timer and broadcasts the corresponding POA. A Car received at the very instant the timer expires counts as received in time, since the budget below has no slack. Otherwise its timer expires and it votes for the claim (check (ii) of the Vote paragraph of §V-C). A leader proposes {j,c}\{j,c\} once 2Δ2\Delta have elapsed since its own timer expired, if it still holds no such Car. It references the Car in its tip cut otherwise. When a correct leader proposes a claim, the timers of all correct replicas have expired and none was cancelled, since the PoA would have reached the leader within these 2Δ2\Delta. Correct replicas therefore vote for it without waiting. The budget follows the path a correct lane still has to travel: a correct jj has already opened Car c^j(t)\hat{c}_j(t) when the timer is armed, seals it within XX, collects its f+1f+1 acknowledgments 2Δ2\Delta later, carries the resulting PoA in its next seal at most XX after that, and delivers it one Δ\Delta afterwards. No correct replica’s timer can therefore expire on a correct lane, whatever the leaders do, so a claim against a correct lane never gathers the correct vote that its certificate requires.

Dependency Graph Construction

Replicas build a dependency graph G=(V,E)G=(V,E) whose vertices are the released transactions and whose edges encode pairwise ordering decisions. For each pair ta,tb∈Tt_a,t_b\in T with ta≠tbt_a\ne t_b, let R\mathcal{R} be the set of counted lanes (§VII-A) whose committed Cars contain both transactions when the pair is released. A faulty lane may commit a transaction after it was settled for it. Whether R\mathcal{R} includes such a lane is immaterial, since Lemma 8 holds for any R\mathcal{R} that contains the correct lanes. Both transactions being eligible, every lane is settled for both, so R\mathcal{R} contains every correct replica (§VII-A) and ∣R∣≥n−f|\mathcal{R}|\ge n-f. Let ka≺locb=∣{R∈R:sR(ta)<sR(tb)}∣k_{a\prec_{\mathrm{loc}}b}=|\{R\in\mathcal{R}:s_R(t_a)<s_R(t_b)\}| be the number of replicas of R\mathcal{R} that received tat_a first, and let kb≺loca=∣R∣−ka≺locbk_{b\prec_{\mathrm{loc}}a}=|\mathcal{R}|-k_{a\prec_{\mathrm{loc}}b} be the complementary count. With the edge threshold θ=⌈γ(n−f)⌉\theta=\lceil\gamma(n-f)\rceil, which mirrors the quorum of Lemma 4, the edge rule is

if ka≺locb≥θ, add ta→tb;if kb≺loca≥θ, add tb→ta.(2)\begin{aligned} &\text{if } k_{a\prec_{\mathrm{loc}}b}\ge\theta,\text{ add }t_a\to t_b;\\ &\text{if } k_{b\prec_{\mathrm{loc}}a}\ge\theta,\text{ add }t_b\to t_a. \tag*{(2)} \end{aligned}

If neither count reaches θ\theta, no edge is added and the relative placement of the two transactions is left to the topological order of §VII-C (i.e., they might not be batched together). By Lemma 8 this happens only for pairs on which fewer than γ(n−f)\gamma(n-f) correct replicas agree either way. Note that, when γ=1\gamma=1 and n=2f+1n=2f+1, the rule requires f+1f+1 concurring attestations out of the up to 2f+12f+1 that R\mathcal{R} may contain.

Lemma 8 (Edge direction correctness). In a synchronous network with n>2γf2γ−1n>\frac{2\gamma f}{2\gamma-1} replicas, at most one of the two edges of rule (2) is added for a given pair. If at least γ(n−f)\gamma(n-f) correct replicas receive tat_a before tbt_b, then that edge is ta→tbt_a\to t_b, and every edge ta→tbt_a\to t_b that the rule adds is supported by at least θ−f\theta-f correct replicas that received tat_a before tbt_b.

Proof. No wrong edge. The replicas of R\mathcal{R} reporting tb≺loctat_b\prec_{\mathrm{loc}}t_a are at most (1−γ)(n−f)(1-\gamma)(n-f) correct replicas that received tbt_b first and the ff faulty ones. The proof of Lemma 4 shows that n>2γf2γ−1n>\frac{2\gamma f}{2\gamma-1} implies (1−γ)(n−f)+f<γ(n−f)≤θ(1-\gamma)(n-f)+f<\gamma(n-f)\le\theta, so kb≺loca<θk_{b\prec_{\mathrm{loc}}a}<\theta and the edge tb→tat_b\to t_a is not added. This holds whatever attestations R\mathcal{R} happens to contain. Exclusivity follows from counting instead, and for every pair: ka≺locb+kb≺loca=∣R∣≤nk_{a\prec_{\mathrm{loc}}b}+k_{b\prec_{\mathrm{loc}}a}=|\mathcal{R}|\le n, whereas $2\theta\ge2\gamma(n-f)>n by the same replica bound, so the two counts cannot both reach \theta. The mandated edge. By §VII-A, RR contains every correct replica, so the γ(n−f)\gamma(n-f) correct replicas that received tat_a first all contribute to ka≺locbk_{a\prec_{\mathrm{loc}}b}, giving ka≺locb≥θk_{a\prec_{\mathrm{loc}}b} \ge\theta and hence the edge ta→tbt_a \to t_b. Faulty hosts cannot contradict these reports: they may manipulate when they forward a transaction to their TEE, but non-equivocation makes every committed attestation a genuine and unique statement of its enclave’s receive order.

Edge support. The rule adds ta→tbt_a \to t_b only when ka≺locb≥θk_{a\prec_{\mathrm{loc}}b} \ge\theta. At most ff replicas of RR are faulty, so at least θ−f=⌈γ(n−f)⌉−f\theta-f=\lceil\gamma(n-f)\rceil-f of the counted reports come from correct replicas that received tat_a before tbt_b. Since θ>f\theta>f, no coalition of faulty replicas can create an edge on its own.

We show that skipping the blockers tt is ahead of preserves fairness, and that D(t)D(t) is finite, which liveness requires.

Lemma 9 (Cycle closing). Let tt be eligible, u∈D(t)u \in D(t), and vv be a blocker of uu, distinct from tt, that tt is ahead of. Then tt, vv and uu lie on a directed cycle in which each edge is supported by at least θ−f\theta-f correct replicas. Moreover, tt is ahead of every transaction that correct enclaves first attest more than Δ\Delta after they first attest tt.

Proof. By construction of D(t)D(t), a chain of blockers leads from uu to tt. With tt ahead of vv and vv blocking uu, it closes the cycle t→v→u→⋯→tt \to v \to u \to\cdots\to t. Each of these relations holds in θ\theta counted lanes, of which at most ff are faulty, and a correct lane reflects the order in which its replica received the two transactions. For the second claim, every correct enclave attests tt within Δ\Delta of the first one (§V-B), hence before such a transaction. Since tt is eligible, the n−f≥θn-f \ge\theta correct lanes have committed tt, and all of them are counted.

Fair Ordering via SCC Decomposition

Even correct replicas may observe transactions in different orders, which creates Condorcet cycles in GG. We resolve them as Themis [17] does (Alg. 3). The strongly connected components (SCCs) of GG, computed with Tarjan’s algorithm [43], form the batches. The condensation DAG G∗G^*, which has one vertex per SCC and an edge Si→SjS_i \to S_j whenever GG has an edge from a transaction of SiS_i to one of SjS_j, is then topologically sorted to obtain the sequence of batches. Every replica derives the batches independently from the committed prefix, so ties in the sort and the order of transactions within a batch are broken deterministically, by a key that the submitter of a transaction cannot predict.

Unpredictable tie-break. A client can choose the digest of its transaction by varying an unused field, so a digest order would let it place its transaction first in any batch it shares. Ties are therefore broken with a seed derived inside the enclaves. At setup, the enclaves authenticate each other by remote attestation and agree on a key ss that never leaves protected memory. When a committed block BB triggers an execution step, an enclave computes the seed ρB=PRF⁡s(H(B))\rho_B=\operatorname{PRF}_s(H(B)), but only once its host presents a certificate of f+1f+1 votes for BB, which the enclave checks against the replicas’ public keys. The transactions released by BB are then ordered by increasing H(ρB∥id⁡(t))H(\rho_B\mathbin\Vert\operatorname{id}(t)), and a batch is ranked among those it is incomparable with by the smallest such value among its transactions. All enclaves hold the same key and all correct replicas commit the same block, so every replica obtains the same order without exchanging any message. A replica may also take ρB\rho_B from a peer, together with that enclave’s signature on (H(B),ρB)(H(B),\rho_B). Since a certificate requires the vote of a correct replica, a faulty host cannot use its enclave to evaluate the seed of candidate blocks, and every transaction released by BB was submitted before any party could learn ρB\rho_B. A faulty leader obtains a certificate for a second block only by equivocating, which correct replicas detect. If an enclave is compromised and reveals ss, the order remains deterministic and agreed upon, and only this tie-break becomes predictable.

Correctness

Theorem 10. In a synchronous network of n>2γf2γ−1n > \frac{2\gamma f}{2\gamma-1} TEE-equipped replicas, Pearl–BOF guarantees γ\gamma-batch-order fairness (Definition 2).

Proof. Consider transactions tat_a and tbt_b such that at least γ(n−f)\gamma(n-f) correct replicas receive tat_a before tbt_b. By Lemma 8, GG contains edge ta→tbt_a \to t_b and not its reverse. If tat_a and tbt_b belong to two distinct SCCs SiS_i and SjS_j, then G∗G^* contains the edge Si→SjS_i \to S_j, so the topological sort places SiS_i before SjS_j and tat_a is ordered before tbt_b. If they belong to the same SCC, they are placed in the same batch, which satisfies Definition 2 since it only requires tat_a to be ordered no later than tbt_b.

Across execution steps. The argument above applies to two transactions released in the same step. Suppose tbt_b is released in some step. Being eligible, tbt_b has been committed by every correct lane, and that at least γ(n−f)\gamma(n-f), hence at least θ\theta, correct replicas that received tat_a first hold tat_a at an earlier position of their committed lane. No correct lane is named by a committed claim, so tat_a blocks tbt_b. Let D(t)D(t) be a closure with which tbt_b is released. If tat_a has already been executed, it is ordered before tbt_b. If it is released in the same step, the argument above applies. Otherwise tt is ahead of tat_a, with ta≠tt_a \ne t since t∈D(t)t \in D(t) is released in this step, and by Lemma 9 tat_a and tbt_b lie on a cycle whose edges are each supported by θ−f\theta-f correct replicas, i.e., in the same batch.

Batch minimality. Alg. 3 places two transactions in the same batch only when they lie in the same SCC of GG. By Lemma 8, every edge of the cycle that carries them is supported by at least θ−f\theta-f correct replicas, as is every edge of the cycles of Lemma 9, which join batches across steps. Pearl-BOF therefore satisfies batch minimality at support q=⌈γ(n−f)⌉−fq = \lceil\gamma(n-f)\rceil-f, which is n−2fn-2f when γ=1\gamma= 1. Correct replicas commit the same blocks by the safety of Sync HotStuff, hence observe the same reception frontiers and the same delinquency claims, derive the same eligible and released sets (§VII-A) and the same attestations. TEE non-equivocation makes these attestations unique, so the deterministic rules of Alg. 3 yield the same batch sequence.

Liveness. Every transaction is eventually covered by f+1f+1 lanes. Every Car of a correct lane is eventually committed, as in Pearl-OL, and a correct lane seals a frontier wr≥cr(t)w_r \ge c_r(t) once its collection window for tt has closed, so the n−f≥f+1n-f \ge f+1 correct lanes cover tt. Every lane is then eventually settled for every transaction. The argument does not rely on a change of leader, since a faulty leader that keeps committing blocks is never replaced. Let c=c^j(t)c = \hat{c}_j(t) and distinguish two cases. If some correct replica arms its timer for ⟨j,c⟩\langle j,c\rangle, it relays the SUSPECT message and every correct replica arms its own within Δ\Delta. Every block that a correct replica receives more than D+4ΔD+4\Delta after arming carries the claim or a tip of lane jj at cc or beyond, or gathers no correct vote. Blocks keep being committed, so the claim is committed or the committed prefix reaches cc. Otherwise no correct replica ever arms its timer. Each of them then holds a certified Car at cc or beyond within DD of committing the block that fixes cc, and the freshness rule (§V-C) keeps any leader from omitting it, so the committed prefix reaches cc. For a correct lane no claim is ever committed, since no correct timer expires on it (§VII-A), so its committed prefix reaches cc in both cases. Both cases are bounded in time rather than in views. In the first, every block that a correct replica receives more than D+5ΔD+5\Delta after the first correct replica armed its timer carries the claim or the tip. In the second, once a correct replica has voted for a block that omits the Car, no correct replica votes for a block that still omits it and that it receives more than 3Δ3\Delta after that vote. Lane jj is therefore settled by the first block committed after these delays. Thus, the eligible set grows. Let tt be eligible. Every other transaction of D(t)D(t) blocks one of its members, hence precedes it in θ>f\theta> f lanes, one of them correct, and tt is not ahead of it. By Lemma 9, correct enclaves first attest it at at most Δ\Delta after tt. Correct enclaves attest finitely many transactions in a bounded interval, so D(t)D(t) is finite. More precisely, D(t)D(t) may change from step to step, but it stays within the finite set of transactions that a correct enclave first attests at most Δ\Delta after tt. Each of these transactions is committed and, by the same argument, eventually eligible, and eligibility is never lost. From the step at which they are all eligible, tt is released, so every committed transaction is eventually ordered.

Performance Evaluation

Artifact. Our C++ implementations of Pearl-OL and Pearl-BOF, built on ResilientDB [44], are public together with raw results and plotting scripts.4 We use Intel SGX enclaves [45] in simulation mode. Enclaves authenticate and verify TEE evidence with AES-128-CMAC under a shared committee key, which remote attestation would provision.

Testbed and workload. We use the DAS-5 cluster [37], whose machines share a 1 Gbps LAN with sub-millisecond RTT. Each node hosts one replica and one open-loop client that broadcasts 128B transactions to all replicas. Tusk’s client instead sends each transaction to one replica. We set Δ=50\Delta= 50 ms, use a block size of 100 by default, and vary input rates from 500 to 50,000 tx/s. Our prototype applies admission control: each replica sheds the client transactions beyond the rate that keeps its link at 75% of its capacity, so that overload does not push message delays past Δ\Delta. A shed transaction must be resubmitted. Each replica measures the latency of a transaction from its first arrival from a client to its execution, between 15 and 60 s after the start of a run, and we report the median over the replicas. Each configuration is run 5 times.

Systems. We vary f∈{3,5,7}f \in\{3,5,7\} and set γ=1\gamma= 1. Pearl uses n=2f+1n = 2f+1 replicas. Pompē [18] and FairDAG-AB [22] (ordering linearizability), FairDAG-RL (γ\gamma-batch-order fairness) and Tusk [6] (no fairness guarantee) use 3f+13f+1 replicas, and Themis [17] (γ\gamma-batch-order fairness) uses 4f+14f+1.

Scaling and Saturation. Figure 3(a) plots latency against throughput at n=15n = 15. Both modes execute the offered load up to a peak of 40k tx/s at n=7n = 7, 25k (OL) and 26k tx/s (BOF) at n=11n = 11, and 17k and 18k tx/s at n=15n = 15. Pearl-BOF matches Pearl-OL because its graph construction runs off the consensus path. Latency stays between 226 and 302 ms at every load and committee size, close to the 4Δ=2004\Delta= 200 ms imposed by the collection window and the commit timer.

Figure 3. (a) Pearl’s latency against throughput at the largest committee we evaluate, n=15n = 15 (f=7f = 7). (b)–(c) Robustness to silent replicas (f=5f = 5, 500 tx/s input): throughput and latency as the number of silent replicas varies from 0 to 5. (d)–(e) Batch-size sensitivity (f=5f = 5, 500 tx/s input), without faulty replicas. The latency axes of (c) and (e) are logarithmic.

Comparison with Baselines. Figure 4 compares Pearl with the five baselines. We take as the capacity of a system the highest throughput it sustains below 1 s of latency. Pearl reaches 40k, 26k and 18k tx/s at f=3f = 3, 5 and 7. FairDAG-AB reaches 2.0k tx/s at every ff, Pompē 1.7k, 1.2k and 0.95k tx/s, FairDAG-RL 4.0k, 2.0k and 6.0k tx/s, and Themis 1,000 tx/s at f≤5f \le5 and 500 tx/s at f=7f = 7. Pearl thus sustains 10×, 13× and 3× the throughput of the strongest fair-ordering baseline. At low load, Pompē has the lowest latency (120 ms), below Pearl’s 4Δ4\Delta. Tusk, which provides no fair ordering, sustains 18k, 30k and 40k tx/s at 100 ms. Pearl reaches twice its throughput at f=3f = 3, and 84% and 41% of it at f=5f = 5 and 7.

Figure 4. Throughput and latency with f∈{3,5,7}f \in\{3,5,7\} (columns). Panels (a)–(c) show throughput versus injection rate and panels (d)–(f) show latency versus injection rate. All axes are logarithmic.

Robustness to Silent Replicas. Each system runs at the smallest nn that tolerates f=5f = 5 faults (n=11n = 11 for Pearl, 16 for Pompē, FairDAG and Tusk, 21 for Themis) at 500 tx/s, with up to five silent replicas (Figure 3(b)–(Figure 3c)). Pearl’s latency rises by 7–9%, from 294 to 320 ms (OL) and from 288 to 307 ms (BOF), because a silent replica only withholds evidence that the 2Δ2\Delta collection window already waits for. The baselines’ latency is flat, between 115 ms (Pompē) and 940 ms (FairDAG-AB). Tusk loses the transactions sent to silent replicas, and its throughput falls from 470 to 340 tx/s.

Sensitivity to Batch Size. We sweep the batch size over {25,50,100,200,400}\{25,50,100,200,400\} without faults (Figure 3(d)–(Figure 3e)). Pearl’s latency is flat at 300 ms, because a replica seals a Car once it is full or after Δ\Delta. FairDAG-AB, FairDAG-RL and Themis wait for a full block, so their latency grows from 230 ms to 4.1 s, from 0.6 to 3.6 s, and from 180 ms to 3.2 s. Tusk and Pompē are flat, at 0.85 s and 115 ms.

Related Work

Fair transaction ordering. Pompē [18] introduced ordering linearizability, separating indicator aggregation from consensus and requiring 3f+13f+1 replicas under partial synchrony. AOAB [29] realises the same property with two additional communication rounds. Pearl instead binds indicators to their issuing replicas through TEE attestations and exploits synchrony, achieving ordering linearizability with 2f+12f+1 replicas and no additional rounds. Aequitas [14] introduced receive-order fairness and identified Condorcet cycles as a fundamental obstacle. Themis [17] formalised γ\gamma-batch-order fairness. Compared with Themis, Pearl uses TEE-attested local orders to prevent equivocation, requiring only n>2γf2γ−1n > \frac{2\gamma f}{2\gamma-1} replicas, and uses synchrony instead of additional replicas to compensate for weaker timing assumptions. It also supports ordering linearizability within the same framework. Other approaches optimize orthogonal aspects while retaining 3f+13f+1 replicas and no trusted hardware, including quick order fairness [20], weighted aggregation [40], fairness for conflicting transactions [41], and compact stateless verification [42]. FairDAG-AB/RL [22], Tilikum [23], and Herring [24] integrate fair ordering into 3f+13f+1 DAG pipelines.

Fair ordering with trusted hardware. Fairy [34] uses 3f+13f+1 TEE-equipped nodes to timestamp encrypted transactions, providing input causality but not ordering linearizability. Aion [35] uses 3f+13f+1 TEEs and challenge–response latency estimation to detect delayed transactions, relying on trusted clocks and stable network delays. In contrast, Pearl requires neither trusted clocks nor latency estimation, and uses the known synchronous bound Δ\Delta.

TEE-assisted BFT. A2M [46] and TrInc [47] showed that trusted append-only state can prevent equivocation, enabling 2f+12f+1 replication [30], [31], [48]. Subsequent work addresses responsiveness [32], trusted-component usage across view changes [33], rollback attacks [39], and asynchronous DAG-BFT [49]. FlexiTrust [50] instead retains 3f+13f+1 replicas to avoid responsiveness and rollback limitations. Trusted-time mechanisms for enclaves [51, 52, 53, 54, 55] are orthogonal. Pearl uses no trusted clock and only requires enclaves to attest monotonically increasing indicators.

Conclusion

We proved that neither ordering linearizability nor γ\gamma-batch-order fairness with minimal batching is achievable with n=2f+1n = 2f+1 replicas in partially synchronous networks, even with TEEs. However, assuming synchrony removes this impossibility because all correct indicators are then collected within bounded time. We designed mechanisms to ensure either ordering linearizability with n=2f+1n = 2f+1 replicas or γ\gamma-batch-order fairness with n>2γf2γ−1n > \frac{2\gamma f}{2\gamma-1} replicas, below the size of prior systems. Our protocol, Pearl, sustains 3–13 times the throughput of the strongest fair-ordering baseline with a latency of 230–300 ms.

Acknowledgment

ChatGPT and Claude were used as AI/LLM-based assistants for text consolidation and refinement, as well as for coding assistance during the preparation of this work. All AI/LLM-generated or suggested content was manually reviewed and checked by the authors, who remain fully responsible for the accuracy, content and final form of the work.

References

References

  1. [1]S. Nakamoto, “Bitcoin: A peer-to-peer electronic cash system,” 2008.
  2. [2]G. Wood, “Ethereum: A secure decentralised generalised transaction ledger,” Ethereum project yellow paper, vol. 151, no. 2014, pp. 1–32, 2014.
  3. [3]M. Castro and B. Liskov, “Practical byzantine fault tolerance,” in Proceedings of the Third USENIX Symposium on Operating Systems Design and Implementation (OSDI), 1999, pp. 173–186.
  4. [4]M. Yin, D. Malkhi, M. K. Reiter, G. G. Gueta, and I. Abraham, “Hotstuff: Bft consensus with linearity and responsiveness,” in Proceedings of the 2019 ACM Symposium on Principles of Distributed Computing, 2019, pp. 347–356.
  5. [5]I. Keidar, E. Kokoris-Kogias, O. Naor, and A. Spiegelman, “All you need is a dag,” in Proceedings of the 2021 ACM Symposium on Principles of Distributed Computing, 2021, pp. 165–175.arxiv.org/abs/2102.08325
  6. [6]G. Danezis, L. Kokoris-Kogias, A. Sonnino, and A. Spiegelman, “Narwhal and tusk: a dag-based mempool and efficient bft consensus,” in Proceedings of the Seventeenth European Conference on Computer Systems, 2022, pp. 34–50.
  7. [7]A. Spiegelman, N. Giridharan, A. Sonnino, and L. Kokoris-Kogias, “Bullshark: Dag bft protocols made practical,” in Proceedings of the 2022 ACM SIGSAC Conference on Computer and Communications Security, 2022, pp. 2705–2718.
  8. [8]N. Giridharan, F. Suri-Payer, I. Abraham, L. Alvisi, and N. Crooks, “Autobahn: Seamless high speed BFT,” in Proceedings of the ACM SIGOPS 30th Symposium on Operating Systems Principles, 2024, pp. 1–23.arxiv.org/abs/2401.10369
  9. [9]P. Daian, S. Goldfeder, T. Kell, Y. Li, X. Zhao, I. Bentov, L. Breidenbach, and A. Juels, “Flash boys 2.0: Frontrunning, transaction reordering, and consensus instability in decentralized exchanges,” arXiv preprint arXiv:1902.05234, 2019.
  10. [10]S. Eskandari, S. Moosavi, and J. Clark, “Sok: Transparent dishonesty: front-running attacks on blockchain,” in Financial Cryptography and Data Security: FC 2019 International Workshops, VOTING and WTS, St. Kitts, St. Kitts and Nevis, February 18–22, 2019, Revised Selected Papers 23. Springer, 2020, pp. 170–189.arxiv.org/abs/1902.05164
  11. [11]L. Heimbach and R. Wattenhofer, “Sok: Preventing transaction reordering manipulations in decentralized finance,” in Proceedings of the 4th ACM Conference on Advances in Financial Technologies, 2022, pp. 47–60.DOI
  12. [12]D. Malkhi and P. Szalachowski, “Maximal extractable value (mev) protection on a dag,” arXiv preprint arXiv:2208.00940, 2022.arxiv.org/abs/2208.00940
  13. [13]B. Weintraub, C. F. Torres, C. Nita-Rotaru, and R. State, “A flash (bot) in the pan: measuring maximal extractable value in private pools,” in Proceedings of the 22nd ACM Internet Measurement Conference, 2022, pp. 458–471.
  14. [14]M. Kelkar, F. Zhang, S. Goldfeder, and A. Juels, “Order-fairness for byzantine consensus,” in Advances in Cryptology–CRYPTO 2020: 40th Annual International Cryptology Conference, CRYPTO 2020, Santa Barbara, CA, USA, August 17–21, 2020, Proceedings, Part III 40. Springer, 2020, pp. 451–480.DOI
  15. [15]W. V. Gehrlein, “Condorcet’s paradox,” Theory and decision, vol. 15, no. 2, pp. 161–197, 1983.DOI
  16. [16]M. A. Vafadar and M. Khabbazian, “Condorcet attack against fair transaction ordering,” in 5th Conference on Advances in Financial Technologies, 2023.
  17. [17]M. Kelkar, S. Deb, S. Long, A. Juels, and S. Kannan, “Themis: Fast, strong order-fairness in byzantine consensus,” in Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security, 2023, pp. 475–489.DOI
  18. [18]Y. Zhang, S. Setty, Q. Chen, L. Zhou, and L. Alvisi, “Byzantine ordered consensus without byzantine oligarchy,” in 14th USENIX Symposium on Operating Systems Design and Implementation (OSDI 20), 2020, pp. 633–649.
  19. [19]E. Park, T. Yoon, H. Nam, D. Maram, and M. S. Kang, “On frontrunning risks in batch-order fair systems for blockchains,” in Proceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security, 2025, pp. 918–932.DOI
  20. [20]C. Cachin, J. Mićić, N. Steinhauer, and L. Zanolini, “Quick order fairness,” in International Conference on Financial Cryptography and Data Security. Springer, 2022, pp. 316–333.
  21. [21]M. Raikwar, N. Polyanskiı, and S. Müller, “Fairness notions in dag-based dlts,” in 2023 5th Conference on Blockchain Research & Applications for Innovative Networks and Services (BRAINS). IEEE, 2023, pp. 1–8.
  22. [22]D. Kang, J. Chen, T. T. A. Dinh, and M. Sadoghi, “Fairdag: Consensus fairness over multi-proposer causal design,” Proceedings of the VLDB Endowment, vol. 19, no. 2, pp. 265–278, 2025.arxiv.org/abs/2504.02194
  23. [23]G. Segalini, Y. Çolak oğlu, M. Putnik, and J. Decouchant, “Tilikum: Transaction fair ordering on a dag without weak edges,” arXiv preprint arXiv:2606.27250, 2026.
  24. [24]M. Putnik and J. Decouchant, “Herring: Parallel batch-order fairness on dag-based blockchain consensus,” arXiv preprint arXiv:2605.23648, 2026.
  25. [25]K. Kursawe, “Wendy, the good little fairness widget: Achieving order fairness for blockchains,” in AFT ’20: 2nd ACM Conference on Advances in Financial Technologies, New York, NY, USA, October 21–23, 2020. ACM, 2020, pp. 25–36. [Online]. Available: https://doi.org/10.1145/3419614.3423263
  26. [26]———, “More order fairness,” in Financial Cryptography and Data Security. FC 2021 International Workshops - CoDecFin, DeFi, VOTING, and WTSC, Virtual Event, March 5, 2021, Revised Selected Papers, ser. Lecture Notes in Computer Science, M. Bernhard, A. Bracciali, L. Gudgeon, T. Haines, A. Klages-Mundt, S. Matsuo, D. Perez, M. Sala, and S. Werner, Eds., vol. 12676. Springer, 2021, pp. 191–196. [Online]. Available: https://doi.org/10.1007/978-3-662-63958-0_17
  27. [27]O. Alpos, I. Amores-Sesar, C. Cachin, and M. Yeo, “Eating sandwiches: Modular and lightweight elimination of transaction reordering attacks,” 2023. [Online]. Available: https://arxiv.org/abs/2307.02954
  28. [28]P. Zarbafian and V. Gramoli, “Lyra: Fast and scalable resilience to reordering attacks in blockchains,” in 2023 IEEE International Parallel and Distributed Processing Symposium (IPDPS). IEEE, 2023, pp. 929–939.
  29. [29]V. Gramoli, Z. Lu, Q. Tang, and P. Zarbafian, “Aoab: optimal and fair ordering of financial transactions,” in 2024 54th Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN). IEEE, 2024, pp. 377–388.
  30. [30]G. S. Veronese, M. Correia, A. N. Bessani, L. C. Lung, and P. Verissimo, “Efficient Byzantine fault-tolerance,” IEEE Transactions on Computers, vol. 62, no. 1, pp. 16–30, 2013.
  31. [31]J. Behl, T. Distler, and R. Kapitza, “Hybrids on steroids: SGX-based high performance BFT,” in Proceedings of the 12th European Conference on Computer Systems (EuroSys), 2017, pp. 222–237.DOI
  32. [32]J. Decouchant, D. Kozhaya, R. Rahli, and J. Yu, “DAMYSUS: Stream-lined BFT consensus leveraging trusted components,” in Proceedings of the Seventeenth European Conference on Computer Systems (EuroSys), 2022, pp. 1–16.
  33. [33]V. Rahli, J. Decouchant, D. Kozhaya, and J. Yu, “OneShot: View-adapting streamlined BFT protocols with trusted execution environments,” in Proceedings of the 38th IEEE International Parallel and Distributed Processing Symposium (IPDPS), 2024.
  34. [34]C. Stathakopoulou, S. Rüsch, M. Brandenburger, and M. Vukolić, “Adding fairness to order: Preventing front-running attacks in bft protocols using tees,” in 2021 40th International Symposium on Reliable Distributed Systems (SRDS). IEEE, 2021, pp. 34–45.DOI
  35. [35]P. Zarbafian and V. Gramoli, “Aion: secure transaction ordering using tees,” in European Symposium on Research in Computer Security. Springer, 2023, pp. 332–350.DOI
  36. [36]I. Abraham, D. Malkhi, K. Nayak, L. Ren, and M. Yin, “Sync HotStuff: Simple and practical synchronous state machine replication,” Cryptology ePrint Archive, Paper 2019/270, 2019. [Online]. Available: https://eprint.iacr.org/2019/270
  37. [37]H. Bal, D. Epema, C. De Laat, R. Van Nieuwpoort, J. Romein, F. Seinstra, C. Snoek, and H. Wijssoff, “A medium-scale distributed system for computer science research: Infrastructure for the long term,” Computer, vol. 49, no. 5, pp. 54–63, 2016.
  38. [39]J. Decouchant, D. Kozhaya, V. Rahli, and J. Yu, “Pallas and Aegis: Rollback resilience in TEA-aided blockchain consensus,” in Proceedings of the Network and Distributed System Security Symposium (NDSS), 2026.
  39. [40]W. Chen, Y. Feng, J. Zhang, Z. Cai, H.-N. Dai, and Z. Zheng, “Auncel: Fair Byzantine consensus protocol with high performance,” in IEEE INFOCOM 2024 – IEEE Conference on Computer Communications, 2024.
  40. [41]H. Nagda, S. P. Singhal, M. J. Amiri, and B. T. Loo, “Rashnu: Data-dependent order-fairness,” Proceedings of the VLDB Endowment, vol. 17, no. 9, pp. 2335–2348, 2024.DOI
  41. [42]P. Ren, H. Dong, N. Sohrabi, Z. Tari, and P. Zhang, “Proof-carrying fair ordering: Asymmetric verification for bft via incremental proofs,” arXiv preprint arXiv:2510.14186, 2025.arxiv.org/abs/2510.14186
  42. [43]R. Tarjan, “Depth-first search and linear graph algorithms,” SIAM J. Comput., vol. 1, no. 2, p. 146–160, Jun. 1972. [Online]. Available: https://doi.org/10.1137/0201010
  43. [44]S. Gupta, S. Rahman, J. Hellings, and M. Sadoghi, “ResilientDB: Global scale resilient blockchain fabric,” Proceedings of the VLDB Endowment, vol. 13, no. 6, pp. 868–883, 2020.DOI
  44. [45]V. Costan and S. Devadas, “Intel SGX explained,” Cryptology ePrint Archive, Paper 2016/086, 2016. [Online]. Available: https://eprint.iacr.org/2016/086
  45. [46]B.-G. Chun, P. Maniatis, S. Shenker, and J. Kubiatowicz, “Attested append-only memory: Making adversaries stick to their word,” in Proceedings of the 21st ACM SIGOPS Symposium on Operating Systems Principles (SOSP), 2004, pp. 189–204.
  46. [47]D. Levin, J. R. Douceur, J. R. Lorch, and T. Moscibroda, “TrInc: Small trusted hardware for large distributed systems,” in 6th USENIX Symposium on Networked Systems Design and Implementation (NSDI), 2009, pp. 1–14.
  47. [48]R. Kapitza, J. Behl, C. Cachin, T. Distler, S. Kuhnle, S. V. Mohammadi, W. Schröder-Preikschat, and K. Stengel, “CheapBFT: Resource-efficient Byzantine fault tolerance,” in Proceedings of the 7th ACM European Conference on Computer Systems (EuroSys), 2012, pp. 295–308.
  48. [49]S. Xie, D. Kang, H. Lyu, J. Niu, and M. Sadoghi, “Fides: Secure and scalable asynchronous DAG consensus via trusted components,” Proceedings of the VLDB Endowment, vol. 19, no. 11, pp. 3302–3316, 2026.
  49. [50]S. Gupta, S. Rahnama, S. Pandey, N. Crooks, and M. Sadoghi, “Dissecting BFT consensus: In trusted components we trust!” in Proceedings of the Eighteenth European Conference on Computer Systems (EuroSys), 2023, pp. 521–539.arxiv.org/abs/2202.01354
  50. [51]F. M. Anwar, L. Garcia, X. Han, and M. B. Srivastava, “Securing time in untrusted operating systems with timeseal,” in IEEE Real-Time Systems Symposium, RTSS 2019, Hong Kong, SAR, China, December 3-6, 2019. IEEE, 2019, pp. 80–92. [Online]. Available: https://doi.org/10.1109/RTSS46320.2019.00018
  51. [52]G. P. Fernandez, A. Brito, and C. Fetzer, “Triad: Trusted timestamps in untrusted environments,” in IEEE International Conference on Cloud Computing Technology and Science, CloudCom 2023, Naples, Italy, December 4-6, 2023. IEEE, 2023, pp. 169–176. [Online]. Available: https://doi.org/10.1109/CloudCom59040.2023.00037
  52. [53]A. Nasrullah and F. M. Anwar, “Trusted timing services with timeguard,” in 30th IEEE Real-Time and Embedded Technology and Applications Symposium, RTAS 2024, Hong Kong, May 13–16, 2024. IEEE, 2024, pp. 1–14. [Online]. Available: https://doi.org/10.1109/RTAS61025.2024.00009
  53. [54]G. M. Hamidy, P. Philippaerts, and W. Joosen, “T3e: A practical solution to trusted time in secure enclaves,” in International Conference on Network and System Security. Springer, 2023, pp. 305–326.
  54. [55]A. Nasrullah and F. M. Anwar, “Sok: State of the time: On trustworthiness of digital clocks,” 2025. [Online]. Available: https://arxiv.org/abs/2502.09837

Paper details

vlnc:W_appuuk72
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 2

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

ChatGPT, Claude

View statement
Looking for related papers…
Contents