Skip to content

Commit

Permalink
Sortition section of tech report (#118)
Browse files Browse the repository at this point in the history
Wrote tech-report section of sortition of IBs and EBs.
  • Loading branch information
bwbush authored Dec 26, 2024
1 parent 2b841d5 commit 829391c
Show file tree
Hide file tree
Showing 9 changed files with 1,653 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Logbook.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Leios logbook

## 2024-12-26

### Sortition

Analyses of sortition for IBs, EBs, and votes were made and added to the draft of the first technical report.

- All of the sortition is based on Bernoulli trials for each stake of lovelace.
- A probabilistic analysis shows that splitting stake among many nodes only provides a minor benefit in winning the lottery more times.
- The IB lottery is per-slot and limits a node to building a maximum of one IB per slot.
- Careful selection of protocol parameters ensures a high probability of at least one IB in each pipeline.
- The EB lottery is per-pipeline and limits a node to building a maximum of one EB per pipeline.
- The formulation of the EB lottery implies that there will always be a significant chance that a pipeline contains no EB.
- Setting protocol parameters so that there is a high probability of an EB in a pipeline makes the protocol more susceptible to influence by adversaries with significant stake.
- However, the unevenness in stake distribution or splitting of adversarial stake does not exacerbate the situation.
- The pipeline length should be several multiples of the inverse of the active-slot coefficient, in order that there is a high probability for an RB to be available for an EB certificate.
- The vote lottery can award multiple votes to the same node if they have a lot of stake and are luck.
- Nodes nearly saturated with stake have an appreciable chance of receiving several votes.
- The mathematics and code for determining from the VRF the number of votes a node winds is more complex and involves complications to avoid floating-point computations.
- Limiting nodes to a maximum of one vote would likely be safe if the mean number of votes is no larger than the effective decentralizations (i.e., the number of nodes with appreciable stake) would likely be safe, though it might result is larger concentrations of stake having smaller voting rewards, and it would greatly simplify the computation of sortition.

## 2024-12-23

### Rust simulation
Expand Down
193 changes: 193 additions & 0 deletions docs/technical-report-1.md

Large diffs are not rendered by default.

178 changes: 178 additions & 0 deletions images/leios-eb-rb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
142 changes: 142 additions & 0 deletions images/prob-leios-vote.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
297 changes: 297 additions & 0 deletions images/prob-no-eb-1000.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
297 changes: 297 additions & 0 deletions images/prob-no-eb-2500.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
297 changes: 297 additions & 0 deletions images/prob-no-eb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
118 changes: 118 additions & 0 deletions images/prob-no-ib.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
111 changes: 111 additions & 0 deletions images/splitting-stake.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 829391c

Please sign in to comment.