Skip to content

0xmoei/nillion-verifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

Nillion Verifier Node

Official dashboard

https://verifier.nillion.com/verifier

Faucet

Create a Nillion address in your keplr wallet and get faucet for it https://faucet.testnet.nillion.com/

Install docker

sudo apt update -y && sudo apt upgrade -y
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done

sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg

echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt update -y && sudo apt upgrade -y

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

# Docker version check
docker --version

Install verifier

1- Pull docker images

docker pull nillion/verifier:v1.0.1

2- Create folder

mkdir -p nillion/verifier

3- Initialize Verifier

docker run -v ./nillion/verifier:/var/tmp nillion/verifier:v1.0.1 initialise

This will output the details needed to register the accuser on the website, save them:

  • accound_id: Nillion address of the accuser
  • public_key: Public Key of the accuser
  • Note The accuser will store the credentials in a file called credentials.json in the folder that was created. If you lose this file, you will lose access to the keys/address of the accuser

4- Check credential.json file contents

cat nillion/accuser/credentials.json

5- Send some $NIL to verifier accuser address or get faucet for it

Run Verifier

docker run -d -v ./nillion/verifier:/var/tmp nillion/verifier:v1.0.1 verify --rpc-endpoint "https://testnet-nillion-rpc.lavenderfive.com"

Verify your node in the dashboard

1- Head to verifier dashboard

2- Click Linux setup to open Verifier installation docs, add your node credentials in step 5 to verify your node

Screenshot_240

Screenshot_239

Check Node status

1- Docker container lists

docker ps
  • Copy Container ID of your nillion/retailtoken-accuser:latest container

2- Check your latest verified secrets, Replace CONTAINER_ID with yours

docker logs -f -n 100 CONTAINER_ID
  • the amount must inscreases
  • Registered must be true

Screenshot_241

Backup Node

  • Take a backup of nillion/accuser/credentials.json file
  • Or Save the entire nillion folder in your PC

Stake ETH on Verifier (Anti Sybil)

You must stake a minimum amount of 0.05 ETH on your Verifier for their Anti sybil mechanism Team stated not mandatory but I think it is important

image

Usfeull commands: if you get into any error during the verifier running

Restart Container

docker restart CONTAINER_ID

Stop & remove Container

docker stop CONTAINER_ID && docker rm CONTAINER_ID

Run it Again using Run Verifier command

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published