Skip to content
This repository was archived by the owner on Aug 20, 2020. It is now read-only.

Commit 5dfe530

Browse files
author
Dan Forbes
authored
Mnemonic security changes for private network tutorial (#22)
The private network tutorial suggested cURL as an option for adding keys to the keystore of a node, but this is potentially insecure because the mnemonic will be stored in the user's bash history.
1 parent 0b123cf commit 5dfe530

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

tuts/start-a-private-network/v2.0.0-alpha.6/customchain.md

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Once your node is running, you will again notice that no blocks are being produc
6666
you need to add your keys into the keystore. Remember you will need to complete these steps for each
6767
node in your network.
6868

69-
### Option 1: Using Polkadot-JS App UI
69+
### Add Keys with the Polkadot-JS App UI
7070

7171
You can use the Apps UI to insert your keys into the keystore. Navigate to the "Toolbox" tab and the
7272
"RPC Call" sub-tab. Choose "author" and "insertKey". The fields can be filled like this:
@@ -99,31 +99,6 @@ publicKey: <your raw ed25519 key> (eg. 0xb48004c6e1625282313b07d1c9950935e86894a
9999
> If you are following these steps for the _second_ node in the network, you must connect the UI to
100100
> the second node before inserting the keys.
101101
102-
### Option 2: Using CLI
103-
104-
You can also insert a key to the keystore by command line.
105-
106-
```bash
107-
# Submit a new key via RPC, connect to where your `rpc-port` is listening
108-
$ curl http://localhost:9933 -H "Content-Type:application/json;charset=utf-8" -d \
109-
'{
110-
"jsonrpc":"2.0",
111-
"id":1,
112-
"method":"author_insertKey",
113-
"params": [
114-
"<aura/gran>",
115-
"<mnemonic phrase>",
116-
"<public key>"
117-
]
118-
}'
119-
```
120-
121-
If you enter the command and parameters correctly, the node will return a JSON response as follows.
122-
123-
```json
124-
{ "jsonrpc": "2.0", "result": null, "id": 1 }
125-
```
126-
127102
## Subsequent Participants Join
128103

129104
Subsequent validators can now join the network. This can be done by specifying the `--bootnodes`

0 commit comments

Comments
 (0)