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

Validity rule for MessageShareCommitments to be sorted by square size #727

Closed
Tracked by #650
rootulp opened this issue Aug 31, 2022 · 4 comments
Closed
Tracked by #650
Labels
documentation Improvements or additions to documentation enhancement New feature or request specs directly relevant to the specs

Comments

@rootulp
Copy link
Collaborator

rootulp commented Aug 31, 2022

Context

Problem

The message share commitments in a WirePayForData aren't sorted in a particular order so validators must sort them in order to determine if all relevant square sizes have been signed over.

Proposal

Add a new validity rule that states: "message share commitments must be sorted in ascending square size order"

Links

@rootulp rootulp added documentation Improvements or additions to documentation enhancement New feature or request labels Aug 31, 2022
@rootulp
Copy link
Collaborator Author

rootulp commented Aug 31, 2022

This issue likely includes updating the MessageShareCommitment from HashDigest to more closely match the current implementation:

// ShareCommitAndSignature defines the
message ShareCommitAndSignature {
uint64 k = 1;
bytes share_commitment = 2;
bytes signature = 3; // signature on one SignedTransactionPayForData
}

Screenshot

Screen Shot 2022-08-31 at 1 20 39 PM

@adlerjohn
Copy link
Member

If we're allowing the WireMayForMessage to be non-exhaustive w.r.t. k, then yes.

@adlerjohn adlerjohn transferred this issue from celestiaorg/celestia-specs Sep 19, 2022
@rootulp rootulp added the specs directly relevant to the specs label Sep 21, 2022
@rootulp
Copy link
Collaborator Author

rootulp commented Oct 31, 2022

This validity rule is no longer necessary if we adopt #835

@adlerjohn adlerjohn closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2022
@rootulp
Copy link
Collaborator Author

rootulp commented Nov 1, 2022

Closed b/c we assumed we're adopting #835

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request specs directly relevant to the specs
Projects
None yet
Development

No branches or pull requests

2 participants