zScore Docs
  • Core
    • What is zScore
    • How It Works
    • Operational Mechanics
  • For Operators
    • Mainnet
      • Quickstart (Mainnet)
      • Registration (Mainnet)
Powered by GitBook
On this page
  • Prerequisites
  • ​Prepare and run the attestation node
  1. For Operators
  2. Mainnet

Quickstart (Mainnet)

Prepare your system to run the zScore AVS

PreviousMainnetNextRegistration (Mainnet)

Last updated 1 month ago

Prerequisites

Registered EigenLayer Operator Account: Ensure you have a fully registered EigenLayer operator account. If you don't have one, follow the steps in the section to create and fund your account.

​Prepare and run the attestation node

We provide a docker-compose configuration which sets up the Attester Node

  1. Clone this and execute the following commands:

git clone https://github.com/zerufinance/zscore-attester-prod.git
  1. Copy .example_env into .env.

cd zscore-attester-prod
cp .env.example .env
  1. Edit the .env

    1. Update the PRIVATE_KEY_ATTESTER with your ethereum mainnet operator private key (ECDSA key). This is stored locally and is used to create a BLS public key.

      1. PRIVATE_KEY_ATTESTER=<OPERATOR_PRIVATE_KEY>
    2. Update the L1_RPC and L2_RPC with private RPCs for Ethereum Mainnet and Base, respectively.

      1. L1_RPC=<ETH_PRIVATE_RPC>
        L2_RPC=<BASE_PRIVATE_RPC>
    3. Update the ATTESTER_PUBLIC_IP_ADDRESS with the IP address where the attester code is running.

      1. ATTESTER_PUBLIC_IP_ADDRESS=<IP_ADDRESS>
    4. Update the ATTESTER_PEER_ID with the peer ID of the attester, which is generated using the private key. Generate the peer ID using this command:

      1. othentic-cli node get-id --node-type attester
        <result_PEER_ID>
        ATTESTER_PEER_ID=<result_PEER_ID>
  2. Then you can run this command which will run a script called setup.sh to setup the required dependencies like docker and docker-compose (this is optional, if you have already installed docker)

chmod +x setup.sh
sh setup.sh
  1. Then you can run the actual attester node by running:

docker compose build --no-cache
docker compose up -d
  1. To see logs you can run: (optional)

docker compose logs -f

Happy Attesting zScore!!

Registration
repo