Skip to content

2. Node Installation Guide

mchitgarha78 edited this page Sep 19, 2024 · 1 revision

Generate Keys

Follow these instructions to install the eigenlayer cli to generate the ECDSA key file for your node:

eigenlayer operator keys create --key-type ecdsa zbtc

Install Dependencies

python3, cmake, g++ and MCL library for pairing-based BLS cryptography

sudo apt install -y python3 cmake g++
sudo apt install libgmp3-dev
wget https://github.com/herumi/mcl/archive/refs/tags/v1.93.zip
unzip v1.93.zip
cd mcl-1.93
mkdir build
cd build
cmake ..
make
make install

Install Requirements

wget https://github.com/zellular-xyz/zbtc/archive/refs/tags/latest.zip
unzip latest.zip
cd zbtc-latest
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Setup Environment

Create an environment file based on the .env.example:

cp .env.example .env

Then modify the .env file with the appropriate parameters:

ZBTC_ECDSA_KEY_FILE=~/.eigenlayer/operator_keys/zbtc.ecdsa.key.json
ZBTC_ECDSA_KEY_PASSWORD=[your password for ecdsa key file]

Note

The only required variables to set are the path to ECDSA key file and its password.

Run the Node

Use the following command after creating the .env file as explained above:

python run.py
Clone this wiki locally