Skip to content

Commit 8437d9a

Browse files
authored
Update documentation for: FAQ, Resources, and How It Works pages (#244)
* Update documentation for: FAQ, Resources, and How It Works pages * Remove package-lock.json from PR Remove package-lock.json from PR * Remove yarn.lock from PR Remove yarn.lock from PR
1 parent 3d4c098 commit 8437d9a

File tree

5 files changed

+390
-8573
lines changed

5 files changed

+390
-8573
lines changed

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/docs/faq.md

Lines changed: 238 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,228 @@ sidebar_position: 6
66

77
## What is Ouroboros Leios?
88

9-
Ouroboros Leios is a next-generation blockchain consensus protocol designed to improve transaction throughput and reduce latency by using a pipelined endorsing process. It builds upon the core Ouroboros principles (as used by Cardano), introducing separate input blocks (IBs) for transactions and endorser blocks (EBs) that reference those transactions, thus enhancing scalability.
9+
Ouroboros Leios is a next-generation blockchain consensus protocol designed to
10+
make Cardano faster and more scalable. It improves transaction throughput and
11+
reduces latency by splitting the work of processing transactions into a
12+
streamlined, parallel process. Building on the core Ouroboros principles (as
13+
used by Cardano), Leios introduces separate input blocks (IBs) for transactions
14+
and endorser blocks (EBs) that validate them, enhancing the network’s capacity.
1015

1116
## What are the key benefits of Leios over other Ouroboros protocols?
1217

1318
Leios offers several significant advantages:
1419

15-
- **Higher throughput and lower latency.** By splitting transaction processing into IB and EB stages, Leios handles more transactions in parallel.
16-
- **Flexible diffusion strategies.** Nodes can choose different block-propagation methods, such as 'freshest-first' or 'oldest-first.'
17-
- **Enhanced cryptography.** Leios uses Boneh–Lynn–Shacham (BLS) signatures for aggregated verification and verifiable random functions (VRFs) for leader selection.
18-
- **Robust simulations and formal methods.** Rust and Haskell simulations measure real-world performance, and executable specifications help ensure correctness.
19-
- **Scalable cost model.** A cost calculator enables node operators to estimate expenses (for example, storage amortization and CPU usage).
20+
- **Higher throughput and lower latency.** By splitting transaction processing
21+
into IB and EB stages, Leios handles more transactions in parallel, enabling
22+
faster and more responsive applications.
23+
- **Better user experience.** Faster transaction processing means quicker
24+
confirmations for wallet users and dApp interactions.
25+
- **Flexible diffusion strategies.** Nodes can choose how to share blocks (e.g.,
26+
prioritizing newest or oldest data), optimizing network performance based on
27+
conditions.
28+
- **Enhanced cryptography.** Leios uses Boneh–Lynn–Shacham (BLS) signatures for
29+
aggregated verification and verifiable random functions (VRFs) for fair leader
30+
selection.
31+
- **Robust simulations and formal methods.** Rust and Haskell simulations
32+
measure real-world performance, and executable specifications ensure
33+
correctness.
34+
- **Scalable cost model.** A cost calculator helps node operators estimate
35+
expenses (e.g., storage, CPU usage).
36+
37+
## What does Leios mean for Cardano users (e.g., wallet users, dApp developers)?
38+
39+
For everyday users, Leios means faster transaction confirmations and a smoother
40+
experience in wallets and dApps—think near-instant payments or interactions
41+
instead of waiting 20 seconds or more. For developers, it offers higher
42+
throughput (more transactions per second), enabling complex, high-volume
43+
applications like decentralized exchanges or gaming platforms. However, wallets,
44+
explorers, and APIs will need updates to handle Leios’ new block types (IBs,
45+
EBs, RBs), so expect some transition as it rolls out.
46+
47+
## What are the risks or trade-offs of Leios?
48+
49+
Leios prioritizes scalability, but it’s not without trade-offs. Parallel
50+
processing increases demands on node operators (e.g., more CPU, bandwidth,
51+
storage), potentially raising costs or requiring better hardware. The complexity
52+
of three block types (IBs, EBs, RBs) could also introduce new bugs or delays
53+
during implementation. However, extensive simulations and formal methods aim to
54+
minimize these risks, ensuring Leios remains secure and reliable as it matures.
2055

2156
## What are IBs, EBs, and RBs in Leios?
2257

2358
Leios uses three distinct block types:
2459

25-
- **IB (input block):** a block that contains transactions. Produced by nodes that win the IB sortition lottery.
26-
- **EB (endorser block):** a block that references one or more IBs, providing endorsements. Produced by nodes that win the EB sortition lottery.
27-
- **RB (ranking block):** a block that ranks or orders other blocks as part of the consensus mechanism.
28-
29-
Each block type plays a distinct role in moving transactions from submission to final confirmation.
60+
- **IB (input block):** a block that contains transactions. Produced by nodes
61+
that win the IB sortition lottery.
62+
- **EB (endorser block):** a block that references one or more IBs, providing
63+
endorsements. Produced by nodes that win the EB sortition lottery.
64+
- **RB (ranking block):** a block that ranks or orders other blocks as part of
65+
the consensus mechanism.
66+
67+
Each block type plays a distinct role in moving transactions from submission to
68+
final confirmation. IBs are minted frequently, EBs validate in parallel, RBs
69+
occur every ~20 seconds.
70+
71+
## What is the relationship between Ouroboros, Peras, and Leios?
72+
73+
### Ouroboros: The Foundation
74+
75+
- What it is: Ouroboros is the overarching family of proof-of-stake (PoS)
76+
consensus protocols that powers Cardano. It’s designed to be secure,
77+
energy-efficient, and provably fair, replacing proof-of-work (PoW) systems
78+
like Bitcoin’s.
79+
- Key Features:
80+
- Slot-based time division (epochs and slots, with slots typically 1 second
81+
long in earlier versions, now 20 seconds in Praos for block production).
82+
- Stake pool leaders elected based on stake to mint blocks.
83+
- Formal mathematical proofs of security (e.g., resistance to attacks like
84+
double-spending or chain forks).
85+
- Role: Ouroboros is the bedrock consensus mechanism that Peras and Leios build
86+
upon or refine.
87+
88+
### Peras: A Modular Upgrade
89+
90+
- What it is: Peras is a proposed evolution of Ouroboros aimed at improving
91+
efficiency and modularity.
92+
- Key Features:
93+
- Separation of Concerns: Peras splits consensus into modular components, such
94+
as transaction ordering, validation, and ledger state updates, to allow
95+
parallel processing and flexibility.
96+
- Improved Finality: It introduces mechanisms for faster confirmation times,
97+
potentially reducing the time to finality compared to Praos’ 20-second block
98+
intervals.
99+
- Adaptability: Designed to integrate with future scaling solutions (like
100+
Leios) and sidechains or layer-2 systems.
101+
- Relationship to Ouroboros:
102+
- Peras is a direct descendant of Ouroboros Praos, refining its mechanics
103+
while staying within the PoS framework. It’s like an “Ouroboros 2.0,”
104+
optimizing the core protocol without fundamentally changing its PoS nature.
105+
- It serves as a bridge between the foundational Ouroboros Praos and more
106+
radical scalability-focused variants like Leios.
107+
108+
### Leios: A Scalability Leap
109+
110+
- What it is: Ouroboros Leios is a specific variant of the Ouroboros family,
111+
designed to dramatically increase Cardano’s throughput (transactions per
112+
second, TPS) while maintaining security. It’s an experimental or future-state
113+
protocol, not yet live as of March 2025, but actively discussed in Cardano’s
114+
research community.
115+
- Relationship to Ouroboros:
116+
- Leios is a specialized extension of Ouroboros, taking the core PoS mechanics
117+
and rearchitecting block production for scalability.
118+
- It retains Ouroboros’ security model but reimagines how transactions are
119+
ingested and validated, making it a next-generation Ouroboros variant.
120+
121+
### The Relationship
122+
123+
- Ouroboros as the Core:
124+
- Ouroboros (especially Praos) is the foundational consensus protocol that
125+
defines Cardano’s PoS system. Both Peras and Leios are built on this
126+
foundation, inheriting its security properties and stake-based governance.
127+
- Peras as an Intermediate Step:
128+
- Peras enhances Ouroboros by introducing modularity and efficiency
129+
improvements, potentially laying the groundwork for integrating advanced
130+
features like those in Leios. It’s a stepping stone that refines Praos’
131+
mechanics, making it more adaptable to future needs.
132+
- Leios as a Scalability Solution:
133+
- Leios takes Ouroboros further by addressing throughput limitations head-on.
134+
It uses the same PoS principles but introduces a parallel processing model
135+
that Peras’ modularity could theoretically support or complement.
136+
- Leios can be seen as a “plugin” or evolution that fits into the Ouroboros
137+
ecosystem, possibly relying on Peras’ groundwork for smoother integration.
138+
- Timeline and Evolution:
139+
- Ouroboros Praos → Current live protocol
140+
- Peras → A near-future refinement for flexibility and efficiency
141+
- Leios → A long-term scalability solution, still in research/development,
142+
aimed at making Cardano competitive with high-TPS blockchains like Solana or
143+
Ethereum layer-2s
144+
145+
## What's the state of an IB before an EB or RB gets created for it? Is it visible, is it usable?
146+
147+
Before an Endorsement Block (EB) or Ranking Block (RB) is created, an Input
148+
Block (IB) is a proposed set of transactions in a preliminary state. Here’s what
149+
that means:
150+
151+
### State of an Input Block
152+
153+
An IB is minted by a node (e.g., a stake pool operator) and contains unconfirmed
154+
transactions from the mempool. It’s cryptographically signed for authenticity
155+
but hasn’t been validated or finalized by the network, leaving it in a pending
156+
state.
157+
158+
### Visibility
159+
160+
Once minted, the IB is broadcast and visible to all nodes. This allows them to
161+
inspect its transactions and start validation, a key part of Leios’ parallel
162+
processing design. However, visibility doesn’t mean it’s accepted—it’s just a
163+
proposal.
164+
165+
### Usability
166+
167+
The IB isn’t usable yet—its transactions can’t be spent or relied upon because
168+
they lack consensus and finality. Only after EBs endorse it and an RB finalizes
169+
it does it become part of the blockchain’s official state. Until then, it could
170+
still be discarded if it fails validation.
171+
172+
## If an IB isn't really usable until it's got an EB and RB, and RB's still take 20 seconds, how does this improve performance?
173+
174+
Leios boosts performance by processing transactions in parallel, even though
175+
final confirmation still takes 20 seconds. Here’s how:
176+
177+
### Parallel Processing Boost
178+
179+
Think of Leios like a factory: In Ouroboros Praos, one worker (a slot leader)
180+
builds a block every 20 seconds. In Leios, dozens of workers (nodes) create
181+
Input Blocks (IBs) continuously, others check them with Endorsement Blocks
182+
(EBs), and a supervisor (Ranking Block, RB) approves the batch every 20 seconds.
183+
This parallelism lets the network handle far more transactions in that
184+
time—potentially 10x to 100x more than Praos.
185+
186+
### Splitting the Work
187+
188+
- **IBs**: Propose transactions frequently and in parallel.
189+
- **EBs**: Validate IBs concurrently across nodes.
190+
- **RBs**: Finalize everything every 20 seconds, ensuring security. Unlike
191+
Praos, where one block does it all, Leios splits these roles so transaction
192+
processing isn’t bottlenecked by the 20-second RB interval.
193+
194+
### Practical Gains
195+
196+
While IBs aren’t spendable until an RB confirms them, EBs provide early
197+
confidence, letting apps (like wallets) act on them sooner for low-risk tasks
198+
(e.g., showing balances). The 20-second RB is a security anchor, not a
199+
limit—hundreds of IBs can queue up in that window, massively increasing
200+
throughput.
201+
202+
## How does Leios maintain security with parallel processing?
203+
204+
Leios preserves Cardano’s strong security by combining parallel transaction
205+
processing with a sequential finality layer. Input Blocks (IBs) and Endorsement
206+
Blocks (EBs) are produced in parallel, but Ranking Blocks (RBs) finalize the
207+
ledger every 20 seconds, ensuring a single, consistent chain. This prevents
208+
double-spending or forks by resolving conflicts at the RB stage. Additionally,
209+
cryptographic tools like BLS signatures and VRFs ensure that only valid blocks
210+
from authorized nodes are accepted, maintaining Ouroboros’ provable security
211+
guarantees.
30212

31213
## How does Leios handle voting stages, and what is 'send-recv' voting?
32214

33215
Leios finalizes blocks through a structured voting mechanism. Nodes may adopt:
34216

35-
- **Single-stage voting:** all votes are broadcast in one phase, possibly resulting in a longer CPU usage 'tail' during high throughput.
36-
- **Send-recv (two-stage) voting:** votes are first sent, then a follow-up receive phase ensures broader propagation before final tallies.
217+
- **Single-stage voting:** all votes are broadcast in one phase, possibly
218+
resulting in a longer CPU usage 'tail' during high throughput.
219+
- **Send-recv (two-stage) voting:** votes are first sent, then a follow-up
220+
receive phase ensures broader propagation before final tallies.
37221

38-
You can configure voting through parameters such as leios-vote-send-recv-stages in simulation environments.
222+
You can configure voting through parameters such as leios-vote-send-recv-stages
223+
in simulation environments.
39224

40225
## What is sortition in Leios, and how does 'Fait Accompli sortition' work?
41226

42-
Sortition is a probabilistic method for selecting nodes (based on stake) to produce blocks or issue votes. In Leios, it is referred to as 'Fait Accompli sortition' because once a node proves it was selected to produce a block or vote (using a cryptographic proof), no conflicting claims can arise.
227+
Sortition is a probabilistic method for selecting nodes (based on stake) to
228+
produce blocks or issue votes. In Leios, it is referred to as 'Fait Accompli
229+
sortition' because once a node proves it was selected to produce a block or vote
230+
(using a cryptographic proof), no conflicting claims can arise.
43231

44232
## What are the different block diffusion strategies, and why do they matter?
45233

@@ -49,21 +237,30 @@ Leios supports multiple strategies for propagating blocks and votes:
49237
- **Freshest-first:** focuses on the newest blocks or transactions first
50238
- **Peer-order:** requests blocks in the order peers announce them.
51239

52-
Your choice of strategy can affect latency, network load, and overall throughput.
240+
Your choice of strategy can affect latency, network load, and overall
241+
throughput.
53242

54243
## Can the system be sharded or self-regulated?
55244

56-
Not in its current design. Every node validates the entire chain. Thus, adding more nodes does not inherently increase throughput in the same way sharded protocols do. The community votes on protocol parameters (for example, block size), and the system's load is the same for all. Future research may explore sharding, but it is not yet part of Leios.
245+
Not in its current design. Every node validates the entire chain. Thus, adding
246+
more nodes does not inherently increase throughput in the same way sharded
247+
protocols do. The community votes on protocol parameters (for example, block
248+
size), and the system's load is the same for all. Future research may explore
249+
sharding, but it is not yet part of Leios.
57250

58251
## What improvements in cryptography are used in Leios?
59252

60-
Leios incorporates multiple cryptographic techniques to ensure security and efficiency:
253+
Leios incorporates multiple cryptographic techniques to ensure security and
254+
efficiency:
61255

62-
- BLS signatures: allows efficient aggregation of many signatures into one, reducing verification overhead
63-
- Mithril or Musen protocols: used for voting and proof aggregation, depending on the context
256+
- BLS signatures: allows efficient aggregation of many signatures into one,
257+
reducing verification overhead
258+
- Mithril or Musen protocols: used for voting and proof aggregation, depending
259+
on the context
64260
- VRFs: ensures fair selection of nodes for block production
65261

66-
Recent benchmarking shows that aggregated BLS verification significantly speeds up certificate validation.
262+
Recent benchmarking shows that aggregated BLS verification significantly speeds
263+
up certificate validation.
67264

68265
## How do I estimate node operating costs for Leios?
69266

@@ -74,13 +271,15 @@ Leios provides an online cost calculator that considers:
74271
- **Storage** (including the default assumption of 50% disk compression)
75272
- **Perpetual storage cost amortization**.
76273

77-
It also supports hyperscale and discount cloud providers. For example, you can model single-relay or multi-relay deployments at variable bandwidths.
274+
It also supports hyperscale and discount cloud providers. For example, you can
275+
model single-relay or multi-relay deployments at variable bandwidths.
78276

79277
## What is the current status of Leios simulations?
80278

81279
Two primary simulation frameworks (Rust and Haskell) are maintained to:
82280

83-
- Test network topologies and measure real or simulated latencies (using the DeltaQ model)
281+
- Test network topologies and measure real or simulated latencies (using the
282+
DeltaQ model)
84283
- Evaluate CPU usage for blocks and transactions under varying loads
85284
- Visualize block diffusion (IBs, EBs, and RBs) using different strategies
86285
- Compare ideal conditions vs realistic mainnet-like topologies.
@@ -91,9 +290,12 @@ Developers continually refine these simulations based on real-world data.
91290

92291
Based on preliminary internal testing and simulations:
93292

94-
- **Block size:** commonly set to about one-third of the available link capacity for IBs
95-
- **Voting stages:** choose single-stage or send-recv, depending on reliability and speed requirements
96-
- **Diffusion strategy:** many operators use 'freshest-first,' though 'peer-order' may help maintain compatibility with older setups.
293+
- **Block size:** commonly set to about one-third of the available link capacity
294+
for IBs
295+
- **Voting stages:** choose single-stage or send-recv, depending on reliability
296+
and speed requirements
297+
- **Diffusion strategy:** many operators use 'freshest-first,' though
298+
'peer-order' may help maintain compatibility with older setups.
97299

98300
Operators can adjust these parameters, which evolve through community votes.
99301

@@ -110,18 +312,24 @@ These resources provide transparency and regular updates on ongoing development.
110312

111313
## What are the downstream effects of deploying Leios?
112314

113-
Leios changes how transactions are validated and how blocks and memory pools operate, potentially affecting:
315+
Leios changes how transactions are validated and how blocks and memory pools
316+
operate, potentially affecting:
114317

115318
- **Wallets and SDKs,** which need to accommodate new block types (IBs and EBs)
116319
- **Explorers,** which must handle higher throughput and multi-block referencing
117320
- **Indexers and APIs,** which will see more granular block and vote data.
118321

119-
Weekly updates provide a deeper analysis of these topics, including how advanced indexing and potential sharding solutions might eventually mitigate challenges.
322+
Weekly updates provide a deeper analysis of these topics, including how advanced
323+
indexing and potential sharding solutions might eventually mitigate challenges.
120324

121325
## Could the mempool be sized according to the system's throughput?
122326

123-
That's already the case. The default mempool size is a small multiple of the current block size.
327+
That's already the case. The default mempool size is a small multiple of the
328+
current block size.
124329

125330
## Is Leios production-ready?
126331

127-
Leios remains an active research and development protocol. It is backed by a robust formal methods framework and two major simulation environments. However, it has not reached full production status. Watch the official updates and technical reports for major release announcements.
332+
Leios remains an active research and development protocol. It is backed by a
333+
robust formal methods framework and two major simulation environments. However,
334+
it has not reached full production status. Watch the official updates and
335+
technical reports for major release announcements.

0 commit comments

Comments
 (0)