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

Capella #4

Merged
merged 12 commits into from
Mar 27, 2023
Merged

Capella #4

merged 12 commits into from
Mar 27, 2023

Conversation

alex-miller-0
Copy link
Contributor

@alex-miller-0 alex-miller-0 commented Dec 14, 2022

Adds support to generate SignedBLSToExecutionChange objects so that withdrawal credentials can be upgraded from the 0x00 (BLS) version to the 0x01 (execution) type.

Generates a JSON object that is equivalent to the official deposit CLI and validates this with several statically generated test vectors.

Closes #2

@alex-miller-0 alex-miller-0 changed the base branch from main to add-tests-docs December 14, 2022 00:58
@alex-miller-0 alex-miller-0 force-pushed the capella branch 2 times, most recently from 430bd47 to a563ebc Compare December 14, 2022 01:09
Base automatically changed from add-tests-docs to main December 14, 2022 15:52
@alex-miller-0
Copy link
Contributor Author

Following up on this, I have not done any further development or testing and I am watching this issue as a guide: ethereum/staking-deposit-cli#312

src/constants.ts Outdated Show resolved Hide resolved
src/blsToExecution.ts Outdated Show resolved Hide resolved
@alex-miller-0
Copy link
Contributor Author

Unfortunately there appears to be no way to generate a BLS change message statelessly, (i.e. with a random mnemonic) via ethdo: https://github.com/wealdtech/ethdo/blob/master/docs/changingwithdrawalcredentials.md

So this is basically blocked until I can generate some test vectors. I will clean up a few things in the mean time

@alex-miller-0 alex-miller-0 marked this pull request as ready for review March 18, 2023 19:18
src/utils.ts Outdated Show resolved Hide resolved
Copy link
Contributor Author

@alex-miller-0 alex-miller-0 left a comment

Choose a reason for hiding this comment

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

Just a few minor tweaks

src/blsToExecution.ts Show resolved Hide resolved
src/blsToExecution.ts Outdated Show resolved Hide resolved
src/blsToExecution.ts Show resolved Hide resolved
src/__test__/blsToExecutionChange.test.ts Outdated Show resolved Hide resolved
@alex-miller-0
Copy link
Contributor Author

Tests are all passing, output data matches that of the official deposit CLI - I'm going to merge this

@alex-miller-0 alex-miller-0 merged commit 6820e3c into main Mar 27, 2023
@alex-miller-0 alex-miller-0 deleted the capella branch March 27, 2023 19:25
alex-miller-0 added a commit that referenced this pull request Mar 27, 2023
This should have been included in #4. All changes from the previous
release (v0.4.3) come from #4.
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.

[Capella] Add method: SignedBLSToExecutionChange
1 participant