Skip to content

Commit 5f98578

Browse files
author
AJ ONeal
committed
doc: NOT 5' for testnet, it's 1'
1 parent 4c5a005 commit 5f98578

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ However, production code will look more like this:
187187
void (await accountKey.deriveXKey(DashHd.CHANGE));
188188
xprvKey = await accountKey.deriveXKey(DashHd.RECEIVE);
189189
} catch (e) {
190-
window.alert("Error: The recovery phrase can't generate a valid 1st account!");
190+
window.alert(
191+
"Error: The recovery phrase can't generate a valid 1st account!",
192+
);
191193
}
192194
```
193195
@@ -628,7 +630,7 @@ A BIP-44 _HD Path_ has 5 depths, each with their own HD Key Type:
628630
629631
- Depth 0: _Wallet (Root) Key_ - calculated from a Seed
630632
- Depth 1: _Purpose Key_ - predefined as index `44'` for BIP-44
631-
- Depth 2: _Coin Key_ - predefined as index `5'` for DASH (main & test) \
633+
- Depth 2: _Coin Key_ - predefined as index `5'` for DASH (`1'` for testnet) \
632634
(this is also sometimes referred to as the "Wallet")
633635
- Depth 3: _Account Key_ - derived by account index
634636
- Depth 4: _X Key_ is for sharing, derived by Use (Receiving or Change)
@@ -713,7 +715,7 @@ Always `44'`, as in BIP-44 for DASH (and most other cryptocurrencies)
713715
714716
### Purpose (depth 3)
715717
716-
Always `5'`, which is a magic number specifying DASH (mainnet and testnet)
718+
Always `5'`, which is a magic number specifying DASH (`1'` for testnet)
717719
718720
(can be used with other
719721
@@ -916,7 +918,9 @@ nonetheless.
916918
try {
917919
walletKey = await DashHd.fromSeed(seedBytes);
918920
} catch (e) {
919-
window.alert("the recovery phrase (or seed) could not be used to derive keys");
921+
window.alert(
922+
"the recovery phrase (or seed) could not be used to derive keys",
923+
);
920924
}
921925
```
922926
2. Notify the user and retry a different Recovery Phrase on failure.

0 commit comments

Comments
 (0)