-
Notifications
You must be signed in to change notification settings - Fork 8
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
validatedSignatureChainHash added to withdrawSigned #35
validatedSignatureChainHash added to withdrawSigned #35
Conversation
How does it add security on the SC level? This hash is now included as part of the message but the SC has no way of veryfing anything about it |
Here is the idea @naiemk address token It uses these values and the provided To connect the What will this benefit? The idea is that when the SC verifies the |
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.
@SibghatUllah1997 @zikriya I just had a conversation with @naiemk about the signatureChainhash
and the need to include it on the withdrawal contract side vs the security benefit. There doesn't seem to be an enhanced security benefit in including this data on the SC side. The reason being that the master node has already validated this information, and if the hash is included or not in the SC (withdrawal request) it doesn't increase the security. Because if an attacker is able to compromise the authority signature they can simply add any hash data to the validatedSignature hash and have a valid withdrawal item.
The if we were to validated the signatureChain on chain then we'd need to add generator and Validators as signers and validate their signatures too which will significantly complicate the withdrawal item and increase gas. This is already being addressed when we integrate with QPN.
So for now, here are the next steps:
- @SibghatUllah1997 rever the change on the withdrawal functions to remove
validatedSignatureChainHash
- @zikriya when generating the signature on
masterNode
. Make sure that the signature chain is validated, but don't include it in the data that is used to generate the withdrawal signature.
Resubmit the PR when changes are complete and tag @naiemk and myself in Slack please.
New Feature: validatedSignatureChainHash
File/Module Affected: withdrawSigned functionality
Description:
A new feature, validatedSignatureChainHash, has been introduced.
Purpose: This enhancement is implemented to improve the security and integrity of the withdrawSigned function. It adds an additional layer of verification for node signatures.
Impact: Ensures that the signatures are verified more robustly, enhancing the overall security of the process.