diff --git a/Makefile b/Makefile index e23aead..cc5777f 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ APP_LOAD_PARAMS += --appFlags 0x200 # APPLICATION_FLAG_BOLOS_SETTINGS else APP_LOAD_PARAMS += --appFlags 0x000 endif -APP_LOAD_PARAMS += --path "44'" +APP_LOAD_PARAMS += --path "44'/111111'" APP_LOAD_PARAMS += $(COMMON_LOAD_PARAMS) APPNAME = "Kaspa" diff --git a/tests/application_client/boilerplate_command_sender.py b/tests/application_client/kaspa_command_sender.py similarity index 100% rename from tests/application_client/boilerplate_command_sender.py rename to tests/application_client/kaspa_command_sender.py diff --git a/tests/application_client/boilerplate_response_unpacker.py b/tests/application_client/kaspa_response_unpacker.py similarity index 100% rename from tests/application_client/boilerplate_response_unpacker.py rename to tests/application_client/kaspa_response_unpacker.py diff --git a/tests/application_client/boilerplate_transaction.py b/tests/application_client/kaspa_transaction.py similarity index 94% rename from tests/application_client/boilerplate_transaction.py rename to tests/application_client/kaspa_transaction.py index 71166b8..6f48db6 100644 --- a/tests/application_client/boilerplate_transaction.py +++ b/tests/application_client/kaspa_transaction.py @@ -1,7 +1,7 @@ from io import BytesIO from typing import Union -from .boilerplate_utils import read, read_uint, read_varint, write_varint, UINT64_MAX +from .kaspa_utils import read, read_uint, read_varint, write_varint, UINT64_MAX class TransactionError(Exception): diff --git a/tests/application_client/boilerplate_utils.py b/tests/application_client/kaspa_utils.py similarity index 100% rename from tests/application_client/boilerplate_utils.py rename to tests/application_client/kaspa_utils.py diff --git a/tests/test_appname_cmd.py b/tests/test_appname_cmd.py index 1b81e54..724ddf2 100644 --- a/tests/test_appname_cmd.py +++ b/tests/test_appname_cmd.py @@ -1,5 +1,5 @@ -from application_client.boilerplate_command_sender import KaspaCommandSender -from application_client.boilerplate_response_unpacker import unpack_get_app_name_response +from application_client.kaspa_command_sender import KaspaCommandSender +from application_client.kaspa_response_unpacker import unpack_get_app_name_response # In this test we check that the GET_APP_NAME replies the application name diff --git a/tests/test_error_cmd.py b/tests/test_error_cmd.py index ba48097..ba6b1dd 100644 --- a/tests/test_error_cmd.py +++ b/tests/test_error_cmd.py @@ -1,5 +1,5 @@ from ragger.backend import RaisePolicy -from application_client.boilerplate_command_sender import CLA, InsType, P1, P2, Errors +from application_client.kaspa_command_sender import CLA, InsType, P1, P2, Errors # Ensure the app returns an error when a bad CLA is used diff --git a/tests/test_name_version.py b/tests/test_name_version.py index 1795e72..488a87b 100644 --- a/tests/test_name_version.py +++ b/tests/test_name_version.py @@ -1,5 +1,5 @@ -from application_client.boilerplate_command_sender import KaspaCommandSender -from application_client.boilerplate_response_unpacker import unpack_get_app_and_version_response +from application_client.kaspa_command_sender import KaspaCommandSender +from application_client.kaspa_response_unpacker import unpack_get_app_and_version_response # Test a specific APDU asking BOLOS (and not the app) the name and version of the current app diff --git a/tests/test_pubkey_cmd.py b/tests/test_pubkey_cmd.py index 87dfc2d..b23996a 100644 --- a/tests/test_pubkey_cmd.py +++ b/tests/test_pubkey_cmd.py @@ -1,5 +1,5 @@ -from application_client.boilerplate_command_sender import KaspaCommandSender, Errors -from application_client.boilerplate_response_unpacker import unpack_get_public_key_response +from application_client.kaspa_command_sender import KaspaCommandSender, Errors +from application_client.kaspa_response_unpacker import unpack_get_public_key_response from ragger.bip import calculate_public_key_and_chaincode, CurveChoice from ragger.backend import RaisePolicy from ragger.navigator import NavInsID, NavIns diff --git a/tests/test_sign_cmd.py b/tests/test_sign_cmd.py index bf5bace..31bb511 100644 --- a/tests/test_sign_cmd.py +++ b/tests/test_sign_cmd.py @@ -1,6 +1,6 @@ -from application_client.boilerplate_transaction import Transaction -from application_client.boilerplate_command_sender import KaspaCommandSender, Errors -from application_client.boilerplate_response_unpacker import unpack_get_public_key_response, unpack_sign_tx_response +from application_client.kaspa_transaction import Transaction +from application_client.kaspa_command_sender import KaspaCommandSender, Errors +from application_client.kaspa_response_unpacker import unpack_get_public_key_response, unpack_sign_tx_response from ragger.backend import RaisePolicy from ragger.navigator import NavInsID from utils import ROOT_SCREENSHOT_PATH, check_signature_validity diff --git a/tests/test_version_cmd.py b/tests/test_version_cmd.py index 2be62b7..3d2f90d 100644 --- a/tests/test_version_cmd.py +++ b/tests/test_version_cmd.py @@ -1,5 +1,5 @@ -from application_client.boilerplate_command_sender import KaspaCommandSender -from application_client.boilerplate_response_unpacker import unpack_get_version_response +from application_client.kaspa_command_sender import KaspaCommandSender +from application_client.kaspa_response_unpacker import unpack_get_version_response # Taken from the Makefile, to update every time the Makefile version is bumped MAJOR = 0