Skip to content

Commit 46fa596

Browse files
committed
site: restructure docs; update footer links; add more detail
1 parent a89bdc5 commit 46fa596

File tree

9 files changed

+438
-171
lines changed

9 files changed

+438
-171
lines changed

site/docs/faq.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
sidebar_position: 6
3+
---
4+
5+
# Ouroboros Leios FAQ
6+
7+
## What are the benefits of Leios?
8+
9+
Ouroboros Leios is a blockchain protocol that improves transaction throughput and
10+
latency by using a pipelined endorsing process. Simply put, Leios is a way to
11+
process transactions faster.
12+
13+
## What are downstream effects of deploying Leios?
14+
15+
Ongoing internal discussions - we will publish an answer/link here to our
16+
findings.
17+
18+
## Could the mempool be sized to the throughput of the system?
19+
20+
That's already the case. Default mempool size is a small multiple of current
21+
block size.
22+
23+
## Can the system be sharded according to resources (small nodes vs. big nodes)?
24+
25+
Leios' current design does not involve sharding in a sense of different resource
26+
requirements for different nodes. In short, the Leios design does not involve
27+
sharding. These are ideas in research and require more work. As of now, each
28+
node has to validate all blocks, hence in a traditional sense, adding more nodes
29+
does not increase throughput. Each node must cope with the throughput of the
30+
whole system.
31+
32+
## Can the system self-regulate instead of manually fine tuning?
33+
34+
The current system's load is imposed on each node through the protocol
35+
parameters. Thus, it remains a democratic vote, not a choice made locally by
36+
nodes or automatically. Given that the load is imposed on each node through the
37+
choice of the protocol parameters, it remains a democratic vote to drive
38+
adaptation. In a sharded approach this could be different. But in the current
39+
system there is no local or automatic choice to be made by individual nodes.

site/docs/glossary.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
sidebar_position: 5
3+
---
4+
5+
# Glossary
6+
7+
- **Input Block (IB)**: A block that contains transactions and is produced by
8+
nodes that win the IB sortition lottery.
9+
10+
- **Endorser Block (EB)**: A block that references IBs and is produced by nodes
11+
that win the EB sortition lottery.
12+
13+
- **Ranking Block (RB)**: A block that ranks other blocks and is part of the
14+
consensus mechanism.
15+
16+
- **BLS**: Boneh-Lynn-Shacham, a cryptographic signature scheme that allows for
17+
efficient aggregation of signatures.
18+
19+
- **ALBA**: A cryptographic protocol or component used within the Leios
20+
framework.
21+
22+
- **Musen**: Another cryptographic protocol or component used within the Leios
23+
framework.
24+
25+
- **Sortition**: A probabilistic method for selecting nodes to perform certain
26+
roles, based on their stake.
27+
28+
- **VRF**: Verifiable Random Function, a cryptographic function that produces a
29+
random output that can be verified.
30+
31+
- **Stake**: The amount of cryptocurrency held by a node, which influences its
32+
probability of being selected in sortition.
33+
34+
- **Lovelace**: The smallest unit of the Cardano cryptocurrency, named after Ada
35+
Lovelace.
36+
37+
- **Praos**: A version of the Ouroboros consensus protocol that Leios builds
38+
upon.
39+
40+
- **Mithril**: A protocol or component related to voting or cryptographic proofs
41+
in the Leios framework.
42+
43+
- **Pipeline**: A sequence of stages in the Leios protocol where different types
44+
of blocks are produced and processed.
45+
46+
- **Certificate**: A cryptographic proof that attests to the validity of certain
47+
blocks or transactions.
48+
49+
- **Quorum**: The minimum number of votes required to certify a block or
50+
decision.
51+
52+
- **Epoch**: A fixed period in the blockchain during which certain processes or
53+
calculations are performed.
54+
55+
- **Decentralization Parameter**: A measure of how distributed the control of
56+
the network is among its participants.
57+
58+
- **Throughput**: The rate at which transactions are processed by the network.
59+
60+
- **Latency**: The delay between the submission of a transaction and its
61+
confirmation on the blockchain.
62+
63+
- **Bandwidth**: The amount of data that can be transmitted over the network in
64+
a given time period.
65+
66+
- **Compression**: The process of reducing the size of data to save storage
67+
space or transmission time.
68+
69+
- **Sharding**: A method of partitioning data to improve scalability and
70+
performance.
71+
72+
- **Equivocation**: The act of producing conflicting blocks or messages in a
73+
blockchain network.
74+
75+
- **Freshest First**: A policy for prioritizing newer blocks or transactions
76+
over older ones.

site/docs/how-it-works.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
---
2+
sidebar_position: 3
3+
---
4+
5+
# How it works
6+
7+
Leios' unique design manages a structured flow of transactions. Here's a
8+
breakdown of how it works:
9+
10+
1. **Creating input blocks (IBs)**:<br />
11+
Validators bundle transactions into IBs and broadcast them across the network
12+
13+
2. **Proofs of data availability**:<br />
14+
Validators verify that the IBs contain valid and accessible data
15+
16+
3. **Generating endorser blocks (EBs)**:<br />
17+
EBs aggregate several verified IBs and propose them for inclusion in the
18+
blockchain
19+
20+
4. **Pipelined processing**:<br />
21+
The protocol follows a seven-stage endorsing pipeline (described below)
22+
23+
5. **Voting and certification**:<br />
24+
Validators ensure that IBs contain valid and accessible data by checking
25+
their correctness
26+
This process is primarily handled by the endorser block producer
27+
Includes verifying that all available IBs adhere to network rules and
28+
ensuring transactions are script compliant if required
29+
30+
6. **Final inclusion in the blockchain**:<br />
31+
A certificate (generated from the voting process and referencing the EB) is
32+
stored in the blockchain
33+
This certificate is included in the Praos block (ranking block)
34+
Ensures blockchain efficiency while maintaining a verifiable record of
35+
endorsed transactions
36+
37+
## Leios architecture
38+
39+
The Leios protocol utilizes a pipelined architecture to achieve high throughput.
40+
A pipeline instance comprises seven stages:
41+
42+
1. **Propose**:
43+
- Validators generate and propose IBs containing transaction data
44+
- IBs proposed during this stage are the focus of the current pipeline
45+
instance
46+
47+
2. **Deliver1**:
48+
- Allocates time for proposed IBs to be disseminated throughout the network
49+
- Duration is crucial for ensuring all honest nodes receive IBs before the
50+
next stage
51+
52+
3. **Link**:
53+
- Validators create EBs that reference the IBs generated in the 'Propose'
54+
stage
55+
- EBs serve as containers for grouping and ordering IBs
56+
57+
4. **Deliver2**:
58+
- Allows time for dissemination of any adversarial IBs referenced by EBs in
59+
the 'Link' stage
60+
- Ensures honest nodes have received all relevant IBs before casting votes
61+
62+
5. **Vote1**:
63+
- Validators cast votes for EBs from the 'Link' stage
64+
- Specifically for EBs whose referenced IBs have been successfully delivered
65+
- An EB becomes Vote1-certified if it receives enough votes
66+
67+
6. **Endorse**:
68+
- Vote1-certified EBs are referenced by new EBs created during this stage
69+
- Links EBs across different pipeline instances
70+
- Strengthens overall confirmation of IBs
71+
72+
7. **Vote2**:
73+
- Validators cast final votes for EBs from the 'Endorse' stage
74+
- An EB becomes Vote2-certified if it meets specific criteria
75+
- Must reference a majority of Vote1-certified EBs

site/docs/intro.md

Lines changed: 36 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,50 +2,45 @@
22
sidebar_position: 1
33
---
44

5-
# What is Leios?
5+
# What is Ouroboros Leios?
66

77
:::warning
8+
This website and the Ouroboros Leios project are in the early stages of research
9+
and development. Details may be added, removed, or changed over the coming weeks
10+
and months.
11+
:::
12+
13+
The [Ouroboros consensus protocol](https://docs.cardano.org/about-cardano/learn/ouroboros-overview) lies at the heart of Cardano, driving secure
14+
and efficient transaction settlement while supporting the network's scalability
15+
and robustness.
816

9-
This web site and the Leios R&D project are in their very early stage. More
10-
details will be added in the forthcoming weeks and months.
17+
[Ouroboros Leios](https://iohk.io/en/research/library/papers/high-throughput-blockchain-consensus-under-realistic-network-assumptions/) is the protocol version designed to increase the network's
18+
throughput by optimizing the use of available resources and enabling faster
19+
transaction processing and confirmation.
1120

21+
:::info
22+
Currently, Cardano runs the Ouroboros Praos protocol, which introduced
23+
substantial security and scalability improvements to Ouroboros Classic. Leios
24+
remains in its research and development phase and will extend Praos'
25+
capabilities upon its implementation.
1226
:::
1327

14-
_Ouroboros Leios_ is a novel protocol extending
15-
[Ouroboros Praos](https://docs.cardano.org/about-cardano/learn/ouroboros-overview/)
16-
that aims at dramatically increase the _throughput_ of Cardano network. The core
17-
protocol and its theoretical properties are defined in
18-
[this research paper](https://iohk.io/en/research/library/papers/high-throughput-blockchain-consensus-under-realistic-network-assumptions/).
19-
20-
## In a nutshell
21-
22-
_Leios_ is based on the key idea of _input endorsers_. Whereas in a classical
23-
blockchain, the blocks' body directly contains transactions, in Leios the
24-
blocks' body can also contain references to _Endorser blocks_ which themselves
25-
contain references to so-called _Input blocks_ containing the actual
26-
transactions. Those references are _certified_ through a voting mechanism that
27-
guarantees a majority of validators agree on the content of _Endorser blocks_.
28-
29-
![Input Endorsers](input-endorsers.png)
30-
31-
By decoupling the logic of validating blocks' payload and extending the
32-
blockchain, and limiting the work needed to verify the chain, much higher
33-
throughput can be achieved and new use cases can be unlocked.
34-
35-
## Tell me more
36-
37-
More documentation about Leios can be found in the following sources:
38-
39-
- The [Leios CIP](https://github.com/cardano-foundation/CIPs/pull/379) by Duncan
40-
Coutts, providing rationale and a high-level design of the protocol
41-
- The original
42-
[Research paper](https://iohk.io/en/research/library/papers/high-throughput-blockchain-consensus-under-realistic-network-assumptions/)
43-
is of course the main reference _north star_
44-
- [This video](https://www.youtube.com/watch?v=Czmg9WmSCcI) from Pr. Aggelos
45-
Kiayias, IOG's Chief Scientist, explains Leios in the context of _Scaling
46-
Cardano_
47-
- One of the paper's co-author, Giorgos Panagiotakos, has shot a
48-
[video](https://www.youtube.com/watch?v=YEcYVygdhzU) explaining Leios
49-
- [These slides](https://docs.google.com/presentation/d/1W_KHdvdLNDEStE99D7Af2SRiTqZNnVLQiEPqRHJySqI/edit?usp=sharing)
50-
from Sandro Coretti-Drayton, another researcher that worked on Leios might
51-
also help getting a good intuition about Leios
28+
Leios is specifically designed to solve scalability bottlenecks in existing
29+
systems by acting as a high-throughput overlay on top of base protocols. It
30+
tackles malicious actions like protocol bursts (sudden floods of valid messages
31+
to congest the network) and equivocations (double-signing attacks), enabling
32+
near-optimal transaction processing while preserving security under real-world
33+
network constraints.
34+
35+
To illustrate the Leios concept, imagine a blockchain as a single-lane road
36+
prone to bottlenecks and delays – similar to how an accident on a one-lane road
37+
can block traffic, causing long tailbacks (pending transactions). Leios
38+
addresses this limitation by introducing multiple lanes, allowing multiple cars
39+
(transactions) to travel simultaneously. This approach significantly improves
40+
both speed and efficiency.
41+
42+
The key idea is to separate transaction ordering (which occurs on the base
43+
chain) from transaction diffusion, availability, and validation. Ultimately,
44+
these multiple lanes must merge into a single, orderly flow of vehicles – just
45+
as the blocks of the underlying main chain consolidate transactions into a
46+
final, agreed-upon sequence.

site/docs/protocol-overview.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
sidebar_position: 2
3+
---
4+
5+
# Protocol overview
6+
7+
Leios addresses three interconnected concerns often found in blockchains:
8+
9+
- Transaction diffusion
10+
- Transaction validation and availability
11+
- Transaction ordering
12+
13+
By decoupling transaction processing from consensus, Leios allows for more
14+
efficient and continuous resource usage (eg, CPU and bandwidth). Instead of
15+
experiencing short bursts of network load when blocks are fully created,
16+
validated, and diffused, Leios introduces two core components to facilitate this
17+
decoupling:
18+
19+
## Input blocks (IBs)
20+
21+
- Validators (stakeholders or miners) bundle transactions into lightweight IBs
22+
at high speed
23+
- IBs are generated concurrently, not sequentially, maximizing available
24+
bandwidth
25+
26+
## Endorser blocks (EBs)
27+
28+
- EBs aggregate batches of IBs and undergo a two-phase voting process to certify
29+
their validity and availability
30+
- This is necessary because blocks are divided into two parts: headers and
31+
bodies
32+
- An input block will not be referenced by an endorser block if its body is not
33+
available
34+
35+
## Key Properties
36+
37+
The following properties set Leios apart from traditional blockchain protocols:
38+
39+
- **High throughput**: Leios achieves near-optimal transaction processing
40+
capacity, utilizing almost all available bandwidth
41+
- **Low latency**: Transactions are confirmed quickly, with minimal delays
42+
- **Robust security**: Leios effectively mitigates threats like protocol bursts,
43+
message replays, and equivocations
44+
- **Fairness**: Honest participants contribute to block production
45+
proportionally to their resources (stake or computing power)
46+
- **Scalability**: The system scales smoothly with network capacity and
47+
available CPU resources needed to run verifiable random function (VRF)
48+
lotteries, process blocks and votes, and generate certificates. It maintains
49+
high performance even as participation fluctuates

site/docs/resources.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
sidebar_position: 4
3+
---
4+
5+
# Resources
6+
7+
This page collects various resources about Ouroboros Leios, from technical
8+
papers to presentations and videos.
9+
10+
## Technical Documentation
11+
12+
- [Leios CIP](https://github.com/cardano-foundation/CIPs/pull/379) - The Cardano
13+
Improvement Proposal by Duncan Coutts, providing rationale and a high-level
14+
design of the protocol.
15+
16+
- [Research Paper](https://iohk.io/en/research/library/papers/high-throughput-blockchain-consensus-under-realistic-network-assumptions/) -
17+
The original research paper defining the core protocol and its theoretical
18+
properties.
19+
20+
## Videos
21+
22+
- [Scaling Cardano with Leios](https://www.youtube.com/watch?v=Czmg9WmSCcI) -
23+
Professor Aggelos Kiayias, IOG's Chief Scientist, explains Leios in the
24+
context of scaling Cardano.
25+
26+
- [Understanding Leios](https://www.youtube.com/watch?v=YEcYVygdhzU) - Giorgos
27+
Panagiotakos, one of the paper's co-authors, provides a detailed explanation
28+
of the protocol.
29+
30+
- **Monthly Leios Meetings**
31+
32+
- [October, 2024](https://drive.google.com/file/d/12VE0__S0knHqXXpIVdXGWvDipK0g89p_/view?usp=sharing)
33+
34+
- [November, 2024](https://drive.google.com/file/d/1W4iu4MwOXILXes1Zi43MeM505KAOHXso/view?usp=sharing)
35+
36+
- [December, 2024](https://drive.google.com/file/d/1F07oKxBgdOEasGcstxEavkPCgr58sbIO/view?usp=sharing)
37+
38+
- [January, 2025](https://www.youtube.com/live/6ovcWDCdqFU?si=-dgnvO7353tUyiDZ&t=120)
39+
40+
## Presentations
41+
42+
- [Leios Overview Slides](https://docs.google.com/presentation/d/1W_KHdvdLNDEStE99D7Af2SRiTqZNnVLQiEPqRHJySqI/edit?usp=sharing) -
43+
Presentation by Sandro Coretti-Drayton offering insights into Leios.
44+
45+
- **Monthly Leios Presentations**
46+
47+
- [October, 2024 Slides](https://docs.google.com/presentation/d/1KgjJyP6yZyZKCGum3deoIyooYUOretA9W6dTtXv1fso/edit?usp=sharing)
48+
49+
- [November, 2024 Slides](https://docs.google.com/presentation/d/11LHQeUuv-TQfiy9GwXkrffSimFjSq8tdTB8qIB-Pk3U/edit?usp=sharing)
50+
51+
- [December, 2024 Slides](https://docs.google.com/presentation/d/1LwpcXnXLgrYTSDalJY1SfpeyU_4lIkYhyMy5Kv0Huzw/edit?usp=sharing)
52+
53+
- [January, 2025 Slides](https://docs.google.com/presentation/d/1qKXe3CvAvJGVWAssjrKpRrRABMT6I39E1FxUWQ_PZzo/edit?usp=sharing)
54+
55+
## Tools and Simulations
56+
57+
- [Throughput Simulation](https://www.insightmaker.com/insight/5B3Sq5gsrcGzTD11GyZJ0u/Cardano-Throughput-v0-2) -
58+
Interactive simulation demonstrating Leios' throughput capabilities.
59+
60+
## Development Resources
61+
62+
- [GitHub Repository](https://github.com/input-output-hk/ouroboros-leios) - The
63+
official Leios implementation repository.
64+
65+
- [Cost Estimator](https://leios.cardano-scaling.org/cost-estimator/) - Tool for
66+
estimating resource costs in Leios.

0 commit comments

Comments
 (0)