Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

remove rendering comment issue #1033

Merged
merged 1 commit into from
Jun 16, 2021
Merged

remove rendering comment issue #1033

merged 1 commit into from
Jun 16, 2021

Conversation

nuke-web3
Copy link
Contributor

@nuke-web3 nuke-web3 commented Jun 15, 2021

remove block comment to fix rendering issues.

New issue to fix latter on: #1034

Closes #1028


<!-- FIXME! The `insert` command is _only_ for the key sub-command embedded in nodes. Not for subkey - we need to point this out... -->
<!-- 
## Inserting Keys to a Node's Keystore

You can insert fixed keys into a Substrate-based node's keystore with the `insert` command. It is common to use the
same secret, but with different scheme for substrate key use:

_Command (Sr25519 - AURA key):_
```bash
node key inspect "caution juice atom organ advance problem want pledge someone senior holiday very" --scheme sr25519

Output:

Secret phrase `caution juice atom organ advance problem want pledge someone senior holiday very` is account:
  Secret seed:       0xc8fa03532fb22ee1f7f6908b9c02b4e72483f0dbd66e4cd456b8f34c6230b849
  Public key (hex):  0xbd7436a22571207d018ffe83f5dc77d0750b7777f1eb169053d40201d6c68d53
  Public key (SS58): 5GM7RtekqU8cGiS4MKQ7tufoH4Q1itzmoFpVcvcPfjksyPrw
  Account ID:        0xbd7436a22571207d018ffe83f5dc77d0750b7777f1eb169053d40201d6c68d53
  SS58 Address:      5GM7RtekqU8cGiS4MKQ7tufoH4Q1itzmoFpVcvcPfjksyPrw

Command (Ed25519 - GRANDPA key):

node key inspect "caution juice atom organ advance problem want pledge someone senior holiday very" --scheme ed25519

Output:

Secret phrase `caution juice atom organ advance problem want pledge someone senior holiday very` is account:
  Secret seed:       0xc8fa03532fb22ee1f7f6908b9c02b4e72483f0dbd66e4cd456b8f34c6230b849
  Public key (hex):  0xbd7436a22571207d018ffe83f5dc77d0750b7777f1eb169053d40201d6c68d53
  Public key (SS58): 5GM7RtekqU8cGiS4MKQ7tufoH4Q1itzmoFpVcvcPfjksyPrw
  Account ID:        0xbd7436a22571207d018ffe83f5dc77d0750b7777f1eb169053d40201d6c68d53
  SS58 Address:      5GM7RtekqU8cGiS4MKQ7tufoH4Q1itzmoFpVcvcPfjksyPrw

Command (ECDSA - BEEFY key):

node key inspect "caution juice atom organ advance problem want pledge someone senior holiday very" --scheme ecdsa

Output:

Secret phrase `caution juice atom organ advance problem want pledge someone senior holiday very` is account:
  Secret seed:       0xc8fa03532fb22ee1f7f6908b9c02b4e72483f0dbd66e4cd456b8f34c6230b849
  Public key (hex):  0x03b2217d2c348df72c4789947291e2e63ba7798baebaa937f40fd5d68f022dd4b4
  Public key (SS58): KWCjsULBCExp8BTVhVjVjWrqMYxSi4a1CRyU2tyzNiAs4mLk8
  Account ID:        0x9bd03f5c43588e0e8110463dde4122bce1279d683de87e95975f7c717f00d617
  SS58 Address:      5Fb19AznKQqtHLf82PfMXKwWPqAWPB9g7fW6AhP8BVJ8Soqo

Now you can use the insert sub-command to save these keys appropriately for use by your node, all
we require is the base path, key type, and correct scheme used to do so with a given secret URI:

Command:

# Usage
# node key insert [FLAGS] [OPTIONS] --key-type <key-type>

# Example: Inserting an Aura key (SR25519 Crypto)
node key insert --suri 0xc8fa03532fb22ee1f7f6908b9c02b4e72483f0dbd66e4cd456b8f34c6230b849 --base-path /tmp/node01 --key-type aura

# Example: Inserting a Grandpa key (ED25519 Crypto)
node key insert --suri 0xc8fa03532fb22ee1f7f6908b9c02b4e72483f0dbd66e4cd456b8f34c6230b849 --scheme ed25519 --base-path /tmp/node01 --key-type gran

# Example: Inserting a Beefy key (ECDSA Crypto)
node key insert --suri 0xc8fa03532fb22ee1f7f6908b9c02b4e72483f0dbd66e4cd456b8f34c6230b849 --scheme ecdsa --base-path /tmp/node01 --key-type beefy

-->

remove block comment:

<!-- FIXME! The `insert` command is _only_ for the key sub-command embedded in nodes. Not for subkey - we need to point this out... -->
<!-- 
## Inserting Keys to a Node's Keystore

You can insert fixed keys into a Substrate-based node's keystore with the `insert` command. It is common to use the
same secret, but with different scheme for substrate key use:

_Command (Sr25519 - AURA key):_
```bash
node key inspect "caution juice atom organ advance problem want pledge someone senior holiday very" --scheme sr25519
```
_Output:_
```bash
Secret phrase `caution juice atom organ advance problem want pledge someone senior holiday very` is account:
  Secret seed:       0xc8fa03532fb22ee1f7f6908b9c02b4e72483f0dbd66e4cd456b8f34c6230b849
  Public key (hex):  0xbd7436a22571207d018ffe83f5dc77d0750b7777f1eb169053d40201d6c68d53
  Public key (SS58): 5GM7RtekqU8cGiS4MKQ7tufoH4Q1itzmoFpVcvcPfjksyPrw
  Account ID:        0xbd7436a22571207d018ffe83f5dc77d0750b7777f1eb169053d40201d6c68d53
  SS58 Address:      5GM7RtekqU8cGiS4MKQ7tufoH4Q1itzmoFpVcvcPfjksyPrw
```

---

_Command (Ed25519 - GRANDPA key):_
```bash
node key inspect "caution juice atom organ advance problem want pledge someone senior holiday very" --scheme ed25519
```
_Output:_
```bash
Secret phrase `caution juice atom organ advance problem want pledge someone senior holiday very` is account:
  Secret seed:       0xc8fa03532fb22ee1f7f6908b9c02b4e72483f0dbd66e4cd456b8f34c6230b849
  Public key (hex):  0xbd7436a22571207d018ffe83f5dc77d0750b7777f1eb169053d40201d6c68d53
  Public key (SS58): 5GM7RtekqU8cGiS4MKQ7tufoH4Q1itzmoFpVcvcPfjksyPrw
  Account ID:        0xbd7436a22571207d018ffe83f5dc77d0750b7777f1eb169053d40201d6c68d53
  SS58 Address:      5GM7RtekqU8cGiS4MKQ7tufoH4Q1itzmoFpVcvcPfjksyPrw
```

---

_Command (ECDSA - BEEFY key):_
```bash
node key inspect "caution juice atom organ advance problem want pledge someone senior holiday very" --scheme ecdsa
```
_Output:_
```bash
Secret phrase `caution juice atom organ advance problem want pledge someone senior holiday very` is account:
  Secret seed:       0xc8fa03532fb22ee1f7f6908b9c02b4e72483f0dbd66e4cd456b8f34c6230b849
  Public key (hex):  0x03b2217d2c348df72c4789947291e2e63ba7798baebaa937f40fd5d68f022dd4b4
  Public key (SS58): KWCjsULBCExp8BTVhVjVjWrqMYxSi4a1CRyU2tyzNiAs4mLk8
  Account ID:        0x9bd03f5c43588e0e8110463dde4122bce1279d683de87e95975f7c717f00d617
  SS58 Address:      5Fb19AznKQqtHLf82PfMXKwWPqAWPB9g7fW6AhP8BVJ8Soqo
```

---

Now you can use the `insert` sub-command to save these keys appropriately for use by your node, all
we require is the base path, key type, and correct scheme used to do so with a given secret URI:

_Command:_
```bash
# Usage
# node key insert [FLAGS] [OPTIONS] --key-type <key-type>

# Example: Inserting an Aura key (SR25519 Crypto)
node key insert --suri 0xc8fa03532fb22ee1f7f6908b9c02b4e72483f0dbd66e4cd456b8f34c6230b849 --base-path /tmp/node01 --key-type aura

# Example: Inserting a Grandpa key (ED25519 Crypto)
node key insert --suri 0xc8fa03532fb22ee1f7f6908b9c02b4e72483f0dbd66e4cd456b8f34c6230b849 --scheme ed25519 --base-path /tmp/node01 --key-type gran

# Example: Inserting a Beefy key (ECDSA Crypto)
node key insert --suri 0xc8fa03532fb22ee1f7f6908b9c02b4e72483f0dbd66e4cd456b8f34c6230b849 --scheme ecdsa --base-path /tmp/node01 --key-type beefy
```
-->
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subkey tool page bottom
2 participants