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

[staking_deposit-cli] Impossible to generate multiple BLS to execution change files at once #347

Open
mateuszsokola opened this issue Mar 31, 2023 · 3 comments

Comments

@mateuszsokola
Copy link

mateuszsokola commented Mar 31, 2023

Hello,

I tried to generate multiple withdrawal credentials for my validator but the tools is always failing. I need to create them one at a time.

CPU: 2.6 GHz 6-Core Intel Core i7 (MBP 16" late 2019)
Version: staking_deposit-cli-d7b5304-darwin-amd64
OS: Ventura 13.2.1 (22D68)

  1. [FAIL] Generate withdrawal credentials for validator 463436 and 463437 (Goerli) - separator space:
$ ./deposit generate-bls-to-execution-change

***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]:
Please choose the (mainnet or testnet) network/chain name ['mainnet', 'goerli', 'sepolia', 'zhejiang']:  [mainnet]: goerli
Please enter your mnemonic separated by spaces (" "). Note: you only need to enter the first 4 letters of each word if you'd prefer.: <<CORRECT MNEMONIC>>
Please enter the index position for the keys to start generating withdrawal credentials in ERC-2334 format. [0]: 1
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.: 463436 463437
Please enter a list of the old BLS withdrawal credentials of your validator(s). Split multiple items with whitespaces or commas. The withdrawal credentials are in hexadecimal encoded form.: 0x0091c2884b06a21268410cd5d4a51e78fe7dd22adb70d9a62191185a0588be14 0x0091c2884b06a21268410cd5d4a51e78fe7dd22adb70d9a62191185a0588be14
Please enter the 20-byte execution address for the new withdrawal credentials. Note that you CANNOT change it once you have set it on chain.:  <<WALLET ADDRESS>>

**[Warning] you are setting an Eth1 address as your withdrawal address. Please ensure that you have control over this address.**

Repeat your execution address for confirmation.:  <<WALLET ADDRESS>>

**[Warning] you are setting an Eth1 address as your withdrawal address. Please ensure that you have control over this address.**


[Error] The given withdrawal credentials does not match the old BLS withdrawal credentials that mnemonic generated.
  1. [FAIL] Generate withdrawal credentials for validator 463436 and 463437 (Goerli) - separator comma:
$ ./deposit generate-bls-to-execution-change

***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]:
Please choose the (mainnet or testnet) network/chain name ['mainnet', 'goerli', 'sepolia', 'zhejiang']:  [mainnet]: goerli
Please enter your mnemonic separated by spaces (" "). Note: you only need to enter the first 4 letters of each word if you'd prefer.:  <<CORRECT MNEMONIC>>
Please enter the index position for the keys to start generating withdrawal credentials in ERC-2334 format. [0]: 1
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.: 463436,463437
Please enter a list of the old BLS withdrawal credentials of your validator(s). Split multiple items with whitespaces or commas. The withdrawal credentials are in hexadecimal encoded form.: 0x0091c2884b06a21268410cd5d4a51e78fe7dd22adb70d9a62191185a0588be14,0x0091c2884b06a21268410cd5d4a51e78fe7dd22adb70d9a62191185a0588be14
Please enter the 20-byte execution address for the new withdrawal credentials. Note that you CANNOT change it once you have set it on chain.:  <<WALLET ADDRESS>>

**[Warning] you are setting an Eth1 address as your withdrawal address. Please ensure that you have control over this address.**

Repeat your execution address for confirmation.:  <<WALLET ADDRESS>>

**[Warning] you are setting an Eth1 address as your withdrawal address. Please ensure that you have control over this address.**


[Error] The given withdrawal credentials does not match the old BLS withdrawal credentials that mnemonic generated.
  1. [SUCCESS] Generate credentials for validator 463436:
$ ./deposit generate-bls-to-execution-change

***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]:
Please choose the (mainnet or testnet) network/chain name ['mainnet', 'goerli', 'sepolia', 'zhejiang']:  [mainnet]: goerli
Please enter your mnemonic separated by spaces (" "). Note: you only need to enter the first 4 letters of each word if you'd prefer.: <<CORRECT MNEMONIC>>
Please enter the index position for the keys to start generating withdrawal credentials in ERC-2334 format. [0]: 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.: 463436
Please enter a list of the old BLS withdrawal credentials of your validator(s). Split multiple items with whitespaces or commas. The withdrawal credentials are in hexadecimal encoded form.: 0x0091c2884b06a21268410cd5d4a51e78fe7dd22adb70d9a62191185a0588be14
Please enter the 20-byte execution address for the new withdrawal credentials. Note that you CANNOT change it once you have set it on chain.: <<WALLET ADDRESS>>

**[Warning] you are setting an Eth1 address as your withdrawal address. Please ensure that you have control over this address.**

Repeat your execution address for confirmation.:  <<WALLET ADDRESS>>

**[Warning] you are setting an Eth1 address as your withdrawal address. Please ensure that you have control over this address.**


Success!
Your SignedBLSToExecutionChange JSON file can be found at: /Users/.../code/staking_deposit-cli-d7b5304-darwin-amd64/bls_to_execution_changes


Press any key.
  1. [SUCCESS] Generate credentials for validator 463437:
$ ./deposit generate-bls-to-execution-change

***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]:
Please choose the (mainnet or testnet) network/chain name ['mainnet', 'goerli', 'sepolia', 'zhejiang']:  [mainnet]: goerli
Please enter your mnemonic separated by spaces (" "). Note: you only need to enter the first 4 letters of each word if you'd prefer.: <<CORRECT MNEMONIC>>
Please enter the index position for the keys to start generating withdrawal credentials in ERC-2334 format. [0]: 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.: 463437
Please enter a list of the old BLS withdrawal credentials of your validator(s). Split multiple items with whitespaces or commas. The withdrawal credentials are in hexadecimal encoded form.: 0x0091c2884b06a21268410cd5d4a51e78fe7dd22adb70d9a62191185a0588be14
Please enter the 20-byte execution address for the new withdrawal credentials. Note that you CANNOT change it once you have set it on chain.: <<WALLET ADDRESS>>

**[Warning] you are setting an Eth1 address as your withdrawal address. Please ensure that you have control over this address.**

Repeat your execution address for confirmation.: <<WALLET ADDRESS>>

**[Warning] you are setting an Eth1 address as your withdrawal address. Please ensure that you have control over this address.**


Success!
Your SignedBLSToExecutionChange JSON file can be found at: /Users/.../code/staking_deposit-cli-d7b5304-darwin-amd64/bls_to_execution_changes


Press any key.
@mateuszsokola mateuszsokola changed the title [staking_deposit-cli] Impossible to generate multiple BLS to execution change [staking_deposit-cli] Impossible to generate multiple BLS to execution change files at once Mar 31, 2023
@yzhuang
Copy link

yzhuang commented Mar 31, 2023

463436 and 463437 have the same withdrawal credential, so they used the same validator start_index.
This is the same as the issue pointed out in #345

@ksheni56
Copy link

ksheni56 commented Apr 10, 2023

I got the same error when try to doing this in one run, same withdrawal credentials for my two validators. I had to use one validator ID/index 0 for each run, so I've two bls2exe json which I can upload both, correct?

@yzhuang
Copy link

yzhuang commented Apr 11, 2023

I got the same error when try to doing this in one run, same withdrawal credentials for my two validators. I had to use one validator ID/index 0 for each run, so I've two bls2exe json which I can upload both, correct?

Correct.

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

No branches or pull requests

3 participants