You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BIP32 somewhat indirectly (I didn't find an explicit note about this in the BIP) enforces the depth of the derivation path (i.e., the length of /NUM/NUM/...) to be within the range [0, 255], because it gets serialized as a single byte. While this is recognized by NBitcoin in several places in the KeyPath implementation, there are ways how to overflow the depth.
Activity
quapka commentedon Mar 30, 2025
The overflow is, I guess unintentionally, consistent with the
IsChildOfwhere theparentKey.Depth + 1can also overflow (though I haven't tested it).