Repository navigation
HDPath: Enforce maximum path length in constructor - #3696
msgilligan wants to merge 1 commit into
Conversation
|
Note that this issue affects only the serialization of deterministic keys into base58-encoded strings. Inside a wallet for example, I'd say the path has no length limit (or it's much higher): Also, the BIP32 spec seems to impose no limit. So we have the problem that long paths could already be used and working fine, and with this change we'd make them unvalid. I can't think of a usecase for such long paths, but at least we should consider the possibility. Maybe make it a warning? |
|
I wonder if wallet descriptors can replace base58-encoded deterministic keys? If so, we could consider to deprecate the latter. |
schildbach
left a comment
There was a problem hiding this comment.
This is missing a test or two.
Also, I wonder if this is the right place to impose a limit. If we want to prevent the derivation of deterministic keys that cannot be serialized, we should place the limit at key derivation imho.
I think you are correct. This is the wrong place to impose a limit. Closing... |
No description provided.