Giter Club home page Giter Club logo

gen-prod-keys's Introduction

Script to generate production keys (mining + voting + payout) from initial key

Usage:

  1. clone the repository
git clone https://github.com/phahulin/gen-prod-keys.git
cd gen-prod-keys
  1. install dependencies
npm install
  1. place initial key's json keystore file into keystore folder. Filename should contain the corresponding address (e.g. d61a7010e9b40819df0045cbcd0c89c51ad18fe1.json)

  2. run the script

node index.js . <0xADDRESS> <KEYSTORE_PASSWORD> <KEYSMANAGER_CONTRACT_ADDRESS>
  • 0xADDRESS - initial key's address with 0x prefix
  • KEYSTORE_PASSWORD - password for initial key's json keystore file
  • KEYSMANAGER_CONTRACT_ADDRESS - 0x-prefixed address of the keys manager contract of the network.
  1. generated mining, voting and payout json keystore files and their passwords will be saved in production-keys/validator-<0xADDRESS>/ folder:
production-keys/
└── validator-0xd61a7010e9b40819df0045cbcd0c89c51ad18fe1/
    ├── mining-0x05644f37b1f150d971556f4adc91c6a918d8faf6.json
    ├── mining-0x05644f37b1f150d971556f4adc91c6a918d8faf6.key
    ├── payout-0xde9165519df2c4864a16704b3a553289da0497f9.json
    ├── payout-0xde9165519df2c4864a16704b3a553289da0497f9.key
    ├── voting-0x1e91ba7450cd6ab8ea76ea8b4dc8ea4a8b4657fe.json
    └── voting-0x1e91ba7450cd6ab8ea76ea8b4dc8ea4a8b4657fe.key

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.