I'm working with a hardware wallet (Keycard) and I'm able to export a 130 characters hex public key of the path m/44'/0'/0'. Now, I need to perform account discovery, and in order to do it I first need to get addresses from public keys obtained as explained here:

generate HD addresses using publicKey Bip44

The problem is that I have not an xpub. After derived the key for m/44'/0'/0', how can I use it to derive public keys for m/0/0-19? I've started working with this stuff just some days ago and I'm a bit confused.

1 Answer 1


With only a public key, you cannot do BIP 32 derivation. BIP 32 derivation requires an additional piece of information called the chain code. This chain code is derived with each key, so each private-public keypair has its own unique chain code. Without the chain code, you cannot do any further BIP 32 derivation.

  • So how do I proceed if I have both public key and chain code?
    – luibo
    Feb 16, 2020 at 12:11
  • Follow the derivation process described in BIP 32. You can also produce an xpub (also described in BIP 32 from your pubkey and chain code and give that xpub to any BIP 32 compliant software to do the derivation.
    – Ava Chow
    Feb 16, 2020 at 17:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.