Choosing right derivation path

(Francis Pouliot) #1

I’m updating my bill payment application which previously used a list pre-generated addresses for receive payments.

What I want to achieve:

  • Generate HD privkey with Trezor and export
  • Derive addresses from xpub with Bitcore library

We tried to derive using derivation: "0/0/" + order_number, (whereo order_number is an internal variable which uniquely identifies a transaction with a user), but the myTrezor app didn’t know that the bitcoins had been received presumably since the it’s not watching for addresses that are derived in the thousands while previous addresses had not been used.

This got me to wondering if anyone knows how many addresses down the derivation path Copay is looking for and will detect a payment.

I’d appreciate on some insights regarding choosing the right derivation path for a hardware wallet based pubkey

1 Like