Skip to content

Deneb: Implement EIP-7044#12577

Merged
terencechain merged 1 commit intodeneb-integrationfrom
deneb-eip-7044
Jul 22, 2023
Merged

Deneb: Implement EIP-7044#12577
terencechain merged 1 commit intodeneb-integrationfrom
deneb-eip-7044

Conversation

@prestonvanloon
Copy link
Member

@prestonvanloon prestonvanloon commented Jun 28, 2023

What type of PR is this?

Feature

What does this PR do? Why is it needed?

EIP-7044 essentially freezes the signature domain to the Capella fork data in Deneb. This PR updates the signing domain computation and verification in deneb to fulfill the requirements of the EIP.

Which issues(s) does this PR fix?

Other notes for review

This PR is rather small and could possibly be a good candidate for the develop branch. It does not require any Deneb specific structs (except beacon state) and shouldn't effect the critical path as the new logic only runs on a state version of Deneb or greater. Nevermind, it depends on deneb beacon state for tests.

@prestonvanloon prestonvanloon requested a review from a team as a code owner June 28, 2023 21:04
@prestonvanloon prestonvanloon requested review from james-prysm, kasey, rauljordan and terencechain and removed request for a team June 28, 2023 21:04
@prestonvanloon prestonvanloon changed the base branch from deneb-integration to develop June 28, 2023 21:15
@prestonvanloon prestonvanloon marked this pull request as draft June 28, 2023 21:15
@prestonvanloon prestonvanloon changed the base branch from develop to deneb-integration June 28, 2023 21:18
@prestonvanloon prestonvanloon marked this pull request as ready for review June 28, 2023 21:19
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.

One optional feedback

fork := st.Fork()
// EIP-7044: Beginning in Deneb, fix the fork version to Capella for signed exits.
// This allows for signed validator exits to be valid forever.
if st.Version() >= version.Deneb && domain == params.BeaconConfig().DomainVoluntaryExit {
Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks like the cheaper check is domain == params.BeaconConfig().DomainVoluntaryExit, so it might be worth it to check that first. Very micro-optimization though

@terencechain terencechain merged commit e26a90d into deneb-integration Jul 22, 2023
@terencechain terencechain deleted the deneb-eip-7044 branch July 22, 2023 12:29
james-prysm pushed a commit that referenced this pull request Aug 4, 2023
terencechain pushed a commit that referenced this pull request Aug 16, 2023
kasey pushed a commit that referenced this pull request Aug 21, 2023
kasey pushed a commit that referenced this pull request Aug 22, 2023
kasey pushed a commit that referenced this pull request Aug 22, 2023
kasey pushed a commit that referenced this pull request Aug 22, 2023
kasey pushed a commit that referenced this pull request Aug 23, 2023
kasey pushed a commit that referenced this pull request Aug 23, 2023
kasey pushed a commit that referenced this pull request Aug 23, 2023
kasey pushed a commit that referenced this pull request Aug 24, 2023
kasey pushed a commit that referenced this pull request Aug 24, 2023
prestonvanloon added a commit that referenced this pull request Aug 24, 2023
prestonvanloon added a commit that referenced this pull request Aug 24, 2023
prestonvanloon added a commit that referenced this pull request Aug 24, 2023
prestonvanloon added a commit that referenced this pull request Aug 24, 2023
prestonvanloon added a commit that referenced this pull request Aug 24, 2023
prestonvanloon added a commit that referenced this pull request Aug 24, 2023
prestonvanloon added a commit that referenced this pull request Aug 24, 2023
prestonvanloon added a commit that referenced this pull request Aug 24, 2023
prestonvanloon added a commit that referenced this pull request Aug 24, 2023
prestonvanloon added a commit that referenced this pull request Aug 24, 2023
prestonvanloon added a commit that referenced this pull request Aug 30, 2023
prestonvanloon added a commit that referenced this pull request Aug 30, 2023
prestonvanloon added a commit that referenced this pull request Aug 31, 2023
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.

2 participants