2

Generally I see that bip32 derivation paths are something like m/1/2/3/4, etc

How deep is allowed? Is there a limit on how deep the tree can go?

6

A path can have, at most, 256 elements, including the master. This limitation comes from the extended public key serialization format's depth field. This field is a single byte which means it only has 256 possible values.

  • I dont get it. What happens if I try to get 'm/44/0/0/666' address? – Igor Korsakov Dec 18 '19 at 23:03
  • Nothing happens, that's a valid path. Depth is the number of elements; basically the number of /'s. The actual value of each element can be a at most 2^31 - 1. – Andrew Chow Dec 19 '19 at 3:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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