Skip to content

Commit ab5dac7

Browse files
authored
[FIX] - Secret phrase in command (#227)
* Add secret phrase * Add warning
1 parent a9c3b62 commit ab5dac7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.snippets/code/tutorials/polkadot-sdk/parachains/local-chain/spin-your-nodes/key-ed25519-1.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<span data-ty="input"><span class="file-path"></span>./target/release/solochain-template-node key inspect \</span>
33
<span data-ty>--scheme Ed25519 \</span>
44
<span data-ty>--password-interactive \</span>
5+
<span data-ty>"digital width rely long insect blind usual name oyster easy steak spend"</span>
56
<span data-ty>Key password:</span>
67
<span data-ty>Secret phrase: digital width rely long insect blind usual name oyster easy steak spend</span>
78
<span data-ty>Network ID: substrate</span>

tutorials/polkadot-sdk/parachains/local-chain/spin-your-nodes.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ Follow these steps to generate your keys:
6464

6565
--8<-- 'code/tutorials/polkadot-sdk/parachains/local-chain/spin-your-nodes/key-sr25519-1.html'
6666

67+
!!!warning "Protect Your Keys"
68+
Never share your secret phrase or private keys. If exposed, someone could:
69+
70+
- Impersonate you on the network
71+
- Steal all funds associated with the account
72+
- Perform transactions on your behalf
73+
- Potentially compromise your entire blockchain identity
74+
6775
Note the Sr25519 public key for the account (SS58 format). This key will be used for producing blocks with Aura. In this example, the Sr25519 public key for the account is `5HMhkSHpD4XcibjbU9ZiGemLpnsTUzLsG5JhQJQEcxp3KJaW`.
6876

6977
3. Use the generated secret phrase to derive keys using the Ed25519 signature scheme.
@@ -72,6 +80,7 @@ Follow these steps to generate your keys:
7280
./target/release/solochain-template-node key inspect \
7381
--scheme Ed25519 \
7482
--password-interactive \
83+
"INSERT_SECRET_PHRASE"
7584
```
7685

7786
When prompted for a **Key password**, enter the same password you used in the previous step

0 commit comments

Comments
 (0)