Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- simplest and totally manual procedure to write inside config.json the encrypted passphrase, soon after fork, and then enable forging:
- ## install jq:
- sudo apt-get install jq
- ## encrypt the passphrase:
- 1. install npm, n and lisk-commander (to encrypt your passphrase)
- curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
- sudo apt-get install -y nodejs
- sudo npm install -g n
- sudo n 6.14.1
- sudo apt-get install git
- sudo npm install lisk-commander@v1.0.0-rc.0 -g
- ##then type
- lisk "encrypt passphrase --output-public-key"
- ## then you will be prompted for
- Please enter your secret passphrase: ****
- Please re-enter your secret passphrase: ****
- Please enter your password: ****
- Please re-enter your password: ****
- ##In the first step, type in your passphrase and then type in the password you want to use for encryption.
- ##Afterwards you will get an encryptedPassphrase, publickey key value pair.
- ## you will have a JSON object output like this example:
- {"encryptedPassphrase":"salt=67a33e926e7f530f63e82d3b8747c26e&cipherText=fceaabc2&iv=917ea94def16180160d06eb5&tag=9c28fda8afbd963c65cd9befedceeb6c&version=1","publicKey":"f350cbaa65b438a90082555c57f6347b6ee10b35c0bd5995b4cecd0b291989d8"}
- ### use this in all the following points when appropriate
- 2. launch lisk hq fork script
- cd $home
- rm lisk_bridge.sh
- wget https://raw.githubusercontent.com/LiskHQ/lisk-scripts/development/downloaded/lisk_bridge.sh
- screen bash lisk_bridge.sh -h 6901027 -n main
- 3. when fork is done, and lisk_bridge.sh ended, let's modify "config.json"
- ## as soon as fork script ends, and fork happened, launch the following:
- cd $home/lisk-main
- nano config.json
- ## Add this JSON object to your config.json under forging.delegates. like the following example:
- "forging": {
- "force": false,
- "delegates": [{"encryptedPassphrase": "salt=67a33e926e7f530f63e82d3b8747c26e&cipherText=fceaabc2&iv=917ea94def16180160d06eb5&tag=9c28fda8afbd963c65cd9befedceeb6c&version=1",
- "publicKey": "f350cbaa65b438a90082555c57f6347b6ee10b35c0bd5995b4cecd0b291989d8"}],
- "access": {
- "whiteList": [
- "127.0.0.1"
- ]
- }
- },
- ## save and do a lisk reload
- bash lisk.sh reload
- 4. let's enable forging
- curl -H 'Content-Type: application/json' -X PUT -d '{"publicKey":"f350cbaa65b438a90082555c57f6347b6ee10b35c0bd5995b4cecd0b291989d8", "forging":true, "password":"your_password_used_at_point_1"}' http://127.0.0.1:8000/api/node/status/forging
- ## use 'history -c' and 'clear' at the end
- That's all, folks!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement