bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 61쪽 중 31쪽
3b6aaa7eeeaf1a38af0a8fe88b9e4b1f61f236d2e64d95733327a62@relay.ultrasound.money,https://0x8c4ed5e24fe5c6ae21018437bde147693f68cda427cd1122cf20819c30eda7ed74f72dece09bb313f2a1855595ab677d@titanrelay.xyz
```
{% endcode %}
In this script, you can input any mev-relay endpoint after "endpoints=". Add the ones you want to use.
The output should look like this:
{% code overflow="wrap" %}
```
...
https://0xa7ab7a996c8584251c8f925da3170bdfd6ebc75d50f5ddc4050a6fdc77f2a3b5fce2cc750d0865e05d7228af97d69561@agnostic-relay.net
ping OK
pingMeasure 186.935525ms Poor
https://0xa1559ace749633b997cb3fdacffb890aeebdb0f5a3b6aaa7eeeaf1a38af0a8fe88b9e4b1f61f236d2e64d95733327a62@relay.ultrasound.money
ping OK
pingMeasure 84.627757ms Avg
...
```
{% endcode %}
Usually you will have some relays with poor performance, meaning more than 100ms latency. You should remove those and stay connected to all relays with good or average performance.
This works the same way on Holesky.
# Receiving your keys
Etherfi doesn't require a Bond for operating as a Solostaker so we keep control of the validator keys and split them on our end. You receive your keyshare prepared for use in an Obol DVT cluster.
There is no DKG ceremony.
After exchanging GPG keys with Etherfi you will receive an encrypted folder with your keyshares:
<pre class="language-markup"><code class="lang-markup">├──node0
<strong> ├──charon-enr-private-key
</strong> ├──cluster-lock.json
├──deposit-data.json
├──validator-keys
├──keystore-0.json
├──...
</code></pre>
You just upload this folder to your node with the CDVN repo and join the cluster by running it.
# Obol Key Splitting
{% hint style="info" %}
These instructions are used by Ether.fi to split the keys into keyshares for the Obol DVT validators.
As a solo staker, you do not need to follow or even understand the steps, but they are provided here for your interest.
{% endhint %}
* [Step 1: Clone the charon repo](#step-1-clone-the-charon-repo)
* [Step 2: Create a directory containing keys to split](#step-2-create-a-directory-containing-keys-to-split)
* [Step 3: Split the keys into keyshares](#step-3-split-the-keys-into-keyshares)
### Step 1: Clone the charon repo
Clone the [charon](https://github.com/ObolNetwork/charon) repo into a new directory called `charon-key-splitter`.
```bash
cd ~
mkdir charon-key-splitter
cd charon-key-splitter
git clone https://github.com/ObolNetwork/charon.git .
mkdir split_keys
```
### Step 2: Create a directory containing keys to split
Copy the existing validator `keystore.json` files into this new folder. Alongside them, with a matching filename but ending with `.txt` should be the password to the keystore. E.g., `keystore-0.json` `keystore-0.txt`. These matching `.txt` files can be generated with a bash script.
At the start of this process, you should have a file tree that looks something like this.
```
├── charon-key-splitter
├── split_keys
├── keystore-0.json
├── keystore-1.json
...
├── keystore-*.json
```
Create the bash script file.
```bash
cd split_keys
vim generate_txt_files.sh
```
```bash
#!/bin/bash
# Get the input string (password) from the user
echo "Enter the string (password) to be used in all the .txt files:"
read input_string
# Iterate through all .json files in the directory
for file in *.json; do
# Check if the file is a regular file (not a directory)
if [[ -f "$file" ]]; then
# Get the file name without the extension
filename="${file%.*}"
# Create a .txt file with the same name and add the input string to it
echo "$input_string" > "${filename}.txt"
fi
done
```
Save this script and make it executable.
```bash
chmod +x generate_txt_files.sh
```
Run the script.
```bash
./generate_txt_files.sh
```
At the end of this process, you should have a tree like this.
```
├── split_keys
├── keystore-0.json
├── keystore-0.txt
├── keystore-1.json
├── keystore-1.txt
...
├── keystore-*.json
├── keystore-*.txt
```
### Step 3: Split the keys into keyshares
Split the validator keys into keyshares.
```bash
CHARON_VERSION= # E.g. v0.16.0
NETWORK= # E.g. goerli
CLUSTER_NAME= # E.g. EtherfiSoloStaker
WITHDRAWAL_ADDRESS= # Set withdrawal address
FEE_RECIPIENT_ADDRESS= # Set fee recipient address
THRESHOLD= # E.g. 3
NODES= # E.g. 4
docker run --rm -v $(pwd):/opt/charon obolnetwork/charon:${CHARON_VERSION} create cluster --name="${CLUSTER_NAME}" --network="${NETWORK}" --withdrawal-addresses="${WITHDRAWAL_ADDRESS}" --fee-recipient-addresses="${FEE_RECIPIENT_ADDRESS}" --split-existing-keys --split-keys-dir=/opt/charon/split_keys --threshold ${THRESHOLD} --nodes ${NODES}
```
In the `.charon` directory there will now be a `cluster` directory containing sub-directories, each named `node0`, `node1`, etc.
{% hint style="info" %}
**I can't see the `.charon` directory?! 👀**
On most filesystems, files and directories that start with a . are hidden by default.
On a Unix system (Mac or Linux) on the command line you can see hidden files and directories using the `-a` flag for the `ls` command:
<pre><code><strong>ls -la
</strong></code></pre>
{% endhint %}
```
.charon/cluster/
├─ node[0-*]/ Directory for each node
├─ charon-enr-private-key Charon networking private key for node authentication
├─ cluster-lock.json Cluster lock defines the cluster lock file which is signed by all nodes
├─ deposit-data.json Deposit data file is used to activate a Distributed Validator on DV Launchpad
├─ validator_keys Validator keystores and password
├─ keystore-*.json Validator private share key for duty signing
├─ keystore-*.txt Keystore password files for keystore-*.json
```
Each solo staker participate will receive one of these directories in a compressed format. The exact format depends on the machine being used. The file formats needed for Avado and Dappnode machines are slightly different and are explained below.
{% tabs %}
{% tab title="Avado File Format" %}
Avado requires the files to be uploaded in a `.zip` format.
Make sure you are in the `.charon/cluster/` directory with all the `node*` directories.
For each node directory, compress the folder using the following command:
```bash
zip -r node0.zip node0
```
{% endtab %}
{% tab title="Dappnode File Format" %}
Dappnode requires the files to be uploaded in a `.tar.xz` format.
Make sure you are in the `.charon/cluster/` directory with all the `node*` directories.
For each node directory, compress the folder using the following command:
```bash
tar -cJf node0.tar.xz node0
```
{% endtab %}
{% endtabs %}
# SSV Explained
### What is SSV?
To earn ETH rewards, a validator must stay online and available. However, the current Ethereum staking system's strict rules mean a validator can only run on one node, creating a single point of failure. This issue is addressed by dividing the validator key into multiple KeyShares, distributed across several nodes. If a node goes offline, the remaining nodes with KeyShares ensure the validator continues to operate, creating a decentralized, slashing-free staking environment.
SSV enables the validator key to be generated, split into KeyShares, and securely stored offline. These KeyShares are then distributed to non-trusting nodes that operate the validator and sign data, providing a secure staking solution without handing over validator keys to operators.
In the Etherfi Solostaker program, you will be part of a distributed cluster as an independent operator.
# SSV Holesky Setup
To participate in an SSV cluster you'll need to first create an SSV Operator. After that you'll be able run an SSV node as part of our testnet clusters.
### Step 1: Create an SSV Operator
Go to the [SSV webapp](https://app.ssv.network/join/operator), connect the wallet you want to use and select Holesky.
Then click on Register Operator.
<figure><img src="https://1029745181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG3Lk76lfvw9ecPIg0mK8%2Fuploads%2Fgit-blob-3bac5d5403bae502c37dc8dc607c9a114c467870%2Fssv_operator_1.png?alt=media" alt=""><figcaption></figcaption></figure>
The next screen will ask you for an [Operator public key](https://docs.ssv.network/operator-user-guides/operator-node/installation#generate-operator-keys-encrypted).
<figure><img src="https://1029745181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG3Lk76lfvw9ecPIg0mK8%2Fuploads%2FVu44txV3jE4tI1pafDAq%2FScreenshot%202024-08-12%20at%2012.02.49.png?alt=media&token=bdbd553e-0471-4ac8-a42b-90181ef4ecea" alt=""><figcaption></figcaption></figure>
You need to generate this on your machine. The first step is to create a file called password with a secure password in it.
Open your terminal.
Pick anything you like or generate a password with ssl (OPTIONAL):
```
openssl rand -hex 32
```
Copy the value and navigate to the directory where you want to create your SSV operator keys. Run this command with your password pasted in:
```
echo "<MY_OPERATOR_PASSWORD>" >> password
```
Make sure Docker is running to run the next command.
{% code overflow="wrap" %}
```
docker run --name ssv-node-key-generation -v ./password:/password -it "bloxstaking/ssv-node:latest" /go/bin/ssvnode generate-operator-keys --password-file=password && docker cp ssv-node-key-generation:/encrypted_private_key.json ./encrypted_private_key.json && docker rm ssv-node-key-generation
```
{% endcode %}
This command will pull a docker image to create your keys. It may fail for some reason. In that case just read the error description to solve it as it is usually descriptive enough.
If successful, your key file should be created now. Open it in any way you prefer, for example with VSCode and read the contents. They should have this structure (example from SSV):
```json
{
"checksum": {
"function": "sha256",
"message": "affa5deb755d8ad13a039117dc6850d2a25ad62a870a1e1f8d4ef...",
"params": {}
},
"cipher": {
"function": "aes-128-ctr",
"message": "3022f3b5043b77eda7f336dd0218e6b7e633a3f42f7ae92ed9...",
"params": { "iv": "12e787716b0e3c30f2d68ed05464c16f" }
},
"kdf": {
"function": "pbkdf2",
"message": "",
"params": {
"c": 262144,
"dklen": 32,
"prf": "hmac-sha256",
"salt": "bc71d3213fe17f15879e6bc468b30eeeb2d0969176491d87f9b00a37bf314a4c"
}
},
"pubKey": "LS0tLS1CRUdJTiBSU0EgUFVCTElDIEtFWS0tLS0tCk1JSUJJak..."
}
```
Copy the value of the pubKey and go back to the SSV webapp. Enter the pubkey in the form:
<figure><img src="https://1029745181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG3Lk76lfvw9ecPIg0mK8%2Fuploads%2F5h8JII4trpYISJvVb0qJ%2Fssv_operator_2.png?alt=media&token=dce9ac86-59ca-468b-b251-7cbec400648e" alt=""><figcaption></figcaption></figure>
Make sure you set the operator to private.
On the next screen, set your operator fee to 0 and click on Next:
<figure><img src="https://1029745181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG3Lk76lfvw9ecPIg0mK8%2Fuploads%2FM0lWUa9aiQmZ9sbOODxz%2FScreenshot%202024-08-12%20at%2012.29.07.png?alt=media&token=eb9d6629-9734-4a3d-a705-80e8a68c32d7" alt=""><figcaption></figcaption></figure>
Finish the setup on the next page with clicking on Register Operator and signing the transaction. If succesful, the page should look like this:
<figure><img src="https://1029745181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG3Lk76lfvw9ecPIg0mK8%2Fuploads%2FxNHGQbHfGOoBf1nIfxxV%2FScreenshot%202024-08-12%20at%2012.30.59.png?alt=media&token=57e33cb7-aec0-4fab-8dbe-baad72ce548e" alt=""><figcaption></figcaption></figure>
You are almost there! You successfully created your SSV Operator.
### Step 2: Authorize Etherfi to add your Operator
Click on Manage Operators now. Click on the operator you just created:
<figure><img src="https://1029745181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG3Lk76lfvw9ecPIg0mK8%2Fuploads%2FJy7S53QcApmAJ25eWnr6%2FScreenshot%202024-08-12%20at%2012.32.57.png?alt=media&token=bd0dee62-ede6-4908-8aab-abe80e9c8799" alt=""><figcaption></figcaption></figure>
In the next screen, click on the menu on the top right and then on permission settings:
<figure><img src="https://1029745181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG3Lk76lfvw9ecPIg0mK8%2Fuploads%2FzoJdnPcvDu4Emyntv0XR%2FScreenshot%202024-08-12%20at%2012.35.35.png?alt=media&token=4bfe4791-4702-488a-993a-0282e8a4859b" alt=""><figcaption></figcaption></figure>
Click on Authorized Addresses and "Add Authorized Address".
We use this address for the Holesky testnet clusters:
```
0x052F66698F0f23B6d568311b130a827729b57C5d
```
Add it in the field, click on "Add and Save" and sign the transaction.
<figure><img src="https://1029745181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG3Lk76lfvw9ecPIg0mK8%2Fuploads%2FpOnY6mVaeqylmijsXruU%2FScreenshot%202024-08-12%20at%2012.38.00.png?alt=media&token=7924b774-1c16-48df-b1df-5edf220f72ce" alt=""><figcaption></figcaption></figure>
That's it! You registered your SSV Operator and authorized Etherfi to add you to a cluster on Holesky!
# Holesky Dappnode Setup
Now that you created your SSV Operator you need to run it alongside a Holesky node.
This guide explains how to set up an SSV Node on Dappnode OS.
## 1. Sync your Holesky Node
The first step is to sync a Holesky Node and activate MEV Boost. Go to your Staker Tab, go to Holesky the Holesky tab on the top. Select an Execution Client - all but Reth work with SSV at the time of writing, a consensus client and Mev Boost Holesky.
Select all Relays on MEV Boost.
<figure><img src="https://1029745181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG3Lk76lfvw9ecPIg0mK8%2Fuploads%2FyxcS7RKqGaHjcJGnwjdJ%2Fdappnode_holesky_staker_tab.png?alt=media&token=f033f69b-2eba-4b17-b41f-4978736492d2" alt=""><figcaption></figcaption></figure>
Click on "Apply Changes" to save your Staker setup. Go back to the Dashboard, you should now see your Holesky clients in the overview starting to sync.
You can wait for your node to sync or continue with the next step right away.
## 2. Run the Holesky SSV Node
Your next step is to install the SSV Holesky package on your Dappnode.
### Option 1: DAppStore
Go to the DAppStore and click on the "SSV Holesky" package. It should be one of the first in the Dnp section.
<figure><img src="https://1029745181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG3Lk76lfvw9ecPIg0mK8%2Fuploads%2FKbD9GagcYSXO1RmS4jWZ%2FDappstoreSSVHolesky.png?alt=media&token=2d87a288-500e-43a7-8113-6b26e01b951d" alt=""><figcaption></figcaption></figure>
### Option 2: IPFS Search
If you cannot see the SSV Holesky Package here, go to the official [Dappnode SSV package on Github](https://github.com/dappnode/DAppNodePackage-ssv-generic/releases) and check the releases. Check which release has the tag "latest" and click on "Release details". This image is just an example, use the "latest" release.
<figure><img src="https://1029745181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG3Lk76lfvw9ecPIg0mK8%2Fuploads%2Fbx0njZNzKcRXGnhsA7KD%2Fssv_generic_releases.png?alt=media&token=6157f69e-eb8a-4ea1-a8d7-ef8229bb571c" alt=""><figcaption></figcaption></figure>
Go back to your Dappnode UI and go to the DAppStore.
Copy the ipfs hash from "SSV Holesky" and insert it in the DAppStore Search bar and press Enter. The search itself is not very reliable and you will usually not find a result. The DAppStore should load the hash now directly.
If the Package doesn't load, try again. The ipfs search is sometimes a bit unreliable and sometimes you have to try several times. Also consider asking for help in the Dappnode Discord if the problem persists, sometimes you need to fix your ipfs package.
<figure><img src="https://1029745181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG3Lk76lfvw9ecPIg0mK8%2Fuploads%2FrLff8IRGfvhlSIEQmmii%2FScreenshot%202024-08-30%20at%2016.42.19.png?alt=media&token=ae2f8adc-0271-4cc3-b28e-1a80d05c8b51" alt=""><figcaption></figcaption></figure>
## Install SSV Holesky
When you have found the SSV Holesky package, click on Install.
<figure><img src="https://1029745181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG3Lk76lfvw9ecPIg0mK8%2Fuploads%2FDseR3ufjyJzd7CILejPP%2FSSV_HOLESKY_INSTALL.png?alt=media&token=717d5bd8-ed27-443b-b764-49f459e74ed4" alt=""><figcaption></figcaption></figure>
1. For Setup mode select "Import Operator".
2. Set Builder Proposals to true.
3. Upload the encrypted private key file you created in the previous guide.
4. Enter the password that you created for the private key in the previous guide.
<figure><img src="https://1029745181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG3Lk76lfvw9ecPIg0mK8%2Fuploads%2Fq0VEzSEUmOctsBFICiNi%2Fssv_holesky_first.png?alt=media&token=f295c303-2691-4302-8bc6-71a819a00e8d" alt=""><figcaption></figcaption></figure>
Click on "Submit". SSV Holesky should be installed now.
<figure><img src="https://1029745181-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG3Lk76lfvw9ecPIg0mK8%2Fuploads%2FfetHsTGHekey8lvxIoUw%2Fssv_holesky_installed.png?alt=media&token=5fbc5857-dccc-4a01-9a63-dd979beb0bc2" alt=""><figcaption></figcaption></figure>
That's it - wait for a couple of minutes and check if SSV Holesky is running. Let the Etherfi team know that your operator is ready.
# Custom Setup (Holesky)
To run an SSV Operator you need to run an SSV-node client alongside a consensus and execution layer client. Refer to the [official SSV guides](https://docs.ssv.network/operator-user-guides/operator-node) to run your node.
We use the following MEV Relays on Holesky:
{% code overflow="wrap" %}
```
https://0x821f2a65afb70e7f2e820a925a9b4c80a159620582c1766b1b09729fec178b11ea22abb3a51f07b288be815a1a2ff516@bloxroute.holesky.blxrbdn.com,https://0xaa58208899c6105603b74396734a6263cc7d947f444f396a90f7b7d3e65d102aec7e5e5291b27e08d02c50a050825c2f@holesky.titanrelay.xyz,https://0xab78bf8c781c58078c3beb5710c57940874dd96aef2835e7742c866b4c7c0406754376c2c8285a36c630346aa5c5f833@holesky.aestus.live,https://0xafa4c6985aa049fb79dd37010438cfebeb0f2bd42b115b89dd678dab0670c1de38da0c4e9138c9290a398ecd9a0b3110@boost-relay-holesky.flashbots.net,https://0xb1559beef7b5ba3127485bbbb090362d9f497ba64e177ee2c8e7db74746306efad687f2cf8574e38d70067d40ef136dc@relay-stag.ultrasound.money
```
{% endcode %}
# 32 ETH Stakers
The goal of this guide is to help our larger stakers (multiples of 32 ETH : multiple validators) connect to our web application, generate private keys for communicating with our Node Operators, generate a mnemonic and validator keys, encrypt their validator keys, and stake through etherfi’s protocol.
**Dapp walkthrough - 32 ETH Staker - Staking on Ethereum (tab)**
* Deposit ETH: the early version will limit staking to 32 ETH per validator.
* Download StakeInfo file: this file contains the winning Node Operator's public key -- the staker will use to encrypt their generated validator key -- and the withdrawal safe address -- used for setting withdraw credentials when creating validator keys.
* Download and Use Desktop Application: the staker, because with the ether.fi protocol they controls all their keys, will need to generate both withdrawal and validator keys. With our desktop application, they can do this securely and offline.
* Upload StakeRequest file: the file contains the encrypted validator keys that are being securely transmitted to the node operator.
Here's a video of the entire Staker flow via our Decentralized Application:
{% embed url="<https://www.youtube.com/watch?v=WeHJ_wvu1YQ>" %}
## Node operators
## Staker Best Practices
1. Air gapped machine.
2. Use a USB drive.
3. Use a hardware wallet (ledger, trezor, …).
4. Keep your mnemonic secure and offline. If it’s compromised, your ETH can be stolen.
5. Keep your etherfi priva프로젝트로 돌아가기