Skip to content

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

@zah zah enabled auto-merge (squash) September 27, 2022 13:40
@zah zah merged commit df03d81 into unstable Sep 27, 2022
@zah zah deleted the 5gC branch September 27, 2022 14:19
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