A node private key for Node-1 is generated and written to the `key` file.
Wait until the node public key is displayed. For example:
`2019-01-01 05:03:27.430+10:00 | main | INFO | KeyPairUtil | Generated new key 0x5ca7eca7a9b6b8128d8b9375fe2683c43023fd1504bca31f5123bd9b086155d81d0b05a08b63c7fa1027bbd9cfa338b6c54539c72b05a56c1f52f802c87ad09c and stored it to /Users/username/Private-Network/Node-3/Node-3-DataDir/key
20`
Stop the node using ++ctrl+c++.
Use the [`export-pub-key` subcommand](../Reference/Pantheon-CLI-Syntax.md#export-pub-key) to write
In the `Node-1` directory, use the [`export-pub-key` subcommand](../Reference/Pantheon-CLI-Syntax.md#export-pub-key) to write
the [node public key](../Configuring-Pantheon/Node-Keys.md) to the specified file (`publicKeyNode1` in this example):
```bash tab="MacOS"
@ -121,16 +100,16 @@ Your node 1 directory now contains:
```bash
├── Node-1
├── Node-1-Datadir
├── database
├── database
├── key
├── publicKeyNode1
```
The `database` directory is created when the node is started and contains the blockchain data.
The `database` directory contains the blockchain data.
### 4. Restart First Node as Bootnode
### 4. Start First Node as Bootnode
Restart Node-1 specifying:
Start Node-1 specifying:
* No arguments for the [`--bootnodes` option](../Reference/Pantheon-CLI-Syntax.md#bootnodes) because this is your bootnode.
* Mining is enabled and the account to which mining rewards are paid using the [`--miner-enabled`](../Reference/Pantheon-CLI-Syntax.md#miner-enabled)