-
Notifications
You must be signed in to change notification settings - Fork 82
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
fix(fraud): invalid sig is not a fraud #1312
Conversation
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.
Im thinking, that in case of p2p block, its true that invalid signature is not a fraud.
But in case of block applied from da, can it not be considered a fraud in this case (since we know the block is coming from the sequencer)? i guess can be considered equivalent to blob corrupted fraud or non-matching batch info fraud...
actually, in case of p2p block i think fraud detection caused by signature will never happen because the block will be discarded in p2p block validation because invalid signature and it will never by validated before apply.
Therefore, i think its fine in leaving invalid signature as a fraud, since it will only happen when applying blocks from da.
@srene I was thinking similar but I think the code is messier as is right now. |
Imo is better to keep fraud detection for invalid signature in da block. if you think is better to have specific signature check in ValidateDaBlocks, instead of leaving the code as it is, im ok with that. |
@@ -14,7 +14,7 @@ import ( | |||
) | |||
|
|||
var ( | |||
ErrInvalidSignature = errors.New("invalid signature") | |||
ErrInvalidSignature = gerrc.ErrInvalidArgument.Wrap("signature") |
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.
maybe set wrap ErrFault
? so it will trigger the fraud handler
Gonna close, it, not worth worrying about |
PR Standards
Opening a pull request should be able to meet the following requirements
--
PR naming convention: https://hackmd.io/@nZpxHZ0CT7O5ngTp0TP9mg/HJP_jrm7A
Close #1160
<-- Briefly describe the content of this pull request -->
For Author:
godoc
commentsFor Reviewer:
After reviewer approval: