Validator key generation
Important
It is highly recommended that you perform this step using an air-gapped machine - i.e. a device that has never connected to the public internet before. We will describe a few methods below.
If this is not available, turn off all internet and wireless connection (e.g. Ethernet, WiFi, Bluetooth) before proceeding with the key generation step
In both cases above, make sure you are in a safe environment (e.g. home or office) with a trusted WiFi network for building the validator key generation tool from source. Make sure to also physically block all camera devices - e.g. laptop cameras, Webcams, people standing behind you during this process
Creating an air-gapped machine
The least technical way is to buy a cheap single board computer like the Raspberry Pi from official distributors for less than S$100 SGD
"OS-on-a-stick": For more technical workarounds, we can flash a new USB drive with either Ubuntu or TailsOS and run a completely fresh OS from this USB drive itself. This system will be completely isolated from your host device (e.g. working laptop) and the described method below will not store any files after you remove the USB drive
We will cover Method 2 in this guide.
Flash and install OS
1) Download latest Ubuntu OS here or TailsOS here and follow the respective instructions to verify the checksums of the downloaded file.
2) Download an ISO flasher (e.g. BalenaEtcher) and flash your USB drive with your preferred OS. Refer to the previous section for steps (1) and (2) if needed.
Install and prepare the OS3) Once your USB drive is flashed with your preferred OS, plug it into your working device and reboot the device to go into the boot menu. Depending on your system, you might need to hold F2
, F10
, F12
, or ESC
during the rebooting process to bring up the boot menu.
4) Once you see the boot menu, select the option to boot up from your USB drive instead of your usual storage volume and you should see the following screen.
5) Select *Try or Install Ubuntu
and then Try Ubuntu
when you get to the next screen
Downloading the executable binary file
Download the latest version of the Ethereum validator deposit key generation binary file here and verify the checksum of the downloaded zipped file.
Expected output:
After the checksum verification, extract the contents of the zipped file and change directory into the extracted folder.
Generate your validator signing keys
*BEFORE PROCEEDING TO THE NEXT STEP
Run the following command to generate your validator keys. Replace <number>
with the number of validators you want to set up and <YourWithdrawalAddress>
with the actual withdrawal address depending on your setup choice.
Native Solo Staking Setup: Use a secure Ethereum wallet address that you own--e.g., cold wallet address, SAFE multi-sig address
Diva Staking: Skip this section. The validator key shares will be assigned to you by the Diva client.
Lido CSM: Set your withdrawal address to the following.
RocketPool (WIP):
Stader (WIP):
You will be prompted to key in the following. Select accordingly.
Choose your language (for the session)
Confirm your execution address (your withdrawal address)
Choose the language of your mnemonic word list (seed phrase)
Create a password to encrypt your validator signing keystores
Confirm password created in step 4
Expected output:
Next, your mnemonic word list will be generated. Write it down on a piece of paper or notebook -*Never store this online or on any device that is connected to the internet.
Expected output:
Press any key once you have written your mnemonic down and the tool will prompt you to key in your mnemonic in the same order to verify that you have recorded it correctly.
If you typed in your mnemonic correctly, you will be greeted by an ASCII art of a Rhino!
Expected output:
There will be 2 files generated.
A
keystore-m_<timestamp>.json
file: This is your validator signing keystore that your validator node will use to sign attestations. Keep this file extremely secure.A
deposit_data-<timestamp>.json
: This is the file that links your ETH deposit to your validator. You will only use this once, during the deposit process.
Store both files on a new USB drive by copying the entire staking-deposit-cli folder into it. After that, remove the original copy by running:
Restart your host device (e.g. working laptop) and remove the OS-on-a-stick. There will not be any persistent memory stored on it.
Add validator key to the Node
Now that we have our validator signing keystore, we will need to place it in our validator node itself so that the node can sign attestations and propose blocks.
Plug in the USB drive with your validator signing keystores into your node device. Once the USB drive is plugged in, we will need to identify it. On the terminal of your node, run:
Expected output:
Look for your USB drive in the output list. It will take a name similar to the screenshot above - i.e. sdx
.
After you find it, you can proceed to mount your USB drive onto the /media
folder.
Note: Replace sda1
with the actual name of your USB drive.
You will now be able to access your USB drive via the terminal by going into the /media
folder.
Go into your USB drive and copy your validator signing keystore into the HOME directory of your node.
Unmount and eject your USB drive.
Now you need to create a plain text password file for your validator node to decrypt your validator signing keystores.
First let's print and copy the file name of your validator signing keystore.
With the validator_signing_keystore_file_name
copied, create the password file.
Type in the password you used when generating your validator keys in the earlier step. Then save and exit the file with CTRL + O, enter, CTRL + X
.
Last updated