-
Notifications
You must be signed in to change notification settings - Fork 1
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
Change attestation flow to be pull based #1109
Merged
Merged
Changes from 37 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
cd442be
Add trait for verifying attestations
HCastano 7e64302
Clean up some of the Staking Config comments
HCastano 0dae766
Use `AttestationHandler` in Staking pallet
HCastano f9c80f5
Add `Attestation::request_attestation()` extrinsic
HCastano b69d97e
Check that there's only one attestation request per account
HCastano ce9faf8
Write to `Threshold*` data structures in `validate()`
HCastano 293496e
Allow mock attestation handler to fail
HCastano 4912d0a
Add convenience implementation for `AttestationHandler
HCastano cee9776
Do some cleanup in Attestation pallet
HCastano 7a172e4
For `validate` tests don't use the `ValidationQueue`
HCastano 6c4a582
Input expected keys into quote verification method directly
HCastano 8cd7f2c
Add test for checking failed quote verification
HCastano a742f74
Add some docs explaining how the quote request system works
HCastano 6c07c18
Remove `AttestationQueue`, `KeyProvider`, and `ValidationQueue`
HCastano bf987c4
Clean up some of the staking tests
HCastano c1689a4
Add more relevant event after `validate()` is successful
HCastano 54ce8c5
Update runtime implementation
HCastano 7d07b1a
Bump metadata
HCastano 1f83ea4
Ignore the TSS attestation tests
HCastano d5f2563
Feature gate `AttestationHandler`
HCastano 3323a42
Missed a few `AttestationHandler` mock implementations
HCastano 0d40754
Remove unused associated types
HCastano 25aec6e
Get rid of `on_initialize()` benchmarks
HCastano bd27fbb
Remove `MaxPendingAttestations` associated type
HCastano 7774d40
Add method for requesting quotes to `AttestationHandler`
HCastano 2af32aa
Use threshold account when verifying quote
HCastano 594ad42
Get `validate()` bench working again
HCastano 9844c94
Add `nonce` to `request_quote()`
HCastano 52768aa
Accept more quote types in Staking mock
HCastano 4b2afcc
Tidy up `validate()` bench
HCastano 12a139b
Strip down bench for `attest` and add one for `request_attestation`
HCastano e3171be
Use better dummy endpoint in `validate()` bench
HCastano 485b42b
RustFmt
HCastano 9561e97
Remove Attestation pallet from Staking mock
HCastano 00d4ee2
Remove TODO
HCastano 6f82b3c
Add `CHANGELOG` entry
HCastano bbd6309
Remove another TODO, this should become an issue
HCastano 5abb84d
TaploFmt
HCastano 964c1fa
Use published version of `tdx-quote`
HCastano db63ad2
Mention one more config type added in `CHANGELOG`
HCastano 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
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.
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.
So this has been changed to do nothing and always pass for the sake of the TSS tests.
I think it makes sense to get rid of it with this new sort of model, but I would want to do that in a follow up.
We can also change the implementation a bit to actually check attestations if that's something that's desired. Let me know your thoughts.