Skip to content
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

Merged
merged 5 commits into from
Jul 29, 2022
Merged

Conversation

terencechain
Copy link
Member

fixes #11111

Validates builder's signature in SignedBid. If the signature is invalid, we default back to the local EE

@terencechain terencechain added Ready For Review A pull request ready for code review Builder PR or issue that supports builder related work labels Jul 28, 2022
@terencechain terencechain self-assigned this Jul 28, 2022
@terencechain terencechain requested a review from a team as a code owner July 28, 2022 00:00
@@ -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 {
Copy link
Member

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 ?

Copy link
Member Author

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?)

@prylabs-bulldozer prylabs-bulldozer bot merged commit 5005fbf into develop Jul 29, 2022
@terencechain terencechain deleted the validate-builder-sig branch June 5, 2024 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Builder PR or issue that supports builder related work Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Verify signatures on bids
2 participants