Ordering by Unanimity: Giving Applications Sequencing Rights Without Breaking Composability
This paper introduces the "unanimity override" algorithm, which allows blockchain applications to enforce their preferred transaction sequencing when all involved parties agree, while using a default order to resolve cycles and guaranteeing that specific transactions execute as intended even against adversarial manipulation.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine a blockchain as a giant, shared digital notebook where everyone writes down their transactions. In this notebook, composability is the superpower that lets different apps talk to each other. For example, you could sell a stock on one app and immediately use that money to buy a loan on another, all in one single step.
However, there's a problem: Who decides the order?
In a physical line at a coffee shop, the person who arrives first gets served first. But in a blockchain, the person who writes the line down (the "block proposer") usually gets to decide who goes first. This creates a headache for app developers.
- An auction app needs the highest bid to be processed before the second-highest, or the auction breaks.
- A trading app needs a price update to happen before anyone trades, or people trade on old, wrong prices.
- A cancellation app needs to cancel an order before someone tries to fill it.
If the block proposer decides the order, they might accidentally (or maliciously) mess these apps up.
The Solution: "Unanimity Override"
The author proposes a new rule called Unanimity Override. Think of it as a "Group Consensus" system for the notebook.
Here is the core idea: If all the apps involved in a specific pair of transactions agree on who should go first, the notebook must respect that agreement.
- The Good News: If App A says "Transaction X must go before Y," and App B (which also sees both) agrees, then X goes before Y. The system locks this in.
- The Bad News (The Cycle): Sometimes, apps disagree in a circle.
- App A says: X before Y.
- App B says: Y before Z.
- App C says: Z before X.
- This creates a cycle (X → Y → Z → X). It's a paradox. The system can't execute them all in the order everyone wants.
Breaking the Cycle: The "Demotion" Rule
When a cycle happens, the system needs a tie-breaker to break the loop. The paper introduces a "fallback" rule:
- Identify the troublemakers: The system looks for transactions that are interacting with multiple apps that have conflicting opinions. These are called "Multi-Opinion Transactions."
- Demote them: The system picks the "lowest priority" transaction in the cycle (based on a default rule, like who paid the lowest fee) and demotes it.
- Reset: The demoted transaction is moved to the back of the line. The cycle is broken, and the remaining transactions can be ordered as the apps requested.
The Two Big Guarantees
The paper proves that even if a malicious attacker tries to game the system by creating fake transactions to force these cycles, two things are impossible for them to break:
1. The "Single-App" Guarantee
If a transaction only talks to one specific app (and that app has a strong preference), the attacker cannot mess it up.
- Analogy: Imagine you are in a line for a specific store. Only that store cares about your place in line. Even if a bully tries to cut in front of you by shouting at other stores, that store will still let you go first because they are the only one who matters for your spot.
- Result: Apps that want to control their own internal order (like an auction) can do so safely, as long as users stick to that app.
2. The "Gated" Guarantee
If a transaction is "gated" (meaning no one the attacker controls can create a transaction that ranks higher than it), it is safe.
- Analogy: Imagine a VIP pass that says, "No one with a regular badge can cut in front of me." If the attacker doesn't have a VIP badge (or can't forge one), they can't create a cycle to push you back.
- Result: Critical updates (like price feeds from a trusted source) are protected because the attacker can't legally "outbid" them in the system's eyes.
What About the "Demoted" Transactions?
The only time the system ignores an app's wish is when a transaction is involved in a messy cycle with multiple apps, and it gets "demoted."
- The Catch: The paper argues that if an app wants its transactions to be safe, it should encourage users to keep their transactions simple (interacting with only that app). If a user tries to be fancy and interact with many apps at once, they risk getting caught in a cycle and being demoted.
- The Incentive: This creates a natural incentive for users to play by the rules. If you want your bid to win an auction, don't try to do 10 other things at the same time; just send the bid to the auction app.
Summary
The paper introduces a rule that lets apps say, "We need X before Y," and the blockchain will listen—unless the apps are arguing in a circle. If they argue in a circle, the system breaks the tie by pushing the "lowest priority" multi-app transaction to the back.
This protects the most important transactions (those that are simple or "gated") from being manipulated, while still allowing the blockchain to remain a single, connected notebook where apps can work together. It's a way to give apps control over their own destiny without breaking the whole system.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.