You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given that Decode returns the original shares + parity shares, why does rebuildShares have logic to separately rebuild extended shares? It seems possible to entirely remove the isExtendedPartIncomplete conditional.
The text was updated successfully, but these errors were encountered:
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.
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: