@@ -187,7 +187,9 @@ However, production code will look more like this:
187
187
void (await accountKey.deriveXKey(DashHd.CHANGE));
188
188
xprvKey = await accountKey.deriveXKey(DashHd.RECEIVE);
189
189
} 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
+ );
191
193
}
192
194
```
193
195
@@ -628,7 +630,7 @@ A BIP-44 _HD Path_ has 5 depths, each with their own HD Key Type:
628
630
629
631
- Depth 0: _Wallet (Root) Key_ - calculated from a Seed
630
632
- 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 ) \
632
634
(this is also sometimes referred to as the " Wallet" )
633
635
- Depth 3: _Account Key_ - derived by account index
634
636
- 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)
713
715
714
716
### Purpose (depth 3)
715
717
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)
717
719
718
720
(can be used with other
719
721
@@ -916,7 +918,9 @@ nonetheless.
916
918
try {
917
919
walletKey = await DashHd.fromSeed(seedBytes);
918
920
} 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
+ );
920
924
}
921
925
```
922
926
2. Notify the user and retry a different Recovery Phrase on failure.
0 commit comments