Appearance
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:
bash
git clone https://github.com/RandAOLabs/Randomness-Provider.git
cd Randomness-Provider/docker-compose
2. Install Docker
If Docker is not installed, install Docker and Docker Compose:
bash
sudo apt update
sudo apt install docker.io
sudo apt install docker-compose
3. Create the Environment File
Create an environment file from the provided template:
bash
cp .env.example .env
4. Configure the Environment Settings
Edit the .env
file to adjust the settings:
bash
nano .env
Change the following parameters according to your information:
ini
PROVIDER_ID=your_wallet_address
LOCAL_DB_USER=database_user_name
LOCAL_DB_PASSWORD=database_password
LOCAL_WALLET_JSON=path_to_your_wallet_json_file
Important Notes:
PROVIDER_ID
should be filled with your wallet address.LOCAL_WALLET_JSON
should 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:
bash
docker pull randao/vdf_job:v0.1.4
Start the Docker container in detached mode:
bash
docker-compose up -d
6. Check the Logs
To verify that everything is working properly, check the logs:
bash
docker-compose logs -f
7. Optional Commands
To shut down the Docker containers:
bash
docker-compose down
To restart a specific container:
bash
docker restart CONTAINER_NAME
Updates
To update your node to the latest version:
bash
git pull
docker-compose down
docker-compose up -d