cosmos-sdk/crypto/hd
Emmanuel T Odeke ec285f1798
crypto/hd: properly catch index overflows to ensure conformance with BIP 32 (#7628)
* crypto/hd: properly catch index overflows to ensure conformance with BIP 32

Uses 31 bits as the bitsize argument to strconv.ParseUint to ensure
that we correctly parse values in the range [0, max(int32)]

Adds tests too to prevent future regressions of this subtlety.

Fixes #7627.

* Address Fedekunze's testing review
2020-11-03 20:28:42 +01:00
..
testdata Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
algo.go PubKey proto types (#7147) 2020-09-16 11:08:55 +00:00
algo_test.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
doc.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
fundraiser_test.go PubKey proto types (#7147) 2020-09-16 11:08:55 +00:00
hdpath.go crypto/hd: properly catch index overflows to ensure conformance with BIP 32 (#7628) 2020-11-03 20:28:42 +01:00
hdpath_test.go crypto/hd: properly catch index overflows to ensure conformance with BIP 32 (#7628) 2020-11-03 20:28:42 +01:00