-
Notifications
You must be signed in to change notification settings - Fork 386
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
Add InfoReservedByte
to compact and sparse shares
#691
Merged
rootulp
merged 40 commits into
celestiaorg:main
from
rootulp:rp/universal-share-encoding
Sep 16, 2022
Merged
Changes from 37 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
0ea94fe
Add ParseInfoReservedByte
rootulp 29ab27e
Update split contiguous shares to account for info byte
rootulp 243aa90
Merge branch 'main' into rp/universal-share-encoding
rootulp fd62420
Fix TestContigShareWriter test
rootulp 522d6c2
Improve names in parseDataLength
rootulp 1592824
Remove unused function parseDataLength
rootulp 6705967
Merge branch 'main' into rp/universal-share-encoding
rootulp 88fbe5f
revert local celestia-core replace
rootulp 89ce0f6
docs: improve docs
rootulp c77951a
docs: fix doc comments
rootulp 23ce09c
feat: move share consts from celestia-core
rootulp f616dee
feat: new consts for universal share encoding
rootulp 2936923
Merge branch 'main' into rp/universal-share-constants
rootulp e2d3858
remove universal share constants
rootulp 70dbf7c
Merge branch 'rp/rename-constants' into rp/universal-share-encoding
rootulp 73dc2f5
fix: pass Test_parseSparseShares
rootulp 75e2b9d
Rename appconsts to use `Compact` and `Sparse` terminology (#710)
rootulp 0facaf6
Revert "Rename appconsts to use `Compact` and `Sparse` terminology (#…
rootulp 9e2e504
Merge branch 'main' into rp/universal-share-encoding
rootulp 027878c
revert change to exactMsgShareSize
rootulp efd1b8f
fix: add info byte to namespace padded shares
rootulp feee270
pass first two test cases of TestMerge
rootulp 8f2d0f0
pass: TestMerge
rootulp f87d4ec
pass: TestTxInclusion by updating proof to use share pkg
rootulp ae55527
pass: TestTxSharePosition
rootulp 1c32037
pass: Test_genRowShares
rootulp e0a2d3e
pass: Test_genOrigRowShares
rootulp 502e8dd
Merge branch 'main' into rp/universal-share-encoding
rootulp 501249c
use share package over types
rootulp 063065a
pass: TestPrepareMessagesWithReservedNamespaces
rootulp ae2fc21
pass: TestCreateCommitment by updating expected bytes
rootulp e11055e
extract doc comments to separate PR
rootulp 175469e
extract separate PR for specifying square size in shares_test.go
rootulp db0351f
test: add TestMsgShareContainsInfoByte
rootulp 159ecc7
test: add TestContiguousMsgShareContainsInfoByte
rootulp 2c6a761
test: add compact share tests
rootulp 0650502
Merge branch 'main' into rp/universal-share-encoding
rootulp 5c4fef7
throw error if isMessageStart != isNewMessage
rootulp 297dd00
Merge branch 'main' into rp/universal-share-encoding
rootulp b067e48
throw error if compact share does not start with a share with isMessa…
rootulp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[optional, prefer different PR due to timing]
I think this should be done in a different PR (if at all) since we want to optimize to merge into #692 asap
but we might refactor these tests into a table drive test that tests evidence and the rest of the shares that are exported. another super minor [nit], would be to use a formula to calculate the size of the random compact shares so that we can incorporate appconsts. (we don't do this other places, but should so that can probably be a separate PR too)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please elaborate on
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah sure,
instead of just using the number 100 or 1000, we could say
appconsts.TxShareSize / 2
orappconsts.TxShareSize * 4