forked from cerc-io/laconic-wallet
HDPath display
This commit is contained in:
parent
ad42b74841
commit
1bde70b7d6
8
utils.ts
8
utils.ts
@ -22,8 +22,12 @@ const createWallet = async (): Promise<WalletDetails> => {
|
|||||||
await setInternetCredentials('mnemonicServer', 'mnemonic', mnemonic);
|
await setInternetCredentials('mnemonicServer', 'mnemonic', mnemonic);
|
||||||
|
|
||||||
const hdNode = HDNode.fromMnemonic(mnemonic);
|
const hdNode = HDNode.fromMnemonic(mnemonic);
|
||||||
const ethNode = hdNode.derivePath("m/44'/60'/0'/0/0");
|
|
||||||
const cosmosNode = hdNode.derivePath("m/44'/118'/0'/0/0");
|
const ethDerivationPath = "m/44'/60'/0'/0/0";
|
||||||
|
const cosmosDerivationPath = "m/44'/118'/0'/0/0";
|
||||||
|
|
||||||
|
const ethNode = hdNode.derivePath(ethDerivationPath);
|
||||||
|
const cosmosNode = hdNode.derivePath(cosmosDerivationPath);
|
||||||
|
|
||||||
const ethAddress = ethNode.address;
|
const ethAddress = ethNode.address;
|
||||||
const cosmosAddress = (await getCosmosAccounts(mnemonic, 0)).data.address;
|
const cosmosAddress = (await getCosmosAccounts(mnemonic, 0)).data.address;
|
||||||
|
Loading…
Reference in New Issue
Block a user