Deploy Attestation Node
Once an operator has successfully registered to Lagrange State Committees AVS and subscribed to rollup chain/s, they can proceed to deploy attestation node/s.
Deploy using CLI
In the latest version of the CLI (v1.1.x
), we have introduced the feature of remote Signer for secured key management of the attestation nodes. This is an optional feature so if the operator doesn't want to configure this feature, please use the CLI version v1.0.x
and directly deploy the attestation node.
Signer
The remote signer enhances security and flexibility within the State Committee network as this allows the operators to manage private keys more securely and efficiently, especially when operating multiple attestation nodes across different chains.
For secure communication between the signer server and attestation nodes, TLS encryption has been added. This step is optional and can be omitted if you are operating within a private or secured network environment. The operators can configure TLS by generating the required certificates and keys.
Generate Certificates and Keys
- Use the script available in lsc-node repository (here) to generate necessary certificates.
- Before running the script, specify the signer server’s IP or DNS in this file.
Setting up Remote Signer
- Configure the
config_signer.toml
file - Add the following keys to your
config_signer.toml
file:- EigenLayer operator's ECDSA key
- BLS (BN254) key
- Lagrange's ECDSA key
- Run
deploy-signer
command to generate a config and deploy a docker container for the signer server.
The operators should be able to add all the private keys to the signer by modifying this config_signer.toml file.
Attestation Node
- Run
generate-config
command to generate a config specific to the chain and network for which you want to run an attestation node. Then rundeploy
command to deploy the docker container of your attestation node. Alternately, rungenerate-config-deploy
which combines thegenerate-config
anddeploy
commands.
If you choose to run multiple attestation nodes on the same machine for the same or different chains, then the deployment can be simplified using the bulk-generate-config-deploy
command.
The information about the State Committee CLI commands can be found on the Commands page.
After deploying an attestation node docker container, it is imperative for an operator to monitor its status to check if it is running and attesting successfully.
Deploy using template
The templates for attestation node's config file and the docker-compose can be found in the CLI repository.
Please review the configuration description.
- Replace
{{.xxx}}
in the template files with appropriate values. - Run the following command to deploy the docker container for attestation node:
docker compose up -f <docker_compose_file_name> -d