MetaMask / key-tree

MIT License
49 stars 19 forks source link

Check if BIP-32 path segment is `<= 2^31-1` #134

Closed Mrtenz closed 1 year ago

Mrtenz commented 1 year ago

Rather than checking if the segment is within 2^32-1 (max value for hardened indices), we need to check if the index is within 2^31-1 (max value for unhardened indices).