-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
InfoReservedByte
to compact and sparse shares (#691)
* Add ParseInfoReservedByte * Update split contiguous shares to account for info byte * Fix TestContigShareWriter test * Improve names in parseDataLength * Remove unused function parseDataLength * revert local celestia-core replace * docs: improve docs * docs: fix doc comments * feat: move share consts from celestia-core * feat: new consts for universal share encoding * remove universal share constants * fix: pass Test_parseSparseShares * Rename appconsts to use `Compact` and `Sparse` terminology (#710) * feat: move share consts from celestia-core * feat: new consts for universal share encoding * remove universal share constants * address @sweexordious feedback * Revert "Rename appconsts to use `Compact` and `Sparse` terminology (#710)" This reverts commit 75e2b9d. * revert change to exactMsgShareSize * fix: add info byte to namespace padded shares Makes `TestParsePaddedMsg` pass * pass first two test cases of TestMerge * pass: TestMerge * pass: TestTxInclusion by updating proof to use share pkg * pass: TestTxSharePosition * pass: Test_genRowShares * pass: Test_genOrigRowShares * use share package over types * pass: TestPrepareMessagesWithReservedNamespaces * pass: TestCreateCommitment by updating expected bytes * extract doc comments to separate PR * extract separate PR for specifying square size in shares_test.go * test: add TestMsgShareContainsInfoByte * test: add TestContiguousMsgShareContainsInfoByte * test: add compact share tests * throw error if isMessageStart != isNewMessage * throw error if compact share does not start with a share with isMessageStart=true
- Loading branch information
Showing
11 changed files
with
170 additions
and
32 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
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
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
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
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
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
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
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
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
Oops, something went wrong.