First, clone the official DWallet Network repository from GitHub:
git clone <https://github.com/dwallet-network/dwallet>
cd dwallet
Navigate to the cloned directory and build the Docker image for the validator node.
docker build -t dwallet-validator .
This command will build a Docker image named dwallet-validator
using the Dockerfile provided in the repository.
Before running the validator, you need to generate the necessary keys. Use the following command to generate the validator keys:
docker run --rm -v $(pwd)/keys:/keys dwallet-validator generate-keys
This command will generate keys and store them in the keys
directory in the current path.
Create a configuration file for your validator node. Use the example configuration provided in the repository and adjust it according to your environment:
cp config/validator.example.yaml config/validator.yaml