-
Notifications
You must be signed in to change notification settings - Fork 676
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stateless_validation] Add helper functions for chunk endorsement val…
…idation (#10464) Couple of awesome changes here... - Expose validator_mandates_config as we need this to calculating total stake. See function `does_chunk_have_enough_stake` - `Vec<Option<Box<Signature>>>`??? Wth is this??? Type aliased it to `ChunkEndorsementSignatures` - Added `validate_signature` function to `ChunkEndorsement` that checks whether a signature + public key is valid or not. This is used for verifying chunk endorsement signature in header. - `ChunkValidatorAssignments` just got coooooler!! Now we have a `does_chunk_have_enough_stake` function that calculates whether we have 2/3rd stake and we are good to go? - Some other minor improvements to `ChunkValidatorAssignments` like adding `ordered_chunk_validators` function and `contains` function
- Loading branch information
Shreyan Gupta
authored
Jan 18, 2024
1 parent
de2a723
commit cd32e1a
Showing
9 changed files
with
86 additions
and
19 deletions.
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