-
Notifications
You must be signed in to change notification settings - Fork 75
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
[Bellatrix]: Use block_header instead of block for block signing requests (BLOCK_V2) #547
Conversation
...tance-tests/src/test/java/tech/pegasys/web3signer/dsl/utils/Eth2BlockSigningRequestUtil.java
Outdated
Show resolved
Hide resolved
...nce-tests/src/test/java/tech/pegasys/web3signer/tests/signing/SigningAcceptanceTestBase.java
Outdated
Show resolved
Hide resolved
.../main/java/tech/pegasys/web3signer/core/service/http/handlers/signing/eth2/BlockRequest.java
Outdated
Show resolved
Hide resolved
...pegasys/web3signer/core/service/http/handlers/signing/eth2/Eth2SignForIdentifierHandler.java
Outdated
Show resolved
Hide resolved
...pegasys/web3signer/core/service/http/handlers/signing/eth2/Eth2SignForIdentifierHandler.java
Outdated
Show resolved
Hide resolved
core/src/main/resources/openapi-specs/eth2/signing/schemas.yaml
Outdated
Show resolved
Hide resolved
core/src/main/resources/openapi-specs/eth2/signing/schemas.yaml
Outdated
Show resolved
Hide resolved
Is this PR just for backward compatibility? |
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.
LGTM
@james-prysm This PR is to use optimized block signing request starting from Bellatrix fork. See #437 and #486 for more details as well. Feel free to reach out to the team on Discord. |
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.
LGTM - Just a few questions really :)
...-tests/src/test/java/tech/pegasys/web3signer/dsl/signer/runner/CmdLineParamsDefaultImpl.java
Show resolved
Hide resolved
...-tests/src/test/java/tech/pegasys/web3signer/tests/signing/KeyLoadAndSignAcceptanceTest.java
Show resolved
Hide resolved
...nce-tests/src/test/java/tech/pegasys/web3signer/tests/signing/SigningAcceptanceTestBase.java
Show resolved
Hide resolved
core/src/main/resources/openapi-specs/eth2/signing/schemas.yaml
Outdated
Show resolved
Hide resolved
@james-prysm This PR is partly to optimise the block signing so less data is needed to be passed in when signing block. It also means we can support the Bellatrix fork as we don't need to make additional changes to include ExecutionPayload with this change as long as are using the block_header with the body root in the request. |
PR Description
For Bellatrix and onward forks, use
block_header
instead ofblock
for block signing request (BLOCK_V2
).block_header
containsbody_root
instead of complete beacon blockbody
which significantly reduces the traffic between beacon client (such as Teku) and Web3Signer for block signing request.Either
block_header
orblock
can be used to calculate signing root by the Web3Signer. For backward compatibility withPHASE0
andALTAIR
forks, onlyblock
is required; for Bellatrix and later forks, onlyblock_header
is required.Fixed Issue(s)
See #437
Documentation
doc-change-required
label to this PR if updates are required.Changelog