Skip to content

dappnode/eth2-pubkeys-autocheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Auto check remote keys in Eth2 clients

⚠️ This can only be used on Eth2 clients with remote keymanager API implemented. Track eth2 clients progress at dappnode/DAppNode#389

Eth2 clients does not have a way to auto-update public keys changes made in the remote signer, either imports and deletes. For this reason, eth2 clients should have implemented a way to update their public keys to the public keys loaded in the web3signer. To achieve this there are several approaches.

Functionality

Check, compare and update remote keys between remote signer and eth2 client following the API standards:

  1. Check: fetches public keys from remote signer API and Eth2 client API
  2. Compare: compare both public keys
  3. Update: update public keys in the Eth2 client to be up to date with the remote signer, by importing and deleting.

How to use it

This repository creates a binary to be used either in the Eth2 client validator container or as a separated service in the same compose. It is intended to be executed every period of time, usually using tools such as cronjob.

It must be executed with the following environment variables CLIENT_ADDRESS, CLIENT_PORT and NETWORK

i.e

CLIENT_ADDRESS=http://validator.prysm-prater.dappnode CLIENT_PORT=9000 NETWORK=prater ./auto-check-remote-keys

Development environment

Run the compose development file with web3signer and a client to test the binary

docker-compose -f docker-compose.development.yml --env-file=./build/.env up -d

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published