💻Sidecar (✔️Oracle)

The validator sidecar service allows validators to vote on oracle data during the CometBFT consensus process

Install the sidecar

# create the necessary directories
mkdir -p $HOME/.zrchain/sidecar/bin
mkdir -p $HOME/.zrchain/sidecar/keys

Install the binary file

wget -O $HOME/.zrchain/sidecar/bin/zenrock-sidecar https://github.com/Zenrock-Foundation/zrchain/releases/download/v6.91.0/validator_sidecar
chmod +x $HOME/.zrchain/sidecar/bin/zenrock-sidecar

Set a password for sidecar wallets

read -p "Enter password for the keys: " key_pass

Copy zenrock-validators

cd $HOME
git clone https://github.com/zenrocklabs/zenrock-validators

Build BLS binary

cd $HOME/zenrock-validators/utils/keygen/bls/
go mod tidy
go build

Create a BLS key

bls_output_file=$HOME/.zrchain/sidecar/keys/bls.key.json
$HOME/zenrock-validators/utils/keygen/bls/bls --password $key_pass -output-file $bls_output_file

Build ecdsa binary

Create a ecdsa key

Create a configuration file config.yaml

Replace the following variables with your values:

Create a configuration file eigen_operator_config.yaml

Replace the following variables with your values:

  • <ETH MAIN ENDPOINT HERE>

  • <ETH MAIN WSS ENDPOINT HERE>

  • <VALUE FROM STEP - ECDSA key>

  • <VALUE FROM STEP - zenvaloper address>

Create a service file

Last updated