zellular-xyz / zsequencer

PoC implementation of the Zellular sequencing protocol
https://zellular.xyz
3 stars 0 forks source link

Dockerize the zsequencer #13

Closed abramsymons closed 1 month ago

abramsymons commented 1 month ago

Use encrypted json files to load the bls key by using a password instead of reading the private directly from env. The path of json file and the password should be listed in env. BLS json files can be loaded using eigensdk the following way:

from eigensdk.crypto.bls.attestation import KeyPair
bls_key_pair = KeyPair.read_from_file(bls_private_key_store_path, bls_key_password)

The variable ZELLULAR_BLS_KEY_PASSWORD and ZELLULAR_BLS_KEY_FILE_HOST should be add to .env file. In the docker-compose.yml file the json file that is on the host can be mapped to container using:

volumes:
      - "${NODE_BLS_KEY_FILE_HOST}:/app/operator_keys/bls_key.json:readonly"