Code Monkey home page Code Monkey logo

safestakeoperator's Introduction

Project SafeStake Operator Node

Description:
SafeStake is a decentralized validation framework for performing ETH2 duties and its backend is designed on top of Lighthouse (ETH2 consensus client) and Hotstuff (a BFT consensus library).

Dependencies

Server

  • Public Static Network IP
  • Hardware(recommend)
    • CPU: 16
    • Memory: 32G
    • Disk: 600GB
  • OS
    • Unix
  • Software
    • Docker
    • Docker Compose

Set firewall rule

firewall rule

Installation

Login your server(jumpserver recommand)

Install Docker and Docker compose

Enable docker service and start it immediately.

 sudo systemctl enable docker

Create local volume directory

 sudo mkdir -p /data/geth
 sudo mkdir -p /data/lighthouse
 sudo mkdir -p /data/jwt
 sudo mkdir -p /data/operator

Generate your jwt secret to jwt dirctory

openssl rand -hex 32 | tr -d "\n" | sudo tee /data/jwt/jwtsecret

Clone operator code from github

git clone --recurse-submodules https://github.com/ParaState/SafeStakeOperator.git dvf
cd dvf
cp .env.example .env

Get your infura ws_url

infura step1

  • Select goerli network

infura step1

  • Select Websocks

infura step1

  • Copy your WS_URL

Use your own configuration

vim .env

Fill your WS_URL

Run

Run your operator

sudo docker compose -f  docker-compose-operator.yml up -d

Get your operator public key

sudo docker compose -f docker-compose-operator.yml logs -f operator | grep "node public key"

output

dvf-operator-1 | [2022-08-13T16:01:33.814Z INFO dvf::node::node] node public key Al0wMNz3JpkYDH7HVp93dZfLMt1GJHypLfhwOWS0NwC/

Back up your operator private key file

path

/data/operator/prater/node_key.json

safestakeoperator's People

Contributors

jianlinjiang avatar zicofish avatar bocai-h avatar zeuson0 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.