-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: simplify
rebuildShares
(#197)
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.
- Loading branch information
Showing
1 changed file
with
2 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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