diff --git a/src/common/bip32.h b/src/common/bip32.h index 3e2491e..fc15efa 100644 --- a/src/common/bip32.h +++ b/src/common/bip32.h @@ -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. diff --git a/tests/test_pubkey_cmd.py b/tests/test_pubkey_cmd.py index 61b5f53..c9809c4 100644 --- a/tests/test_pubkey_cmd.py +++ b/tests/test_pubkey_cmd.py @@ -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)