Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use subkey for key generation in the parachain guide #33

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/guides/parachain_deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ To deploy system parachain nodes, such as asset-hub and bridge-hub, you should u

To deploy your network with the [node helm-chart](https://github.com/paritytech/helm-charts/tree/main/charts/node), you will need to have a node docker image published to a public registry.

## Generate parachain private keys
## Generate parachain private keys

In this section, we will use the [`subkey`](./subkey.md) utility.

### Generate static node keys (aka network keys)

Expand All @@ -47,7 +49,7 @@ This practice is particularly important for bootnodes, which have publicly liste
To generate a static node key:

```
parachain-template-node key generate-node-key --file node.key
subkey generate-node-key --file node.key
# example output
12D3KooWExcVYu7Mvjd4kxPVLwN2ZPnZ5NyLZ5ft477wqzfP2q6E # PeerId (hash of public node key)
cat node.key
Expand All @@ -64,12 +66,12 @@ For parachains using the collatorSelection pallet to manage their collator set,
In this example, we will use the same seed for both. Use the following command generate a secret seed for each collator:

```
parachain-template-node key generate
subkey generate
```

You can derive public keys and account IDs from an existing seed by using:
```
parachain-template-node key inspect "<secret-seed>"
subkey inspect "<secret-seed>"
# example output
Secret Key URI `//Alice` is account:
Network ID: substrate
Expand Down
Loading