Skip to content

Commit

Permalink
Upgrade coin type
Browse files Browse the repository at this point in the history
  • Loading branch information
Segfaultd committed Nov 9, 2021
1 parent 9b51fcd commit 0fab782
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ console.log(`Wallet address: ${wallet.getAddress()}`);

**IMPORTANT NOTES:**
- Transaction signature using Ledger only works with legacy amino (wich will be deprecated at some point)
- Derivation path using the Cosmos Ledger application cannot be set to the default Lum Path for now `m/44'/837'/0'/*/*` and must remain on the Cosmos path `m/44'/'118/0'/*/*`
- Derivation path using the Cosmos Ledger application cannot be set to the default Lum Path for now `m/44'/880'/0'/*/*` and must remain on the Cosmos path `m/44'/'118/0'/*/*`

#### Ledger

Expand Down
2 changes: 1 addition & 1 deletion docs/lib/modules/lumconstants.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

### HDPath

**HDPath**: ``"m/44'/837'/0'/"``
**HDPath**: ``"m/44'/880'/0'/"``

Lum Network HDPath

Expand Down
2 changes: 1 addition & 1 deletion src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const LumBech32PrefixConsPub = 'lumvalconspub';
* @see https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki
* @see https://github.com/satoshilabs/slips/blob/master/slip-0044.md
*/
export const HDPath = "m/44'/837'/0'/";
export const HDPath = "m/44'/880'/0'/";

/**
* Get a Lum Network HDPath for a specified account index
Expand Down
4 changes: 2 additions & 2 deletions tests/ledger.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe('Ledger', () => {
// Manual testing using ledger device
// Ledger device must be unlocked and Lum app opened prior to running those tests
const transport = await TransportNodeHid.create();
const w = await LumWalletFactory.fromLedgerTransport(transport, `m/44'/837'/0'/0/0`, 'lum');
const w = await LumWalletFactory.fromLedgerTransport(transport, `m/44'/880'/0'/0/0`, 'lum');
expect(w).toBeTruthy();

await requestCoinsIfNeeded(clt, w, 1000);
Expand Down Expand Up @@ -125,7 +125,7 @@ describe('Ledger', () => {
// Ledger device must be unlocked and Lum app opened prior to running those tests
const message = 'Lum network is an awesome decentralized protocol';
const transport = await TransportNodeHid.create();
const w1 = await LumWalletFactory.fromLedgerTransport(transport, `m/44'/837'/0'/0/0`, 'lum');
const w1 = await LumWalletFactory.fromLedgerTransport(transport, `m/44'/880'/0'/0/0`, 'lum');
const w2 = await LumWalletFactory.fromMnemonic(LumUtils.generateMnemonic());
const signed = await w1.signMessage(message);
const v1 = await LumUtils.verifySignMsg(signed);
Expand Down

0 comments on commit 0fab782

Please sign in to comment.