Skip to content

Commit

Permalink
Merge pull request #37 from coderofstuff/less-path
Browse files Browse the repository at this point in the history
Set MAX_BIP32_PATH to 5
  • Loading branch information
coderofstuff authored May 17, 2023
2 parents 11ecf85 + e660d24 commit f1e9f85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/bip32.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Maximum length of BIP32 path allowed.
*/
#define MAX_BIP32_PATH 10
#define MAX_BIP32_PATH 5

/**
* Read BIP32 path from byte buffer.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pubkey_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_get_public_key_no_confirm_invalid(backend):
("m/33'/0'/0'/0/0", Errors.SW_WRONG_BIP32_PURPOSE),
("m/44'/0'/0/0/0", Errors.SW_WRONG_BIP32_COIN_TYPE),
("m/44'/111111'/911'/3/0", Errors.SW_WRONG_BIP32_TYPE),
("m/44'/111111'/2147483647/0/0/0/0/0/0/0", Errors.SW_WRONG_BIP32_PATH_LEN)
("m/44'/111111'/2147483647/0", Errors.SW_WRONG_BIP32_PATH_LEN)
]:
client = KaspaCommandSender(backend)

Expand Down

0 comments on commit f1e9f85

Please sign in to comment.