-
Notifications
You must be signed in to change notification settings - Fork 39
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(rs-drive-abci)!: commit and vote extensions signature verification #915
feat(rs-drive-abci)!: commit and vote extensions signature verification #915
Conversation
…commit-validation
…commit-validation
…commit-validation
@@ -150,7 +150,7 @@ pub struct PlatformConfig { | |||
pub verify_sum_trees: bool, | |||
|
|||
/// The default quorum type | |||
pub quorum_type: QuorumType, | |||
pub quorum_type: String, |
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.
Why have this as a String?
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.
because there is a bug in envy / serde, and flattened structs don't deserialize correctly into enums, ints, etc. softprops/envy#26
let validation_result = received_withdrawals.verify_signatures( | ||
&self.config.abci.chain_id, | ||
self.config.quorum_type(), | ||
quorum_hash, | ||
height, | ||
round, | ||
validator_public_key, | ||
); |
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.
I think this should return a validation result instead of a result
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.
Returning SimpleValidationResult, moved part of logic to received_withdrawals.verify_signatures
Issue being fixed or feature implemented
We want to check if digital signatures returned by Tednerdash are valid.
What was done?
How Has This Been Tested?
Added unit tests that test vectors generated in Tenderdash
Breaking Changes
Added new configuration option: CHAIN_ID
Checklist:
For repository code-owners and collaborators only