Skip to content

Commit cdcc338

Browse files
committed
update-1
1 parent 3e43b18 commit cdcc338

File tree

3 files changed

+118
-118
lines changed

3 files changed

+118
-118
lines changed

site/docs/faq.md

Lines changed: 63 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,25 @@ Leios offers several significant advantages:
1919

2020
- **Higher throughput and lower latency.** By splitting transaction processing
2121
into IB and EB stages, Leios handles more transactions in parallel, enabling
22-
faster and more responsive applications.
22+
faster and more responsive applications
2323
- **Better user experience.** Faster transaction processing means quicker
24-
confirmations for wallet users and dApp interactions.
24+
confirmations for wallet users and DApp interactions
2525
- **Flexible diffusion strategies.** Nodes can choose how to share blocks (e.g.,
2626
prioritizing newest or oldest data), optimizing network performance based on
27-
conditions.
27+
conditions
2828
- **Enhanced cryptography.** Leios uses Boneh–Lynn–Shacham (BLS) signatures for
2929
aggregated verification and verifiable random functions (VRFs) for fair leader
30-
selection.
30+
selection
3131
- **Robust simulations and formal methods.** Rust and Haskell simulations
3232
measure real-world performance, and executable specifications ensure
33-
correctness.
33+
correctness
3434
- **Scalable cost model.** A cost calculator helps node operators estimate
35-
expenses (e.g., storage, CPU usage).
35+
expenses (For example, storage, CPU usage).
3636

37-
## What does Leios mean for Cardano users (e.g., wallet users, dApp developers)?
37+
## What does Leios mean for Cardano users (e.g., wallet users, DApp developers)?
3838

3939
For everyday users, Leios means faster transaction confirmations and a smoother
40-
experience in wallets and dApps—think near-instant payments or interactions
40+
experience in wallets and DApps—think near-instant payments or interactions
4141
instead of waiting 20 seconds or more. For developers, it offers higher
4242
throughput (more transactions per second), enabling complex, high-volume
4343
applications like decentralized exchanges or gaming platforms. However, wallets,
@@ -57,11 +57,11 @@ minimize these risks, ensuring Leios remains secure and reliable as it matures.
5757

5858
Leios uses three distinct block types:
5959

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
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
6565
the consensus mechanism.
6666

6767
Each block type plays a distinct role in moving transactions from submission to
@@ -70,42 +70,49 @@ occur every ~20 seconds.
7070

7171
## What is the relationship between Ouroboros, Peras, and Leios?
7272

73-
### Ouroboros: The Foundation
73+
### Ouroboros: The foundation
7474

7575
- What it is: Ouroboros is the overarching family of proof-of-stake (PoS)
7676
consensus protocols that powers Cardano. It’s designed to be secure,
7777
energy-efficient, and provably fair, replacing proof-of-work (PoW) systems
7878
like Bitcoin’s.
7979
- Key Features:
8080
- 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
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 (For example, resistance to attacks like
8484
double-spending or chain forks).
8585
- Role: Ouroboros is the bedrock consensus mechanism that Peras and Leios build
8686
upon or refine.
8787

88-
### Peras: A Modular Upgrade
88+
### Peras: A modular upgrade
8989

9090
- What it is: Peras is a proposed evolution of Ouroboros aimed at improving
9191
efficiency and modularity.
92-
- Key Features:
93-
- Separation of Concerns: Peras splits consensus into modular components, such
92+
- Key features:
93+
<<<<<<< HEAD
94+
- Separation of concerns. Peras splits consensus into modular components, such
95+
as transaction ordering, validation, and ledger state updates, to allow
96+
parallel processing and flexibility
97+
- Improved finality. It introduces mechanisms for faster confirmation times,
98+
=======
99+
- Separation of concerns: Peras splits consensus into modular components, such
94100
as transaction ordering, validation, and ledger state updates, to allow
95101
parallel processing and flexibility.
96-
- Improved Finality: It introduces mechanisms for faster confirmation times,
102+
- Improved finality: It introduces mechanisms for faster confirmation times,
103+
>>>>>>> ceaee0282f9c2d2f0b95d46c26e30d26e9f82847
97104
potentially reducing the time to finality compared to Praos’ 20-second block
98-
intervals.
99-
- Adaptability: Designed to integrate with future scaling solutions (like
105+
intervals
106+
- Adaptability. Designed to integrate with future scaling solutions (like
100107
Leios) and sidechains or layer-2 systems.
101108
- Relationship to Ouroboros:
102109
- 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,
110+
while staying within the PoS framework. It’s like an 'Ouroboros 2.0,'
104111
optimizing the core protocol without fundamentally changing its PoS nature.
105112
- It serves as a bridge between the foundational Ouroboros Praos and more
106113
radical scalability-focused variants like Leios.
107114

108-
### Leios: A Scalability Leap
115+
### Leios: A scalability leap
109116

110117
- What it is: Ouroboros Leios is a specific variant of the Ouroboros family,
111118
designed to dramatically increase Cardano’s throughput (transactions per
@@ -118,37 +125,37 @@ occur every ~20 seconds.
118125
- It retains Ouroboros’ security model but reimagines how transactions are
119126
ingested and validated, making it a next-generation Ouroboros variant.
120127

121-
### The Relationship
128+
### The relationship
122129

123130
- Ouroboros as the Core:
124131
- Ouroboros (especially Praos) is the foundational consensus protocol that
125132
defines Cardano’s PoS system. Both Peras and Leios are built on this
126133
foundation, inheriting its security properties and stake-based governance.
127-
- Peras as an Intermediate Step:
134+
- Peras as an intermediate step:
128135
- Peras enhances Ouroboros by introducing modularity and efficiency
129136
improvements, potentially laying the groundwork for integrating advanced
130137
features like those in Leios. It’s a stepping stone that refines Praos’
131138
mechanics, making it more adaptable to future needs.
132-
- Leios as a Scalability Solution:
139+
- Leios as a scalability solution:
133140
- Leios takes Ouroboros further by addressing throughput limitations head-on.
134141
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
142+
that Peras’ modularity could theoretically support or complement
143+
- Leios can be seen as a 'plugin' or evolution that fits into the Ouroboros
137144
ecosystem, possibly relying on Peras’ groundwork for smoother integration.
138-
- Timeline and Evolution:
145+
- Timeline and evolution:
139146
- Ouroboros Praos → Current live protocol
140147
- Peras → A near-future refinement for flexibility and efficiency
141148
- Leios → A long-term scalability solution, still in research/development,
142149
aimed at making Cardano competitive with high-TPS blockchains like Solana or
143-
Ethereum layer-2s
150+
Ethereum layer-2s.
144151

145152
## What's the state of an IB before an EB or RB gets created for it? Is it visible, is it usable?
146153

147154
Before an Endorsement Block (EB) or Ranking Block (RB) is created, an Input
148155
Block (IB) is a proposed set of transactions in a preliminary state. Here’s what
149156
that means:
150157

151-
### State of an Input Block
158+
### State of an IB
152159

153160
An IB is minted by a node (e.g., a stake pool operator) and contains unconfirmed
154161
transactions from the mempool. It’s cryptographically signed for authenticity
@@ -174,7 +181,7 @@ still be discarded if it fails validation.
174181
Leios boosts performance by processing transactions in parallel, even though
175182
final confirmation still takes 20 seconds. Here’s how:
176183

177-
### Parallel Processing Boost
184+
### Parallel processing boost
178185

179186
Think of Leios like a factory: In Ouroboros Praos, one worker (a slot leader)
180187
builds a block every 20 seconds. In Leios, dozens of workers (nodes) create
@@ -183,19 +190,19 @@ Input Blocks (IBs) continuously, others check them with Endorsement Blocks
183190
This parallelism lets the network handle far more transactions in that
184191
time—potentially 10x to 100x more than Praos.
185192

186-
### Splitting the Work
193+
### Splitting the work
187194

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
195+
- **IBs**. Propose transactions frequently and in parallel.
196+
- **EBs**. Validate IBs concurrently across nodes.
197+
- **RBs**. Finalize everything every 20 seconds, ensuring security. Unlike
191198
Praos, where one block does it all, Leios splits these roles so transaction
192199
processing isn’t bottlenecked by the 20-second RB interval.
193200

194-
### Practical Gains
201+
### Practical gains
195202

196203
While IBs aren’t spendable until an RB confirms them, EBs provide early
197204
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
205+
(For example, showing balances). The 20-second RB is a security anchor, not a
199206
limit—hundreds of IBs can queue up in that window, massively increasing
200207
throughput.
201208

@@ -214,9 +221,9 @@ guarantees.
214221

215222
Leios finalizes blocks through a structured voting mechanism. Nodes may adopt:
216223

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
224+
- **Single-stage voting**. All votes are broadcast in one phase, possibly
225+
resulting in a longer CPU usage 'tail' during high throughput
226+
- **Send-recv (two-stage) voting**. Votes are first sent, then a follow-up
220227
receive phase ensures broader propagation before final tallies.
221228

222229
You can configure voting through parameters such as leios-vote-send-recv-stages
@@ -233,9 +240,9 @@ sortition' because once a node proves it was selected to produce a block or vote
233240

234241
Leios supports multiple strategies for propagating blocks and votes:
235242

236-
- **Oldest-first:** prioritizes older blocks or transactions
237-
- **Freshest-first:** focuses on the newest blocks or transactions first
238-
- **Peer-order:** requests blocks in the order peers announce them.
243+
- **Oldest-first**. Prioritizes older blocks or transactions
244+
- **Freshest-first**. Focuses on the newest blocks or transactions first
245+
- **Peer-order**. Requests blocks in the order peers announce them.
239246

240247
Your choice of strategy can affect latency, network load, and overall
241248
throughput.
@@ -253,11 +260,11 @@ sharding, but it is not yet part of Leios.
253260
Leios incorporates multiple cryptographic techniques to ensure security and
254261
efficiency:
255262

256-
- BLS signatures: allows efficient aggregation of many signatures into one,
263+
- BLS signatures. Allows efficient aggregation of many signatures into one,
257264
reducing verification overhead
258-
- Mithril or Musen protocols: used for voting and proof aggregation, depending
265+
- Mithril or Musen protocols. Used for voting and proof aggregation, depending
259266
on the context
260-
- VRFs: ensures fair selection of nodes for block production
267+
- VRFs. Ensures fair selection of nodes for block production.
261268

262269
Recent benchmarking shows that aggregated BLS verification significantly speeds
263270
up certificate validation.
@@ -290,11 +297,11 @@ Developers continually refine these simulations based on real-world data.
290297

291298
Based on preliminary internal testing and simulations:
292299

293-
- **Block size:** commonly set to about one-third of the available link capacity
300+
- **Block size**. Commonly set to about one-third of the available link capacity
294301
for IBs
295-
- **Voting stages:** choose single-stage or send-recv, depending on reliability
302+
- **Voting stages**. Choose single-stage or send-recv, depending on reliability
296303
and speed requirements
297-
- **Diffusion strategy:** many operators use 'freshest-first,' though
304+
- **Diffusion strategy**. Many operators use 'freshest-first,' though
298305
'peer-order' may help maintain compatibility with older setups.
299306

300307
Operators can adjust these parameters, which evolve through community votes.
@@ -306,7 +313,7 @@ You can follow:
306313
- Weekly updates on the Ouroboros Leios site
307314
- Technical reports for deeper insights
308315
- Leios glossary for definitions of commonly used terms
309-
- Public GitHub repositories that host source code and simulations
316+
- Public GitHub repositories that host source code and simulations.
310317

311318
These resources provide transparency and regular updates on ongoing development.
312319

@@ -315,9 +322,9 @@ These resources provide transparency and regular updates on ongoing development.
315322
Leios changes how transactions are validated and how blocks and memory pools
316323
operate, potentially affecting:
317324

318-
- **Wallets and SDKs,** which need to accommodate new block types (IBs and EBs)
319-
- **Explorers,** which must handle higher throughput and multi-block referencing
320-
- **Indexers and APIs,** which will see more granular block and vote data.
325+
- **Wallets and SDKs**. Which need to accommodate new block types (IBs and EBs)
326+
- **Explorers**. Which must handle higher throughput and multi-block referencing
327+
- **Indexers and APIs**. Which will see more granular block and vote data.
321328

322329
Weekly updates provide a deeper analysis of these topics, including how advanced
323330
indexing and potential sharding solutions might eventually mitigate challenges.

site/docs/how-it-works.md

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,69 +2,66 @@
22
sidebar_position: 3
33
---
44

5-
# How It Works
5+
# How it works
66

7-
Leios is a high-throughput overlay protocol designed to enhance blockchain
8-
scalability, such as for Cardano’s Ouroboros, by managing a structured flow of
9-
transactions. Here’s a breakdown of how it operates:
7+
Leios is a high-throughput overlay protocol designed to enhance blockchain scalability—such as for Cardano’s Ouroboros—by managing a structured flow of transactions. Here’s a breakdown of how it operates:
108

11-
1. **Creating Input Blocks (IBs)**:<br /> Stake pool operators (SPOs), acting as
9+
1. **Creating Input Blocks (IBs)**<br /> Stake pool operators (SPOs), acting as
1210
validators, bundle transactions into Input Blocks (IBs) every 0.2–2 seconds
1311
and broadcast them across the network for parallel processing.
1412

15-
2. **Proofs of Data Availability**:<br /> Validators check that IBs’ transaction
13+
2. **Proofs of data availability** <br /> Validators check that IBs’ transaction
1614
data is valid and accessible, a process later confirmed through Endorser
1715
Blocks (EBs) and voting, ensuring no data is missing or malformed.
1816

19-
3. **Generating Endorser Blocks (EBs)**:<br /> EBs aggregate multiple verified
17+
3. **Generating Endorser Blocks (EBs)**<br /> EBs aggregate multiple verified
2018
IBs, grouping them for validation and proposing their inclusion in the
2119
blockchain’s final ledger.
2220

23-
4. **Pipelined Processing**:<br /> The protocol uses a seven-stage endorsing
21+
4. **Pipelined processing**<br /> The protocol uses a seven-stage endorsing
2422
pipeline (detailed below) to process IBs, EBs, and votes in parallel,
2523
maximizing network bandwidth and throughput.
2624

27-
5. **Voting and Certification**:<br /> Validators vote on EBs using
25+
5. **Voting and certification**<br /> Validators vote on EBs using
2826
stake-weighted BLS signatures to certify their correctness and data
2927
availability, ensuring only compliant IBs (e.g., valid scripts) proceed.
3028

31-
6. **Final Inclusion in the Blockchain**:<br /> Certified EBs are referenced by
29+
6. **Final inclusion in the blockchain**<br /> Certified EBs are referenced by
3230
a certificate included in a Ranking Block (RB)—a Praos-style block minted
3331
every ~20 seconds—finalizing IB transactions on the blockchain while
3432
maintaining a verifiable, efficient record.
3533

3634
## Leios architecture
3735

38-
The Leios protocol utilizes a pipelined architecture to achieve high throughput.
39-
A pipeline instance comprises seven stages:
36+
Leios uses a pipelined architecture to achieve high throughput. Each pipeline instance includes the following seven stages:
4037

4138
1. **Propose**:<br />
4239

4340
- Validators concurrently generate and propose IBs with transaction data,
44-
kicking off the pipeline instance and targeting frequent output (e.g.,
45-
every 0.2–2 seconds).
41+
kicking off the pipeline instance and targeting frequent output (For example,
42+
every 0.2–2 seconds)
4643
- IBs proposed during this stage are the focus of the current pipeline
4744
instance.
4845

4946
2. **Deliver1**:<br />
5047

5148
- Time is allocated for proposed IBs to spread across the network using a
5249
freshest-first diffusion strategy, ensuring honest nodes receive them
53-
within a set delay (e.g., Δ_hdr) despite potential adversarial bursts.
50+
within a set delay (e.g., Δ_hdr) despite potential adversarial bursts
5451
- Duration is crucial for ensuring all honest nodes receive IBs before the
5552
next stage.
5653

5754
3. **Link**:<br />
5855

5956
- Validators create EBs that reference Propose-stage IBs, grouping and
60-
ordering them for validation and eventual blockchain inclusion.
57+
ordering them for validation and eventual blockchain inclusion
6158
- EBs serve as containers for grouping and ordering IBs.
6259

6360
4. **Deliver2**:<br />
6461

6562
- Time is allocated for any adversarial IBs referenced by EBs to disseminate,
6663
ensuring honest nodes have all data needed for fair voting and availability
67-
checks.
64+
checks
6865
- Ensures honest nodes have received all relevant IBs before casting votes.
6966

7067
5. **Vote1**:<br />
@@ -77,22 +74,22 @@ A pipeline instance comprises seven stages:
7774

7875
- New EBs reference Vote1-certified EBs, linking across pipeline instances to
7976
reinforce IB confirmation and ensure high throughput by cross-referencing
80-
honest data.
77+
honest data
8178
- Strengthens overall confirmation of IBs.
8279

8380
7. **Vote2**:<br />
8481
- Validators cast final votes for Endorse-stage EBs, certifying them as
8582
Vote2-certified if they reference a majority of Vote1-certified EBs,
86-
preparing them for RB inclusion and ledger finality.
83+
preparing them for RB inclusion and ledger finality
8784
- Must reference a majority of Vote1-certified EBs.
8885

89-
## Network Resilience
86+
## Network resilience
9087

9188
Leios counters adversarial tactics with:
9289

93-
- **Freshest-First Diffusion**: Nodes prioritize downloading the newest IBs and
90+
- **Freshest-first diffusion**: Nodes prioritize downloading the newest IBs and
9491
EBs (via VRF-based timestamps), limiting delays from malicious message bursts.
95-
- **Equivocation Proofs**: If a validator double-signs (e.g., sends conflicting
92+
- **Equivocation proofs**: If a validator double-signs (e.g., sends conflicting
9693
EBs), honest nodes detect and propagate proofs, ensuring only one valid block
9794
per slot is processed, minimizing bandwidth waste.
9895

@@ -106,4 +103,4 @@ Leios counters adversarial tactics with:
106103
This pipelined architecture ensures continuous IB generation, parallel
107104
processing, and robust confirmation, enabling Leios to achieve near-optimal
108105
transaction throughput (e.g., (1-δ) of network capacity) while resisting
109-
adversarial tactics like message bursts and equivocations.
106+
adversarial tactics like message bursts and equivocations.

0 commit comments

Comments
 (0)