Skip to content
This repository has been archived by the owner on Dec 16, 2017. It is now read-only.

oraclesorg/oracles-initial-keys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oracles PoA initial keys generation script

Install node.js

Install nodejs

Generation of new initial keys

  • Install required packages npm install
  • If run on your local machine, edit config.json and set Ethereum.live.rpc property to "http://$BOOTNODE_IP:8540". If run from bootnode itself, skip this step.
  • node ./generateInitialKey.js
  • Send 2 transactions in Parity http://$BOOTNODE_IP:8180/ with contract owner

(i) addition of initial key to Oracles contract

(ii) transfer of 0.1Eth to added initial key

Expected result:

Initial key 0x87955e8a4c1887cbfcc79950620162eec89ac87b is generated to ./initialKeysDemo/87955e8a4c1887cbfcc79950620162eec89ac87b.json
Password for initial key: jJ4NqPeUpxE3kIhlBjq9
Estimated gas to add initial key: 50346
Wait tx 0xbc2c717245950b4492884b1525a14968acfe73d426111d1ed8c30a64a0f7dfe4 to add initial key to be mined...
Initial key 0x87955e8a4c1887cbfcc79950620162eec89ac87b is added to contract
WEI to send to initial key: 100000000000000000
Wait tx to send Eth to initial key to be mined...
0.1 Eth sent to initial key

About

Script to generate initial keys

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published