question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deriving ETH addresses from BIP32 Extended Public Key

See original GitHub issue

Firstly I wanted to say how helpful your code and page have been for my understanding of BIP’s 32, 39 and 44. Thank you!!

I come across an error when attempting the following:

  1. Select ETH as a coin in the BIP44 tab and generate a mnemonic and seed
  2. Copy the BIP32 Extended Public Key (I leave account and change derivation path members zeroed)
  3. Select ETH as a coin in the BIP32 tab and copy the key into the BIP32 Root Key field

My expectation would be that with a derivation path of m/0 the addresses shown below shall match the one listed in tab BIP44. I might be wrong about this as I am rather new to h.d. wallets.

I saw you suggested this in #94. However I see a thrown exception in the console at keyPair.d.toBuffer

Hope you can reproduce and help. Thanks again!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
slowdownitsfinecommented, Feb 27, 2018

I’ve been using the version deployed to iancoleman.io, just playing with this and trying to learn.

With the derivation path you suggested I’ll see the warning Hardened derivation path is invalid with xpub key.

This is the exception I see when using m/0. I can’t use 0 as there seems to be a check in place for the derivation path to start with m:

screenshot

As a side note I’ve been able to derive the same addresses from the extended public key shown in BIP44 tab with the ethereumjs-wallet/hdkey package.

Anyways, thanks for getting back to me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BIP32 Extended Public Key Generate Ethereum Address
addresses - BIP32 Extended Public Key Generate Ethereum Address - Ethereum Stack Exchange. Stack Overflow for Teams – Start collaborating and ...
Read more >
Ethereum 201: HD Wallets - Marc Garreau - Medium
Typically remains 0 for Ethereum addresses. ... Defined in the BIP 32 spec, extended private keys are a Base58 encoding of the private...
Read more >
How Ethereum BIP-32 Hardware Digital Wallet Works
The process for deriving the child keys is as follows: 1. Take the private and public parent key. 2. Extend the key with...
Read more >
Address path: What is BIP32? - Trezor
Address path (BIP32) defines how to derive private and public keys of a wallet from a binary master seed (m) and an ordered...
Read more >
How Do Ethereum And Solana Generate Public and Private ...
How does Solana generate a public address from a private key? How secure is this system? Technical terminologies. BIP-32 and BIP-39 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found