Oracle

Clone zenrock-validators repository

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

Generate keys

Set key password

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

Create sidecar directories

mkdir -p $HOME/.zrchain/sidecar/bin
mkdir -p $HOME/.zrchain/sidecar/keys

Build ecdsa binary

cd $HOME/zenrock-validators/utils/keygen/ecdsa && go build

Build bls binary

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

Generate ecdsa key

ecdsa_output_file=$HOME/.zrchain/sidecar/keys/ecdsa.key.json
ecdsa_creation=$($HOME/zenrock-validators/utils/keygen/ecdsa/ecdsa --password $key_pass -output-file $ecdsa_output_file)
ecdsa_address=$(echo "$ecdsa_creation" | grep "Public address" | cut -d: -f2)

Generate bls key

Output

Set operator configuration

Don't forget Ensure that you have configured TESTNET_HOLESKY_ENDPOINT, MAINNET_ENDPOINT, ETH_RPC_URL, ETH_WS_URL with your specific values. You can use Quicknode.com to get api keys. I used infura.io (but ffter Metamask acquired Infura they significantly reduced their limits)

Declare variables

Create initial configuration files

Download sidecar binary

Create and run sidecar service

Check the service logs

Last updated