-
Notifications
You must be signed in to change notification settings - Fork 352
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
Add Eth1 address withdrawal support #195
Conversation
def validate_eth1_withdrawal_address(cts: click.Context, param: Any, address: str) -> HexAddress: | ||
if address is None: | ||
return None | ||
if not is_hex_address(address): |
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.
Note: the prefix 0x
is optional here.
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.
hi
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.
hello word
/cc @djrtwo |
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.
I like that this is being added. 👍
One issue is that by adding this functionality to generate_keys
it is automagically added to both the new-mnemonic
and existing-mnemonic
commands. The latter of which doesn't have tests and isn't mentioned in the README
.
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! Let's get it merged.
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.
commit and merge
Add Eth1 address withdrawal support
Fix #188, support ethereum/consensus-specs#2149
--eth1_withdrawal_address
argument: If this field is set and valid, the given Eth1 address will be used to create the withdrawal credentials. Otherwise, it will generate withdrawal credentials with the mnemonic-derived withdrawal public key.validate_deposit
: add public key and withdrawal credentials validations.