-
Notifications
You must be signed in to change notification settings - Fork 80
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
feat: extends error handling to detect byzantine data and unordered shares in tree construction #242
Merged
Merged
feat: extends error handling to detect byzantine data and unordered shares in tree construction #242
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
72b640b
todos
staheri14 d5bc116
Merge remote-tracking branch 'origin/master' into BEFP-for-nmt-failures
staheri14 48296aa
returns ByzantineErrData on root calculation failure or mismatching p…
staheri14 0e8ca50
adds godoc for verifyAgainstColRoots and renames oldShares to shares
staheri14 cc82d3f
return ErrByzantineData when the root verification of the orthogonal …
staheri14 6b77271
cleans up the docs and comments
staheri14 9271b33
fixes a typo
staheri14 9ed797d
fixes a wrong index, and updates the orthogonal axis prior to returni…
staheri14 ec15029
removes redundant copy of rebuilt shares
staheri14 6caeb28
reverts setting the missing share
staheri14 45d651a
Merge remote-tracking branch 'origin/master' into BEFP-for-root-calcu…
staheri14 e7380b0
Merge remote-tracking branch 'origin/master' into BEFP-for-root-calcu…
staheri14 12a449c
use the already copied shares
staheri14 5c0cbbd
Merge branch 'master' into BEFP-for-root-calculation-failures
staheri14 72c5510
initial tests
staheri14 113f1c3
resolves nmt wrapper dependency
staheri14 b75d1f2
uses NMT for the unordered shares test
staheri14 a523a65
adds the wrapper package with implementation
staheri14 5cf9a86
adds some incomplete tests
staheri14 9546941
updates the test to consume the wrapper implementation
staheri14 ace3ea5
refactors the wrapper to access to a custom namespace size
staheri14 c0f00d8
sets proper value for parity share namespace
staheri14 291cae6
adds shareValues as argument to the createTestEdsWithNMT
staheri14 8ac7b14
adds tests for unordered shares
staheri14 44ff983
Merge branch 'main' into BEFP-for-root-calculation-failures
staheri14 ab4b0b4
Merge branch 'BEFP-for-root-calculation-failures' into sanaz/BEFP-uno…
staheri14 7d464eb
adds further criteria to the tests
staheri14 d3101f5
includes test description
staheri14 d4a564b
makes nmtwrapper types and functions un-importable
staheri14 145ec9f
adds godoc for newDataSquare
staheri14 90e2060
revises godocs of nmtwrapper file
staheri14 0df133a
creates DA header once
staheri14 9848458
adds corruption coordinates and corrupted index
staheri14 4b3a719
Merge branch 'main' into sanaz/BEFP-unordered-shares-mocked-wrapper
staheri14 5619a74
resolves linter issues
staheri14 97af7e2
reformats the code and adds check for the corrupted index
staheri14 2146d0e
adds some context about the nmtwrapper file
staheri14 c2a2d4b
fixes linter issues
staheri14 c4b41e9
removes sharesValue from test struct
staheri14 976934a
removes error type as all tests have identical error type
staheri14 a525e49
fixes a bug
staheri14 2dcfb41
addresses reviewers feedback
staheri14 7e4b44e
Merge branch 'main' into sanaz/BEFP-unordered-shares-mocked-wrapper
staheri14 1a4e055
fixes a variable name
staheri14 a364d79
replaces reference to the nmtwrapper with a permalink
staheri14 799ee73
adds _test suffix to the nmtwrapper file
staheri14 1e7b68f
removes line number from the permalink
staheri14 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
Oops, something went wrong.
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] there's only one codec so we can remove a layer of nesting from this test case
See: #216
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.
Thanks for mentioning that! I totally agree with eliminating that nested loop. But to keep our PRs more focused and organized, I'd suggest saving this change for a separate PR. Especially since we will have an upcoming PR specifically targeting that issue.