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 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 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 replicas, and the other uses TEE-maintained relative sequence numbers to guarantee -batch-order fairness when . 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 before a transaction , then is committed before . This property, however, is impossible to achieve in fully asynchronous settings because of Condorcet cycles [15, 16]. -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 ordering indicators per transaction. Subsequent work has explored attacks against fair ordering protocols [16, 19], faster variants of -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 replicas for ordering linearizability, and between and replicas for -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 to 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 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 -batch-order fairness cannot be implemented in partially synchronous networks with only 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 replicas, and another achieving -batch-order fairness with relative local ordering, requiring . 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 -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) | Fairness | Network | Replicas | TEE | Liveness | Technique |
| Pompeí [18], AOAB [29] | Ordering linearizability | Partial synchrony | × | Standard | Timestamp aggregation | |
| Sync. Aequitas [14] | -batch-order fairness | Synchrony | × | Weak | Ordering/dependency graph | |
| Async. Aequitas [14] | -batch-order fairness | Asynchrony | × | Weak | Ordering/dependency graph | |
| Auncel [40] | -batch-order fairness | Partial synchrony | × | Standard | Ordering/dependency graph | |
| Rashnu [41] | Data-dependent order fairness | Partial synchrony | × | Standard | Data-dependent ordering graph | |
| AuTIG [42] | -batch-order fairness | Partial synchrony | × | Standard | Incremental ordering graph + proofs | |
| Themis [17] | -batch-order fairness | Partial synchrony | × | Standard | Relative order + batching | |
| FairDAG-AB [22], Tilikum-OL [23] | Ordering linearizability | Partial synchrony | × | Standard | DAG-based ordering | |
| FairDAG-RL [22], Tilikum-BOF [23] | -batch-order fairness | Partial synchrony | × | Standard | DAG-based ordering | |
| Herring [24] | -batch-order fairness | Partial synchrony | × | Standard | DAG-based ordering | |
| Fairy [34], Aion [35] | Input/time-based | Partial synchrony | ✓ | Standard | TEE-attested timestamps | |
| Pearl-OL (this work) | Ordering linearizability | Synchrony | ✓ | Standard | TEE-attested host timestamps | |
| Pearl-BOF (this work) | -batch-order fairness | Synchrony | ✓ | Standard | TEE-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 replicas running a consensus service for a blockchain. Up to 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 . They respectively require and . 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 -batch-order fairness [14, 17] in systems with replicas, achieving this combination for the first time.
Definition 1 (Ordering Linearizability). For any two transactions and , if every timestamp that a correct replica assigns to is smaller than every timestamp that a correct replica assigns to , then is ordered before .
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 non-TEE replicas by assigning each transaction a final ordering indicator equal to the median of replica timestamps. This guarantees that the final timestamp is both lower- and upper-bounded by timestamps from correct replicas. Differently, -batch-order fairness [14], [17] relies on replicas’ relative transaction orders rather than absolute timestamps.
Definition 2 (-batch-order fairness with minimal batching). For any two transactions and , if at least a fraction of all correct replicas receive before (denoted ), then must be ordered before or in the same batch. Transactions are placed in the same batch only if their preferences form a directed cycle in which each edge is supported by at least correct replicas that receive before . The protocol fixes the batching support , ensuring batch minimality at support . 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 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 replicas, which is the minimum number of replicas required to implement consensus. In this setting, a consensus algorithm should order transactions based on ordering indicators per transaction. Under this constraint, we show that neither ordering linearizability (based on absolute timestamps) nor -batch-order fairness (based on local relative orderings) can be guaranteed, even with TEEs.
Lemma 1. In a partially synchronous system of replicas with up to Byzantine faults, no live ordering rule that decides from only signed absolute-timestamp reports per transaction can guarantee ordering linearizability.
Proof. We consider two scenarios that a protocol collecting absolute timestamps per transaction cannot distinguish, yet that require opposite ordering decisions.
Scenario 1 (Fig. 1). Every correct timestamp of is smaller than every correct timestamp of . Ordering linearizability therefore requires that be ordered before . Meanwhile, the faulty replicas issue timestamps for that exceed all correct timestamps of and timestamps for that exceed all faulty timestamps of . The adversary then arranges for the protocol to collect, for each transaction, the set of highlighted timestamps: one correct timestamp and faulty timestamps for and correct timestamps for . From these collected timestamps, the protocol must, by assumption, decide to remain consistent with ordering linearizability.
Scenario 2 (Fig. 1). Every correct timestamp of is smaller than every correct timestamp of . Ordering linearizability therefore requires that be ordered before . The faulty replicas issue timestamps for that are smaller than all correct timestamps of and timestamps for that are larger than all correct timestamps of . The adversary arranges for the protocol to collect correct timestamps and one faulty timestamp for , and correct timestamps for . Assuming that the collected timestamps are identical to those collected in Scenario 1, the protocol must make the same decision and order before . However, in this case, this decision contradicts ordering linearizability, completing the proof.
Figure 1. Fair ordering impossibility with replicas in partially synchronous networks. (a) Ordering linearizability scenarios. Both scenarios produce the same absolute timestamps per transaction, signed by the same replicas. Purple outlines mark the timestamps used per transaction. (b) -batch-order fairness scenarios. Both scenarios produce the same local-order certificates, where a replica that observes a transaction before a transaction expresses it as .
Lemma 2. In a partially synchronous system of replicas with up to Byzantine faults, no live ordering rule that decides from signed local-order reports guarantees -batch-order fairness with minimal batching, for any .
Proof. In the considered setting, a consensus protocol must order any pair of transactions using only local orderings that contain both and , with . We exhibit two scenarios that cannot be distinguished and that require opposite ordering decisions according to -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 correct replicas receive before . Thus, by -batch-order fairness, the protocol must order no later than . The adversary arranges for the collected local orderings to consist of correct reports where (i.e., appears before ) and one faulty report where . By assumption, the protocol must decide .
Scenario 4 (Fig. 1). All correct replicas receive before . The adversary now arranges for the collected local orderings to consist of faulty reports of and one correct report of . The local relative orderings collected are indistinguishable from those in Scenario 3, so the protocol must make the same decision and order before , which contradicts -batch-order fairness.
Fair Ordering Mechanisms in Synchronous Networks
We now state and prove the mechanisms that implement ordering linearizability and -batch-order fairness with fewer replicas in a synchronous network.
Lemma 3. Let denote the set of correct replicas, and let be the absolute timestamp that correct replica produces for transaction . A system of replicas implements ordering linearizability if it assigns every transaction a final ordering key that falls within the range of its correct timestamps, i.e., , and orders transactions by increasing key.
Proof. Assume that every timestamp that a correct replica produces for is smaller than every timestamp that a correct replica produces for , i.e., . Since both keys fall within the range of their correct timestamps, , and the system, which orders transactions by increasing key, orders before as required by ordering linearizability.
Lemma 4. Let , and let every replica report, for each pair of transactions, the order in which it received them. In a synchronous network of replicas, consider the rule that orders no later than whenever at least of the counted reports state that was received first, where the counted reports include those of all correct replicas. This rule applies to every pair that Definition 2 constrains, and then does not apply to .
Proof. Assume that and consider transactions and such that at least correct replicas receive before , so that Definition 2 requires to be ordered no later than . Because the counted reports include those of every correct replica, these replicas all report , so the rule applies to . It remains to show that it does not
also apply to . Each replica reports one order for the pair, so there are at most reports that support . It is not possible to have such reports, because we would then have , which rearranges to , that is, , which contradicts our assumption. The rule therefore applies to 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.

Figure 2. Steady-state workflow of Pearl (illustrated with and ); is the leader, and time flows from left to right. Here, in Pearl-OL and 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 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 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 replicas. A stable leader proposes a chain of blocks, each carrying a certificate of votes for its predecessor. Replicas forward every proposal and broadcast their votes, and a replica commits a block 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 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 of the identifiers of the transactions it has already attested (Alg. 1, l. 4), where is the hash digest of . If , the TEE avoids processing transaction a second time and returns nothing (Alg. 1, l. 6). Otherwise it inserts into (Alg. 1, l. 7) and produces variant-specific evidence. In Pearl-OL, the enclave accepts a host-provided timestamp only if it exceeds the last timestamp it attested, and returns (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 . In Pearl-BOF, the enclave increments its local sequence number , appends to its open Car , and returns the placement evidence (ll. 14–15). The signed Car later authenticates the resulting sequence order, while the placement signature separately binds 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 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 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 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 has elapsed since its previous seal, whichever comes first. We set , 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 of a lane only if it references the Car at position , 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 (SVI–VII). Each Car carries the 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 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 SVI–VII). Each Car finally carries a frontier, which we define below.
Transaction echoing and ordering-evidence collection. Upon receiving a transaction for the first time, a replica produces variant-specific TEE evidence and retransmits to all other replicas in a dedicated message (Alg. 1, l. 12)3. In Pearl-OL, this message also carries the locally generated timestamp and its TEE signature . In Pearl-BOF, it carries instead the placement announcement , the index of the Car of lane in which the enclave has just placed . This announcement is an unforgable commitment on where appears in ’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 of that replica, and broadcasts its attestation upon reception. This holds whatever the delays between clients and replicas. Consequently, at most after it first receives a transaction , a correct replica holds the attestation of every correct replica for , i.e., at least and up to of them, which is why the collection window of l. 39 lasts . Both variants use this window, at different points of their pipeline. In Pearl-OL, it reduces timestamps[] to a local ordering key (Alg. 1, l. 40) and places 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 (l. 22), the largest indicator that the enclave has issued such that every transaction 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 from the set 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 (l. 23). Its first component is the highest position of lane , 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 , the largest placement announcement that collected from for those transactions, carried with the enclave signature of that certifies it. A correct therefore seals for every correct and every transaction placed at or below : the window of closed after received , by which time ’s announcement for had arrived. A faulty host may hold back or omit entries from , but the signatures prevent it from reporting an index that ’s enclave never opened, and §VII-A tolerates under-reporting by aggregating the frontiers of 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 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 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 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 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 , 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.

Figure 1 (PDF p. 6). Algorithm 1 Pearl’s transaction dissemination and ordering-evidence collection at replica . 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 . Pearl-OL and Pearl-BOF-specific instructions are indicated using OL and BOF, respectively; routine lane-progression checks are omitted.
Global (OL):
timestamps[t]: signed timestamps, one per replicaGlobal (BOF):
placements[t]: signed Car indices, one per replicaGlobal:
lane ← ∅▷ Local sequence of CarsGlobal (inside TEE): ▷ Identifiers already attested
procedure OnFirstReceive
if then ▷ TEE refuses a second attestation
if OL then
▷ host-provided
▷ refused unless exceeds the last attested
timestamps[t].add(T, σOL)BroadcastOLEcho(t, T, σOL)else ▷ BOF
▷ increment and append to Car
placements[t].add(c, σBOF)BroadcastBOFEcho(t, c, σBOF)end if
end if
end procedure
procedure OnCarReady ▷ append to lane
▷ OL only
▷ BOF only
Broadcast(Prop, car)▷ with TEE attestationend procedure
procedure OnReceiveProp
FetchMissingBodies(car)▷ OnFirstReceive on eachStore(car)Send(p, Ack, car)end procedure
procedure OnReceiveOLEcho
OnFirstReceive(t)▷ no effect if already attestedif
TEE.Verify(t,T,σOL)thentimestamps[t].add(T,σOL)end procedure
procedure OnReceiveBOFEcho
OnFirstReceive(t)▷ no effect if already attestedif
TEE.Verify(t,c,σBOF)thenplacements[t].add(c,σBOF)end procedure
procedure AfterCollectionWindow ▷ after first reception of
FinalizeOrderingInfo(t, timestamps[t])▷ OL: local ordering keyAddToCurrentCar(t, K_r(t))▷ OL onlyTEE.RecordAnnouncements(t, placements[t])▷ BOF: advancesend 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 is at least as high as the highest certified tip of lane that the voter sent to the leader more than 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 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 before receiving a proposal reached the leader within , hence before the leader sent this proposal, which took at most 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 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 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 before receiving the proposal reached the leader in time. A correct leader’s own timers likewise bound those of the voters within . 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 , asserting that lane has not reached position , which check (ii) of the Vote paragraph subjects to the voter’s own timer. A claim names the lowest (§VII-A) of a pending transaction that lane ’s committed prefix has not reached. A voter also abstains from a block that carries neither this claim nor a tip of lane at this position or beyond, if it armed its timer of duration for the claim more than before it received the block ((13), so that a leader cannot ignore a delinquent lane. This obligation ends once a committed claim names lane . It never rejects a correct leader, which arms its own timer at most after the voter and thus proposes such a block more than after that timer
expired, when it carries the claim or references the Car. A block certificate carries 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 if fewer than proposals have triggered its vote within in this view, where 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 blame messages for view broadcasts them, stops voting in view , and aborts its commit timers of this view. It then waits , locks on the highest certified block that it knows, sends this block and its certificate to the leader of view , and enters view . The new leader waits 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 collection window for a transaction has closed, replica forwards the timestamps it collected for to its TEE. The TEE verifies that they are signed for by at least distinct enclaves, selects the -th smallest timestamp, and certifies the selected value. We call this value the local ordering key of at replica . 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
procedure RUNVIEW() ▷ at the leader
▷ latest certified lane tips
▷ BOF only
end procedure
procedure ONRECEIVEPROPOSE() ▷ at every replica
if then
▷ PoAs, to all replicas
return ▷ invalid PoA, lane regression, or stale tip
end if
▷ PoAs, to the leader
if some timer was armed more than ago, no committed claim names lane , and block has neither the claim nor a tip of lane at position then return ▷ BOF only
wait until the delinquency timer of every claim of has expired ▷ BOF only
▷ Proposal forwarding
end procedure
procedure ONCOMMITTIMEREXPIRY()
if leader equivocation detected or view left then
return ▷ Sync HotStuff’s commit rule
end if
▷ see §VI or §VII
end procedure
at most replicas are faulty, at most local ordering keys may be inflated. The final ordering key of a transaction is the minimum over the first local ordering keys for that are committed: , where is the set of replicas whose local ordering keys for 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 , the final ordering key satisfies , where is the set of correct replicas.
Proof. Lower bound (deflation protection). Every local ordering key, including one certified for a faulty replica, is the -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 -th smallest of the submitted set. Among the smallest attestations submitted to a TEE, at least one originates from a correct replica, since at most replicas are faulty. The -th smallest submitted timestamp is therefore at least that correct timestamp, so for every replica , and the minimum over the keys of preserves this bound.
Upper bound (inflation protection). The set contains distinct replicas, so at least one of them, say , is correct. A correct replica computes its local ordering key only once its collection window has closed (§V-B), by which time it has collected the attestations of all correct replicas. A set that contains all correct timestamps has its -th smallest element at most the largest of them, so , and taking the minimum gives .
Execution Threshold and Finality
Computing 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 : 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 be the largest frontier sealed into a committed Car of lane ; 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 attested at or below already has its key in a committed Car, and one that has not yet attested will, by enclave monotonicity, receive an indicator larger than . No transaction can therefore sit below a committed frontier and still be waiting to appear.
For a transaction and a replica , define
where is the frontier sealed into Car of lane , and Car is the first committed Car of lane that carries . Any later Car that repeated the key could carry a frontier above . Let denote the -th smallest of , and let be the set of transactions that appear in the committed Cars with fewer than local ordering keys. A transaction absent from the committed Cars has for every , so the single term , the -th smallest of , accounts for all of those at once. The threshold is
A transaction is eligible for execution as soon as its final ordering key has been fixed by committed local ordering keys and . Transactions whose key reaches 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 . The strict inequality only concerns transactions whose key is fixed and equals , which wait for a later block.
Lemma 6 (Execution Threshold Safety). At any point of the execution, with 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 , nor can any replica ever certify for it a local ordering key that is not above .
Proof. Let be a transaction whose final ordering key is not yet fixed, and let be the -th smallest of all timestamps ever issued for , including those issued after the evaluation point. At least correct timestamps eventually exist. Every local ordering key for , whenever it is certified, is the -th smallest of a subset of these timestamps, so the fact above gives for every replica , hence .
Consider a replica that ever issues a timestamp . If published in Car of the committed prefix, then ’s key was absent from Car , so by the frontier’s definition . If attested but published no key for it in any committed Car, the same reasoning against the latest committed Car of its lane gives . If has not attested 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 . Every issued timestamp thus exceeds its replica’s entry of , and replicas that never issue a timestamp for only remove elements from the comparison, so the fact above gives .
It remains to bound . If appears in the committed Cars, it lies in , because its key is unfixed, and by Eq. (1). If it does not, then no replica has published a key for , so at every and . In both cases , and the same holds for every local ordering key . □
Correctness
Theorem 7. Under synchrony, Pearl-OL ensures ordering linearizability (Definition 1) with 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 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 . 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 is not left behind when is executed, for and as in Definition 1. Some correct replica eventually closes its collection window for and certifies a local ordering key at most (§V-B), which is below and hence below the threshold under which is executed. By Lemma 6, the key of is then already fixed at that point. Since , is executed in the same step or earlier, before .
Finality. The same argument makes execution irrevocable: once the transactions with 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. is fixed when 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 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 of the correct replicas grow without bound. Each correct lane thus has a Car from which its frontiers exceed , because frontiers never decrease (§V-B). Eventually at the correct lanes, so . Under load, however, new transactions keep entering , so never becomes empty and the second term of Eq. (1) must also exceed . Consider and a correct lane . If has not published , then . If it first published it in a Car after , then is the frontier of a Car at or after and also exceeds . Only the finitely many transactions whose key a correct lane published up to Car remain, and each of them leaves for good once its key is fixed. From then on at every correct lane, hence for every , so and 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 that replica ’s TEE issues reveal the order in which received transactions. Lemma 4 shows that with , can be ordered no later than whenever at least of the counted reports place 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 of lane commits every earlier Car of that lane, so the committed Cars of lane hold every transaction sequenced at or before , and no transaction can later appear and claim a position before in ’s local order.
Settlement. Let be the position of the Car of lane that contains (§V-B). Lane covers once the committed prefix of that lane contains and one of its committed Cars carries a reception frontier with . Let be the announcement vector of the first such Car. Let be the first lanes that cover , ordered by block height, then the replica identifier, then position within the block, and let . At least one lane of is correct, and a correct seals for every correct (§V-B), so at every correct replica : a faulty lane may inflate the maximum, but no coalition of them can pull it below what a correct lane has sealed.
Lane is settled for once the committed prefix of lane has reached position , or once any committed delinquency claim names lane . In the first case, either appears in the committed Cars of lane , which fixes , or it does not, and is faulty. In the second case, a committed delinquency claim implies that a correct replica voted on it, and thus 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 before and the faulty lanes include but not , then is covered by lanes and may be eligible and ordered before 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 be the edge threshold of §VII-B. A transaction blocks an eligible if precedes in at least 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 is ahead of , for , i.e., where at least counted lanes have committed with not before it, which can be decided even before is committed. The closure of an eligible , the set that waits for, is the smallest set that contains and, for every eligible , each unexecuted blocker of that is not ahead of. Once every transaction of is eligible, the unexecuted ones are released, and the step orders the released transactions. A blocker left out of 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 and . A replica that has committed the block that fixes and has not received a certified Car of lane at position or beyond within broadcasts a SUSPECT message for . This message carries the announcement, signed by ’s enclave, that sets , which proves that this enclave has opened Car . A replica that receives a valid SUSPECT message for the first time relays it and arms its delinquency timer for , which also lasts . Correct replicas thus arm their timers within of one another, whenever they commit. A replica that already holds a certified Car of lane at position 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 once 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 . Correct replicas therefore vote for it without waiting. The budget follows the path a correct lane still has to travel: a correct has already opened Car when the timer is armed, seals it within , collects its acknowledgments later, carries the resulting PoA in its next seal at most after that, and delivers it one 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 whose vertices are the released transactions and whose edges encode pairwise ordering decisions. For each pair with , let 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 includes such a lane is immaterial, since Lemma 8 holds for any that contains the correct lanes. Both transactions being eligible, every lane is settled for both, so contains every correct replica (§VII-A) and . Let be the number of replicas of that received first, and let be the complementary count. With the edge threshold , which mirrors the quorum of Lemma 4, the edge rule is
If neither count reaches , 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 correct replicas agree either way. Note that, when and , the rule requires concurring attestations out of the up to that may contain.
Lemma 8 (Edge direction correctness). In a synchronous network with replicas, at most one of the two edges of rule (2) is added for a given pair. If at least correct replicas receive before , then that edge is , and every edge that the rule adds is supported by at least correct replicas that received before .
Proof. No wrong edge. The replicas of reporting are at most correct replicas that received first and the faulty ones. The proof of Lemma 4 shows that implies , so and the edge is not added. This holds whatever attestations happens to contain. Exclusivity follows from counting instead, and for every pair: , 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, contains every correct replica, so the correct replicas that received first all contribute to , giving and hence the edge . 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 only when . At most replicas of are faulty, so at least of the counted reports come from correct replicas that received before . Since , no coalition of faulty replicas can create an edge on its own.
We show that skipping the blockers is ahead of preserves fairness, and that is finite, which liveness requires.
Lemma 9 (Cycle closing). Let be eligible, , and be a blocker of , distinct from , that is ahead of. Then , and lie on a directed cycle in which each edge is supported by at least correct replicas. Moreover, is ahead of every transaction that correct enclaves first attest more than after they first attest .
Proof. By construction of , a chain of blockers leads from to . With ahead of and blocking , it closes the cycle . Each of these relations holds in counted lanes, of which at most 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 within of the first one (§V-B), hence before such a transaction. Since is eligible, the correct lanes have committed , 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 . We resolve them as Themis [17] does (Alg. 3). The strongly connected components (SCCs) of , computed with Tarjan’s algorithm [43], form the batches. The condensation DAG , which has one vertex per SCC and an edge whenever has an edge from a transaction of to one of , 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 that never leaves protected memory. When a committed block triggers an execution step, an enclave computes the seed , but only once its host presents a certificate of votes for , which the enclave checks against the replicas’ public keys. The transactions released by are then ordered by increasing , 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 from a peer, together with that enclave’s signature on . 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 was submitted before any party could learn . A faulty leader obtains a certificate for a second block only by equivocating, which correct replicas detect. If an enclave is compromised and reveals , the order remains deterministic and agreed upon, and only this tie-break becomes predictable.
Correctness
Theorem 10. In a synchronous network of TEE-equipped replicas, Pearl–BOF guarantees -batch-order fairness (Definition 2).
Proof. Consider transactions and such that at least correct replicas receive before . By Lemma 8, contains edge and not its reverse. If and belong to two distinct SCCs and , then contains the edge , so the topological sort places before and is ordered before . If they belong to the same SCC, they are placed in the same batch, which satisfies Definition 2 since it only requires to be ordered no later than .
Across execution steps. The argument above applies to two transactions released in the same step. Suppose is released in some step. Being eligible, has been committed by every correct lane, and that at least , hence at least , correct replicas that received first hold at an earlier position of their committed lane. No correct lane is named by a committed claim, so blocks . Let be a closure with which is released. If has already been executed, it is ordered before . If it is released in the same step, the argument above applies. Otherwise is ahead of , with since is released in this step, and by Lemma 9 and lie on a cycle whose edges are each supported by 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 . By Lemma 8, every edge of the cycle that carries them is supported by at least 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 , which is when . 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 lanes. Every Car of a correct lane is eventually committed, as in Pearl-OL, and a correct lane seals a frontier once its collection window for has closed, so the correct lanes cover . 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 and distinguish two cases. If some correct replica arms its timer for , it relays the SUSPECT message and every correct replica arms its own within . Every block that a correct replica receives more than after arming carries the claim or a tip of lane at or beyond, or gathers no correct vote. Blocks keep being committed, so the claim is committed or the committed prefix reaches . Otherwise no correct replica ever arms its timer. Each of them then holds a certified Car at or beyond within of committing the block that fixes , and the freshness rule (§V-C) keeps any leader from omitting it, so the committed prefix reaches . For a correct lane no claim is ever committed, since no correct timer expires on it (§VII-A), so its committed prefix reaches 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 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 after that vote. Lane is therefore settled by the first block committed after these delays. Thus, the eligible set grows. Let be eligible. Every other transaction of blocks one of its members, hence precedes it in lanes, one of them correct, and is not ahead of it. By Lemma 9, correct enclaves first attest it at at most after . Correct enclaves attest finitely many transactions in a bounded interval, so is finite. More precisely, may change from step to step, but it stays within the finite set of transactions that a correct enclave first attests at most after . 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, 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 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 . 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 and set . Pearl uses replicas. Pompē [18] and FairDAG-AB [22] (ordering linearizability), FairDAG-RL (-batch-order fairness) and Tusk [6] (no fairness guarantee) use replicas, and Themis [17] (-batch-order fairness) uses .
Scaling and Saturation. Figure 3(a) plots latency against throughput at . Both modes execute the offered load up to a peak of 40k tx/s at , 25k (OL) and 26k tx/s (BOF) at , and 17k and 18k tx/s at . 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 ms imposed by the collection window and the commit timer.
Figure 3. (a) Pearl’s latency against throughput at the largest committee we evaluate, (). (b)–(c) Robustness to silent replicas (, 500 tx/s input): throughput and latency as the number of silent replicas varies from 0 to 5. (d)–(e) Batch-size sensitivity (, 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 , 5 and 7. FairDAG-AB reaches 2.0k tx/s at every , 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 and 500 tx/s at . 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 . Tusk, which provides no fair ordering, sustains 18k, 30k and 40k tx/s at 100 ms. Pearl reaches twice its throughput at , and 84% and 41% of it at and 7.
Figure 4. Throughput and latency with (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 that tolerates faults ( 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 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 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 . 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 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 replicas and no additional rounds. Aequitas [14] introduced receive-order fairness and identified Condorcet cycles as a fundamental obstacle. Themis [17] formalised -batch-order fairness. Compared with Themis, Pearl uses TEE-attested local orders to prevent equivocation, requiring only 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 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 DAG pipelines.
Fair ordering with trusted hardware. Fairy [34] uses TEE-equipped nodes to timestamp encrypted transactions, providing input causality but not ordering linearizability. Aion [35] uses 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 .
TEE-assisted BFT. A2M [46] and TrInc [47] showed that trusted append-only state can prevent equivocation, enabling 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 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 -batch-order fairness with minimal batching is achievable with 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 replicas or -batch-order fairness with 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]S. Nakamoto, “Bitcoin: A peer-to-peer electronic cash system,” 2008.
- [2]G. Wood, “Ethereum: A secure decentralised generalised transaction ledger,” Ethereum project yellow paper, vol. 151, no. 2014, pp. 1–32, 2014.
- [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]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]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]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]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]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]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]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]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]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]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]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]W. V. Gehrlein, “Condorcet’s paradox,” Theory and decision, vol. 15, no. 2, pp. 161–197, 1983.DOI
- [16]M. A. Vafadar and M. Khabbazian, “Condorcet attack against fair transaction ordering,” in 5th Conference on Advances in Financial Technologies, 2023.
- [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]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]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]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]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]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]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]M. Putnik and J. Decouchant, “Herring: Parallel batch-order fairness on dag-based blockchain consensus,” arXiv preprint arXiv:2605.23648, 2026.
- [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]———, “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]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]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]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]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]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]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]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]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]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]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]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.
- [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.
- [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.
- [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
- [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
- [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
- [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
- [45]V. Costan and S. Devadas, “Intel SGX explained,” Cryptology ePrint Archive, Paper 2016/086, 2016. [Online]. Available: https://eprint.iacr.org/2016/086
- [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.
- [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.
- [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.
- [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.
- [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
- [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
- [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
- [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
- [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.
- [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


