-
Notifications
You must be signed in to change notification settings - Fork 58
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
Refactor Attestation verification #2004
Merged
Merged
Conversation
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
fed-franz
force-pushed
the
refactor_verify_att
branch
from
July 23, 2024 14:43
39576f9
to
8427751
Compare
fed-franz
changed the title
Refactor verify_block_att
Refactor Attestation verification
Jul 23, 2024
fed-franz
force-pushed
the
refactor_verify_att
branch
2 times, most recently
from
July 25, 2024 11:36
27fe6da
to
e4ca204
Compare
Fixes a bug in verify_att, which returned the set of all committee members instead of just the actual voters. verify_votes is modified to return the set of voters corresponding to the quorum committee. verify_step_votes is modified to return a vector of voters instead of a committee.
Fixes a bug in verify_att, which returned the set of all committee members instead of just the actual voters. - verify_att now get voters from verify_step_votes and merge them by using merge_voters. - merge_committees is deleted as redundant
Allow verify_att to check if the Attestation result is what expected. - verify_att now takes expected_result and check it against att - verify_success_att is removed as redundant
fed-franz
force-pushed
the
refactor_verify_att
branch
from
July 26, 2024 08:40
f657ef6
to
abbc821
Compare
herr-seppia
approved these changes
Jul 29, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
Rename:
verify_block_att
toverify_att
VoterWithCredit
toVoter
Add:
to_consensus_header
method forHeader
to_voters
method forCluster<PublicKey>
get_step_voters
get_step_committee
merge_voters
Remove:
verify_quorum
verify_success_att
merge_committees
Refactor:
get_voters
is modified to only return voters, without re-verifying the attestationverify_att
is modified to get aconsensus_header
parameterverify_att
is modified to checks the expected resultVoter
is modified to be(PublicKey, usize)
to ease its handlingreward_slash_and_update_root
is updated as a consequenceBugfixes:
verify_att
to correctly return the set of voters, instead of the whole committees