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.

Problem when manually importing BIP32 derivation path

See original GitHub issue

Describe the bug When user imports externally generated xpub it’s impossible to find a match.

To Reproduce the bug Steps to reproduce the reported bug:

  1. Go to 'Electrum`, create legacy wallet, copy xpubkey.
  2. Add xpubkey to btcpay
  3. See address match - fail
  4. Try to find a match by adding it into a hint field - fail

When you try with zpub the problem doesn’t happen.

Your BTCPay Environment (please complete the following information):

  • BTCPay Server Version: 1.0.6.3 and 1.0.6.2
  • Deployment Method: Docker
  • Browser: Firefox

Logs (if applicable) Nothing much besides this which isn’t weird in nbx

info: Events:         BTC: New block 000000000000000000078b5f45cda077c8b1e3d32415af997b4026657a2473d2 (661406)
info: Events:         BTC: xpub6CQirZ...UJDvSHMCdgFaeeosZXU1 matching unconfirmed transaction cd7554...7fa72a (0/70)
info: Events:         BTC: New block 00000000000000000000554e4db347ead7e88066d80c2e4c919c805835934f2c (661407)
info: Events:         BTC: New block 00000000000000000008521e70152dafbfc5994d2096f628c1965c343534e14b (661408)
info: Events:         BTC: xpub6CQirZ...UJDvSHMCdgFaeeosZXU1 matching confirmed transaction cd7554...7fa72a (0/70)

Setup Parameters

Additional context

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Kukkscommented, Dec 17, 2020

@pavlenex
BIP32 is the HD address definition (how to create infinite addresses from one key) BIP39 is the seed phrase definition ( how to create one key from a set of words) BIP 44 defines legacy address derivation paths using BIP32 BIP 49 defines P2SH derivation paths using BIP32 BIP 84 defines segwit derivation paths using BIP32

I need to dig into Electrum a bit and see what they do. BIP32 does not tell you how to derive address for a wallet. Electrum seems to have its own that we need to see

0reactions
pavlenexcommented, Dec 17, 2020

Apparently I am drama queen at 1AM 😕

Explained the issue here it was wallet UI that was confusing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Standardizing of HD wallet derivation paths (BIP32, BIP39, ...
I would like to +1 the idea of only using hardened addresses. This facilitates privacy by default and requires that a developer or...
Read more >
Cannot Access My Crypto Wallet ( It's Not the Seed Phrase) ...
After selecting BIP44 for P2PKH address in the derivation path, the tool will display all the addresses that can be generated from your...
Read more >
Error building transaction when using custom derivation ...
The error is produced here: I'm using an address derived this way // Get BTC address for a given user: ... (I think...
Read more >
Accidently sent some crypto here but it's not showing up
On BIP32 Derivation Path fill the following values (delete the existing values in the field before pasting). m/44'/1001'/0'/0. Then go to ### ...
Read more >
What really happens when you restore your wallet using a ...
The problem is nearly always incompatible BIP32 derivation paths. BIP32 does not guarantee to be portable from wallet to wallet.
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