-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Validate builder signature for Bid #11124
Conversation
@@ -117,6 +118,10 @@ func (vs *Server) getPayloadHeader(ctx context.Context, slot types.Slot, idx typ | |||
if err != nil { | |||
return nil, err | |||
} | |||
if err := vs.validateBuilderSignature(bid); err != nil { |
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.
How does this work if we dont run with a builder ?
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.
getAndBuildHeaderBlock
and getPayloadHeader
won't get called becausevs.BlockBuilder.Configured()
will return false. I also can be super defensive and check vs.BlockBuilder.Configured()
again before GetHeader
and return an error if it's false. (That's something you will like?)
fixes #11111
Validates builder's signature in
SignedBid
. If the signature is invalid, we default back to the local EE