-
Notifications
You must be signed in to change notification settings - Fork 81
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
Why rebuild extended shares? #196
Labels
Comments
rootulp
added
enhancement
New feature or request
question
Further information is requested
labels
Jun 26, 2023
IIRC, Infectious behaves differently and The other reason for this is probably refactoring that left redundant code in. |
Ahh I see, thanks for pointing this out. It appears Infectious |
This should probably have been originally fixed within the Infectious codec IMO, rather that doubling work for other codecs. |
rootulp
added a commit
that referenced
this issue
Jun 28, 2023
Closes #196 Since [`Decode`](https://github.com/rootulp/rsmt2d/blob/1f1904acc114b41dff838ad1d530feacc1d9f199/leopard.go#L46-L54) returns original + parity shares, there is no need to separately rebuild the parity shares. This PR removes an unnecessary conditional inside `rebuildShares` which let us also remove a param to that function. After the refactor, a few helper methods were no longer used so they were also removed.
0xchainlover
pushed a commit
to celestia-org/rsmt2d
that referenced
this issue
Aug 1, 2024
Closes celestiaorg/rsmt2d#196 Since [`Decode`](https://github.com/rootulp/rsmt2d/blob/1f1904acc114b41dff838ad1d530feacc1d9f199/leopard.go#L46-L54) returns original + parity shares, there is no need to separately rebuild the parity shares. This PR removes an unnecessary conditional inside `rebuildShares` which let us also remove a param to that function. After the refactor, a few helper methods were no longer used so they were also removed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
rsmt2d/extendeddatacrossword.go
Lines 244 to 275 in 328fe4d
Question
Given that
Decode
returns the original shares + parity shares, why doesrebuildShares
have logic to separately rebuild extended shares? It seems possible to entirely remove theisExtendedPartIncomplete
conditional.The text was updated successfully, but these errors were encountered: