Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review of sortition sections of tech report #119

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bwbush
Copy link
Collaborator

@bwbush bwbush commented Dec 27, 2024

Please review the sortition sections of the first technical report.

@bwbush bwbush requested a review from pagio December 27, 2024 14:14
@bwbush bwbush self-assigned this Dec 27, 2024
@bwbush bwbush requested a review from rrtoledo December 28, 2024 14:17
@bwbush bwbush force-pushed the bwbush/review-sortition branch from 557b93c to 28a7535 Compare December 28, 2024 16:01
@bwbush bwbush requested a review from will-break-it January 3, 2025 14:35
@Saizan
Copy link
Contributor

Saizan commented Jan 9, 2025

@bwbush sortition for IB and EB production starts from a protocol parameter expressed as a probability, but the protocol documents instead specify a production rate (per slot, or per pipeline). How do we handle the case where the specified rate is greater than 1?

I believe we have been discussing an EB/pipeline rate between 1 and 2 to have a good chance there's at least one EB per pipeline, and an IB/slot rate around 5 to use more of the bandwidth while keeping the size comparable to current praos blocks.


### Input blocks

In Leios, even if a node wins the IB lottery several times, it is only allowed to build a single block. This is identical to the sortition rule in Praos. Let $f_\text{IB}$ be the protocol parameter specifying the per-slot probability of a node producing an IB:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"it is only allowed to build a single block", there maybe cases where it would sense that the same producer creates more than one IBs in the same slot, e.g., for the sharding scheme we were discussing.


> [!CAUTION]
>
> - [ ] Is there a theoretical argument (like the law of large numbers) why splitting the stake doesn't make a visible difference?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From Praos ( https://eprint.iacr.org/2017/573.pdf ), p.10:
"In particular, when leadership is determined according to ϕf , the probability of a stakeholder
becoming a slot leader in a particular slot is independent of whether this stakeholder acts as a single
party in the protocol, or splits its stake among several “virtual” parties."
Our case is a bit more complicated as by splitting the stake the adversary may try to get more blocks.
Still the above claim at least ensures that the probability that the adversary gets no blocks remains the same.


> [!IMPORTANT]
>
> The above argument needs reworking because it doesn't account for various effects like the EB being per-pipeline, propagation delays, and the RB being per-slot or that there are multiple pipelines. There also may be ambiguities in the specification for the case when several EBs are waiting for an RB: presumably, the "freshest first" rule would be applied here, so the newest EB would go into the RB. We might need simulation for this analysis.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that this part needs some more work. E.g., it may be wiser to avoid following the freshest-first rule here, and instead allow the creation of a (limited size) queue of certified EBs that is absorbed by the more frequent creation of RBs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants