-
Notifications
You must be signed in to change notification settings - Fork 0
Initial draft of the Partial Fanout changes in the spec #22
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
Open
vrom911
wants to merge
5
commits into
master
Choose a base branch
from
vrom911/partial-fanout
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
3cf76f4
Initial draft of the Partial Fanout changes in the spec
vrom911 0e7e374
Write clearer about bls
vrom911 79a5c91
Add limits and BLS papers
vrom911 269c871
Highlight new changes in RED
vrom911 e930e7c
Add accumulator to snapshot
vrom911 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,6 +37,7 @@ \subsection{Notation} | |
| \item $\concat : \tyBytes^* \to \tyBytes$ is concatenating bytes, we also use operator $\bigoplus$ for this | ||
| \item $\hash : x \to \tyBytes$ denotes a collision-resistant | ||
| hashing function and $x^{\#}$ indicates the hash of $x$ | ||
| \todo{Update hash function usage to support partial fanout where needed} | ||
| \item $\bytes : x \to \tyBytes$ denotes an invertible serialisation function | ||
| mapping arbitrary data to bytes | ||
| \item $a || b = \concat(\bytes(a), \bytes(b))$ is an operator which concatenates the $\bytes(b)$ to the $\bytes(a)$ | ||
|
|
@@ -83,6 +84,39 @@ \subsection{Public key multi-signature scheme}\label{sec:multisig} | |
| out the $ver$ suffix for verification key such that $k = k^{ver}$ for better | ||
| readability. | ||
|
|
||
| \subsection{BLS Accumulators for Partial Fanout}\label{sec:bls-accumulators} | ||
|
|
||
| \noindent To enable partial fanout when UTxO sets are too large for a single transaction, | ||
vrom911 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| the protocol uses BLS (Boneh-Lynn-Shacham) accumulators that support partial distribution | ||
| proofs. This allows distributing a subset of UTxOs while proving that the remaining | ||
| UTxOs are still valid and can be distributed in subsequent transactions. | ||
|
|
||
| \begin{definition}[BLS Accumulator] | ||
| A BLS accumulator scheme provides the following operations: | ||
| \begin{itemize} | ||
| \item $\accSetup$ generates public parameters for the accumulator system | ||
| \item $\accCommit(U)$ creates a commitment to a UTxO set $U$ | ||
| \item $\accWitness(C, u)$ generates a membership witness for UTxO $u$ in commitment $C$ | ||
| \item $\accVerify(C, u, w)$ verifies that witness $w$ proves $u$ is in commitment $C$ | ||
| \item $\accExclude(C, S)$ generates an exclusion proof for subset $S$ from commitment $C$ | ||
| \item $\accVerifyExclude(C, S, \pi)$ verifies that exclusion proof $\pi$ allows removal of $S$ from $C$ | ||
| \end{itemize} | ||
| \end{definition} | ||
|
|
||
| \begin{definition}[Partial Distribution] | ||
| For a UTxO set $U$ and a subset $S \subseteq U$ to be distributed: | ||
| \begin{itemize} | ||
| \item $\accUTxO(U)$ creates a BLS accumulator commitment to the UTxO set $U$ | ||
| \item $\accPartial(U, S)$ creates an exclusion proof showing that subset $S$ can be distributed | ||
| \item $\accVerifyPartial(C, S, \pi)$ verifies that exclusion proof $\pi$ allows distribution of $S$ from commitment $C$ | ||
| \end{itemize} | ||
| \end{definition} | ||
|
|
||
| \noindent The BLS accumulator enables the protocol to handle large UTxO sets by automatically falling back | ||
| to partial distribution when full fanout exceeds transaction size limits. The accumulator provides | ||
|
||
| cryptographic guarantees that distributed UTxOs are valid and that remaining UTxOs are still | ||
| available for future distribution. | ||
|
|
||
| \subsection{Extended UTxO}\label{sec:eutxo} | ||
| The Hydra Head protocol is specified to work on the so-called Extended UTxO (EUTxO) ledgers | ||
| like Cardano. | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.