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

don't verify BLS signatures in produced blocks #4184

Merged
merged 1 commit into from
Sep 27, 2022
Merged

don't verify BLS signatures in produced blocks #4184

merged 1 commit into from
Sep 27, 2022

Conversation

tersec
Copy link
Contributor

@tersec tersec commented Sep 27, 2022

This is time-consuming and, since blocks are verified anyway, superfluous.

if skip_randao_verification_bool:
{skipBlsValidation, skipRandaoVerification}
else:
{skipBlsValidation},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we still need to validate the randao - unlike attestations et al, it hasn't gone through sig-checks at all (when coming from rest)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only avoids validating RANDAO when skip_randao_verification_bool, as before

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, I wonder if we should use a SigVerified cast instead which would generate better code

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only avoids validating RANDAO when skip_randao_verification_bool, as before

also, I wonder if we should use a SigVerified cast instead which would generate better code

#4187

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants