-
-
Save infosecual/d7de7005bf54732a863dce21d503e445 to your computer and use it in GitHub Desktop.
bls credential validation crash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user@laptop:~/repos/infosecual/staking-deposit-cli$ ./deposit.sh generate-bls-to-execution-change | |
linux-gnu | |
Running deposit-cli... | |
***Using the tool on an offline and secure device is highly recommended to keep your mnemonic safe.*** | |
Please choose your language ['1. العربية', '2. ελληνικά', '3. English', '4. Français', '5. Bahasa melayu', '6. Italiano', '7. 日本語', '8. 한국어', '9. Português do Brasil', '10. român', '11. Türkçe', '12. 简体中文']: [English]: 3 | |
Please choose the (mainnet or testnet) network/chain name ['mainnet', 'goerli', 'sepolia', 'zhejiang']: [mainnet]: | |
Please enter your mnemonic separated by spaces (" "). Note: you only need to enter the first 4 letters of each word if you'd prefer.: never ski use pet common nose pipe assault cloth renew cement save avoid wing attract news bid priority dash replace shield pair candy smile | |
Please enter the index position for the keys to start generating withdrawal credentials in ERC-2334 format. [0]: | |
Please enter a list of the validator index number(s) of your validator(s) as identified on the beacon chain. Split multiple items with whitespaces or commas.: never ski use pet common nose pipe assault cloth renew cement s1,2,3,4,5,6,7,8,9,10 | |
Please enter a list of the old BLS withdrawal credentials of your validator(s). Split multiple items with whitespaces or commas.: 1,2,3,4,5,6,7,8,9,10 | |
Traceback (most recent call last): | |
File "/home/user/repos/infosecual/staking-deposit-cli/./staking_deposit/deposit.py", line 63, in <module> | |
cli() | |
File "/home/user/.local/lib/python3.10/site-packages/click/core.py", line 829, in __call__ | |
return self.main(*args, **kwargs) | |
File "/home/user/.local/lib/python3.10/site-packages/click/core.py", line 782, in main | |
rv = self.invoke(ctx) | |
File "/home/user/.local/lib/python3.10/site-packages/click/core.py", line 1257, in invoke | |
sub_ctx = cmd.make_context(cmd_name, args, parent=ctx) | |
File "/home/user/.local/lib/python3.10/site-packages/click/core.py", line 700, in make_context | |
self.parse_args(ctx, args) | |
File "/home/user/.local/lib/python3.10/site-packages/click/core.py", line 1048, in parse_args | |
value, args = param.handle_parse_result(ctx, opts, args) | |
File "/home/user/.local/lib/python3.10/site-packages/click/core.py", line 1630, in handle_parse_result | |
value = invoke_param_callback(self.callback, ctx, self, value) | |
File "/home/user/.local/lib/python3.10/site-packages/click/core.py", line 123, in invoke_param_callback | |
return callback(ctx, param, value) | |
File "/usr/local/lib/python3.10/dist-packages/staking_deposit-2.4.0-py3.10.egg/staking_deposit/utils/click.py", line 99, in callback | |
processed_input = processing_func(user_input) | |
File "/usr/local/lib/python3.10/dist-packages/staking_deposit-2.4.0-py3.10.egg/staking_deposit/cli/generate_bls_to_execution_change.py", line 104, in <lambda> | |
validate_bls_withdrawal_credentials_list(bls_withdrawal_credentials_list), | |
File "/usr/local/lib/python3.10/dist-packages/staking_deposit-2.4.0-py3.10.egg/staking_deposit/utils/validation.py", line 248, in validate_bls_withdrawal_credentials_list | |
return [validate_bls_withdrawal_credentials(cred) for cred in bls_withdrawal_credentials_list] | |
File "/usr/local/lib/python3.10/dist-packages/staking_deposit-2.4.0-py3.10.egg/staking_deposit/utils/validation.py", line 248, in <listcomp> | |
return [validate_bls_withdrawal_credentials(cred) for cred in bls_withdrawal_credentials_list] | |
File "/usr/local/lib/python3.10/dist-packages/staking_deposit-2.4.0-py3.10.egg/staking_deposit/utils/validation.py", line 226, in validate_bls_withdrawal_credentials | |
bls_withdrawal_credentials_bytes = normalize_bls_withdrawal_credentials_to_bytes(bls_withdrawal_credentials) | |
File "/usr/local/lib/python3.10/dist-packages/staking_deposit-2.4.0-py3.10.egg/staking_deposit/utils/validation.py", line 213, in normalize_bls_withdrawal_credentials_to_bytes | |
bls_withdrawal_credentials_bytes = bytes.fromhex(bls_withdrawal_credentials) | |
ValueError: non-hexadecimal number found in fromhex() arg at position 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment