RANDAO Provider Node Setup Guide
Description
This guide explains the steps for configuring and running a RANDAO Provider Node. RANDAO is a decentralized randomness system used in various blockchain applications to generate publicly verifiable random numbers. By running this node, you contribute to a secure and transparent decentralized randomness ecosystem.
System Requirements
- Operating System: Ubuntu 20.04 LTS or later
- Docker: Latest version
- Docker Compose: Latest version
Setup Steps
1. Clone the Repository
Clone the RANDAO repository and navigate to the appropriate directory:
git clone https://github.com/RandAOLabs/Randomness-Provider.git
cd Randomness-Provider/docker-compose2. Install Docker
If Docker is not installed, install Docker and Docker Compose:
sudo apt update
sudo apt install docker.io
sudo apt install docker-compose3. Create the Environment File
Create an environment file from the provided template:
cp .env.example .env4. Configure the Environment Settings
Edit the .env file to adjust the settings:
nano .envChange the following parameters according to your information:
PROVIDER_ID=your_wallet_address
LOCAL_DB_USER=database_user_name
LOCAL_DB_PASSWORD=database_password
LOCAL_WALLET_JSON=path_to_your_wallet_json_fileImportant Notes:
PROVIDER_IDshould be filled with your wallet address.LOCAL_WALLET_JSONshould point to the path of your wallet JSON file containing the private key.
5. Pull and Run the Docker Image
Pull the Docker image for the RANDAO VDF job:
docker pull randao/vdf_job:v0.1.4Start the Docker container in detached mode:
docker-compose up -d6. Check the Logs
To verify that everything is working properly, check the logs:
docker-compose logs -f7. Optional Commands
To shut down the Docker containers:
docker-compose downTo restart a specific container:
docker restart CONTAINER_NAMEUpdates
To update your node to the latest version:
git pull
docker-compose down
docker-compose up -d