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

Enable validator client to sign execution payload envelope #14346

Merged
merged 2 commits into from
Aug 15, 2024
Merged

Conversation

terencechain
Copy link
Member

Add a helper signExecutionPayloadEnvelope for validator client to sign execution payload envelope

@terencechain terencechain requested a review from a team as a code owner August 14, 2024 21:00
@terencechain terencechain requested review from nalepae, saolyn and james-prysm and removed request for a team August 14, 2024 21:00
@terencechain terencechain added the ePBS EIP-7732 label Aug 14, 2024
if err != nil {
return nil, errors.Wrap(err, "could not get key manager")
}
sig, err := m.Sign(ctx, signReq)
Copy link
Contributor

@shyam-patel-kira shyam-patel-kira Aug 15, 2024

Choose a reason for hiding this comment

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

Had a question, Is there any scenario where m.sign() might take longer to respond or become unresponsive? If yes would adding a timeout to context handle that scenario?

Copy link
Member Author

Choose a reason for hiding this comment

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

Using a local signer is fast, so there's minimal risk of unresponsiveness. However, when using a remote signer, unresponsiveness could occur, and adding a timeout might be a good idea. That said, retrying wouldn't make much sense in this context because we would miss the slot anyway. I prefer not to overcomplicate this right now, but we can revisit this later as part of a more general issue and track it accordingly.

Copy link

@jihoonsong jihoonsong left a comment

Choose a reason for hiding this comment

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

Prysm is now a 6-year-old project. I'm interested in learning the maintainers' thoughts on tech debt in Prysm, such as its magnitude, priority, and how it's being managed.

validator/client/execution_payload.go Outdated Show resolved Hide resolved
Co-authored-by: JihoonSong <[email protected]>
Copy link
Contributor

@potuz potuz left a comment

Choose a reason for hiding this comment

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

I dislike the signatureRequest type, but that's not part of this PR

@potuz potuz merged commit 2ff1dae into epbs Aug 15, 2024
16 checks passed
@potuz potuz deleted the sign-payload branch August 15, 2024 16:10
potuz pushed a commit that referenced this pull request Aug 29, 2024
* Enable validator client to sign execution payload envelope

* Update comment

Co-authored-by: JihoonSong <[email protected]>

---------

Co-authored-by: JihoonSong <[email protected]>
potuz pushed a commit that referenced this pull request Sep 13, 2024
* Enable validator client to sign execution payload envelope

* Update comment

Co-authored-by: JihoonSong <[email protected]>

---------

Co-authored-by: JihoonSong <[email protected]>
potuz pushed a commit that referenced this pull request Sep 18, 2024
* Enable validator client to sign execution payload envelope

* Update comment

Co-authored-by: JihoonSong <[email protected]>

---------

Co-authored-by: JihoonSong <[email protected]>
potuz pushed a commit that referenced this pull request Sep 26, 2024
* Enable validator client to sign execution payload envelope

* Update comment

Co-authored-by: JihoonSong <[email protected]>

---------

Co-authored-by: JihoonSong <[email protected]>
potuz pushed a commit that referenced this pull request Oct 7, 2024
* Enable validator client to sign execution payload envelope

* Update comment

Co-authored-by: JihoonSong <[email protected]>

---------

Co-authored-by: JihoonSong <[email protected]>
potuz pushed a commit that referenced this pull request Oct 14, 2024
* Enable validator client to sign execution payload envelope

* Update comment

Co-authored-by: JihoonSong <[email protected]>

---------

Co-authored-by: JihoonSong <[email protected]>
potuz pushed a commit that referenced this pull request Oct 16, 2024
* Enable validator client to sign execution payload envelope

* Update comment

Co-authored-by: JihoonSong <[email protected]>

---------

Co-authored-by: JihoonSong <[email protected]>
potuz pushed a commit that referenced this pull request Oct 22, 2024
* Enable validator client to sign execution payload envelope

* Update comment

Co-authored-by: JihoonSong <[email protected]>

---------

Co-authored-by: JihoonSong <[email protected]>
potuz pushed a commit that referenced this pull request Oct 28, 2024
* Enable validator client to sign execution payload envelope

* Update comment

Co-authored-by: JihoonSong <[email protected]>

---------

Co-authored-by: JihoonSong <[email protected]>
potuz pushed a commit that referenced this pull request Nov 1, 2024
* Enable validator client to sign execution payload envelope

* Update comment

Co-authored-by: JihoonSong <[email protected]>

---------

Co-authored-by: JihoonSong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ePBS EIP-7732
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants