💻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/keysInstall 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-sidecarSet a password for sidecar wallets
read -p "Enter password for the keys: " key_passCopy zenrock-validators
cd $HOME
git clone https://github.com/zenrocklabs/zenrock-validatorsBuild BLS binary
cd $HOME/zenrock-validators/utils/keygen/bls/
go mod tidy
go buildCreate 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_fileBuild ecdsa binary
Create a ecdsa key
IMPORTANT - to continue you need to register on https://app.infura.io and get the following endpoints:
mainnet eth: https://xxx
mainnet eth: wss://xxx
holesky eth: https://xxx
Create a configuration file config.yaml
Replace the following variables with your values:
zrchain_rpc: ''localhost:HERE_IS_YOUR_GRPC_PORT''
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
Don't forget to save the directory $HOME/.zrchain/sidecar/
Last updated