Skip to content

Conversation

@potuz
Copy link
Contributor

@potuz potuz commented Jan 22, 2025

Verifying the block signature adds a batch and performs a full hash of the block unnecessarily.

@potuz potuz requested a review from a team as a code owner January 22, 2025 10:57
@potuz potuz enabled auto-merge January 22, 2025 11:29
@potuz potuz disabled auto-merge January 22, 2025 11:29
Copy link
Collaborator

@terencechain terencechain left a comment

Choose a reason for hiding this comment

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

This breaks the Beacon API implementation: https://ethereum.github.io/beacon-APIs/#/ValidatorRequiredApi/publishBlockV2. If broadcast_validation: consensus is specified, the signature is expected to be verified before broadcasting.

To summarize:

  • Propose using the Prysm API: broadcast without verifying
  • Propose using the Beacon API with default settings: broadcast without verifying
  • Propose using the Beacon API with broadcast_validation: consensus: verify before broadcasting

You will need to add a separate check here: https://github.com/prysmaticlabs/prysm/blob/e36564c4d3c2e0ca5ce379bb67fbeb296e4598f5/beacon-chain/rpc/eth/beacon/handlers.go#L1164.

@potuz potuz force-pushed the dont_check_block_signature_on_processing branch from 12517d4 to a63a278 Compare January 22, 2025 16:33
@potuz potuz force-pushed the dont_check_block_signature_on_processing branch from a63a278 to 251a1ae Compare December 29, 2025 19:17
@potuz potuz added this pull request to the merge queue Dec 29, 2025
Merged via the queue into develop with commit 9deec69 Dec 29, 2025
18 checks passed
@potuz potuz deleted the dont_check_block_signature_on_processing branch December 29, 2025 20:01
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