-
Notifications
You must be signed in to change notification settings - Fork 30
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 verification methods #74
Closed
Closed
Changes from 39 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
5a6ef4c
Add verification method for DirectoryProof
vqhuy 9c1b72c
[WIP] Client struct in protocol package
vqhuy 1935b5d
[WIP] Verify temporary bindings from client side
vqhuy 3ddad77
Verify temporary bindings from client side
vqhuy 20a99bb
s/ErrorBreakPromise/ErrorBrokenPromise
vqhuy 83d661c
Verify TB based on the current STR
vqhuy 7f59771
Add doc for Verify method
vqhuy b0e934c
Better naming & proof type check should be included in ConsistencyChecks
vqhuy 24514c8
Fix cc.verifyProofTypeWithTB
vqhuy 5217637
Fix TB's verification
vqhuy b4c0427
Add todo note for missed epoch verifications
vqhuy 4896c04
Use canonical TODO
vqhuy 98769da
Makes the verifying flow clearer
vqhuy 6cd4985
Remove tests with regard to #111
vqhuy a6c3bf2
Remove unused constant
vqhuy 8ac625d
Separate TB's verifications
vqhuy 4af67ae
Separate verifications of each request type:
vqhuy e91c017
Refine verification logic
vqhuy 0fd9641
Fix verifyFulfilledPromise
vqhuy 2e3c340
verifyAuthPath and verifySTR should not depend on the current state s…
vqhuy d8342b6
Refactor tests
vqhuy cbfda66
Fix comments (thanks to @liamsi and @arlolra)
vqhuy 78aee54
Abstract proof type away from the return value.
vqhuy c023d7d
Rebase master
vqhuy 6491633
Split STR verification.
vqhuy 41cc371
Make some of the failure cases (proofType, error, reqType combination…
vqhuy 80e453c
Separate updating str from checking consistency
arlolra 4a345e8
Separate updating tbs from checking consistency
arlolra 8e97d88
savedSTR should not be nil when initialization
vqhuy e5d36a7
Remove unused errors
vqhuy a2e2a48
Consolidate hash chain verification
vqhuy 31c5b35
Refactor checks
vqhuy 25a356b
Fix fulfilled TB verification.
vqhuy fec6cff
Add comment for HandleResponse
vqhuy ea46aaa
Re-organize code
vqhuy 09784a6
Revert 25a356b0c3e3e74b31989965740c8a6a653d5fca
vqhuy d2ed2c9
tb.Verify() instead (credit to @Liamsi)
vqhuy 33e5f74
Revert 8e97d880c55c91618ef5e64a8f7527b335ad29ce
vqhuy d7581cc
Fix 31c5b35ba92a378441da8c49aaf73396e03d175b
vqhuy 16949b2
Refactor
vqhuy 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
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.
Is
undeterminedProof
still relevant? Doesn't seem like it's being used.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.
It is being used in https://github.com/coniks-sys/coniks-go/pull/74/files/d7581cc23856723abcb0162f00cdec9d8b302905#diff-7e6b87a14023c0ebd22fb0b547fb3832R102 to avoid repeating
bytes.Equal()
calls.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.
Ok, sorry, I missed that.