From a287056080eca419779de9f1f90fa0bf17bc5ff2 Mon Sep 17 00:00:00 2001 From: Ariel Mendelzon Date: Thu, 14 Nov 2024 09:03:03 -0300 Subject: [PATCH] Version 5.2.1 release - Bump version to 5.2.1 - Updated version references in firmware, middleware and unit tests - Updated CHANGELOG --- CHANGELOG.md | 7 +++++++ firmware/src/ledger/ui/src/defs.h | 2 +- firmware/src/ledger/ui/test/onboard/test_onboard.c | 4 ++-- firmware/src/powhsm/src/defs.h | 2 +- middleware/ledger/protocol.py | 4 ++-- middleware/tests/ledger/test_protocol.py | 2 +- 6 files changed, 14 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d680f359..74f09a2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [5.2.1] - 14/11/2024 + +### Fixes + +- Removed compilation products from repository +- Fixed failing middleware docker image build + ## [5.2.0] - 09/09/2024 ### Features/enhancements diff --git a/firmware/src/ledger/ui/src/defs.h b/firmware/src/ledger/ui/src/defs.h index afb7635b..9716e344 100644 --- a/firmware/src/ledger/ui/src/defs.h +++ b/firmware/src/ledger/ui/src/defs.h @@ -31,6 +31,6 @@ // Version and patchlevel #define VERSION_MAJOR 0x05 #define VERSION_MINOR 0x02 -#define VERSION_PATCH 0x00 +#define VERSION_PATCH 0x01 #endif // __DEFS_H diff --git a/firmware/src/ledger/ui/test/onboard/test_onboard.c b/firmware/src/ledger/ui/test/onboard/test_onboard.c index 1e9ccebc..8d6a0894 100644 --- a/firmware/src/ledger/ui/test/onboard/test_onboard.c +++ b/firmware/src/ledger/ui/test/onboard/test_onboard.c @@ -313,11 +313,11 @@ void test_is_onboarded() { G_device_onboarded = true; assert(5 == is_onboarded()); - ASSERT_APDU("\x80\x01\x05\x02\x00"); + ASSERT_APDU("\x80\x01\x05\x02\x01"); G_device_onboarded = false; assert(5 == is_onboarded()); - ASSERT_APDU("\x80\x00\x05\x02\x00"); + ASSERT_APDU("\x80\x00\x05\x02\x01"); } int main() { diff --git a/firmware/src/powhsm/src/defs.h b/firmware/src/powhsm/src/defs.h index 7413c6ee..67ddf878 100644 --- a/firmware/src/powhsm/src/defs.h +++ b/firmware/src/powhsm/src/defs.h @@ -30,6 +30,6 @@ // Version and patchlevel #define VERSION_MAJOR 0x05 #define VERSION_MINOR 0x02 -#define VERSION_PATCH 0x00 +#define VERSION_PATCH 0x01 #endif // __DEFS_H diff --git a/middleware/ledger/protocol.py b/middleware/ledger/protocol.py index 53d6dcad..64d0d75d 100644 --- a/middleware/ledger/protocol.py +++ b/middleware/ledger/protocol.py @@ -37,8 +37,8 @@ class HSM2ProtocolLedger(HSM2Protocol): # Current manager supported versions for HSM UI and HSM SIGNER (<=) - UI_VERSION = HSM2FirmwareVersion(5, 2, 0) - APP_VERSION = HSM2FirmwareVersion(5, 2, 0) + UI_VERSION = HSM2FirmwareVersion(5, 2, 1) + APP_VERSION = HSM2FirmwareVersion(5, 2, 1) # Amount of time to wait to make sure the app is opened OPEN_APP_WAIT = 1 # second diff --git a/middleware/tests/ledger/test_protocol.py b/middleware/tests/ledger/test_protocol.py index 13de3f4f..dbf8032c 100644 --- a/middleware/tests/ledger/test_protocol.py +++ b/middleware/tests/ledger/test_protocol.py @@ -49,7 +49,7 @@ def setUp(self): self.dongle.disconnect = Mock() self.dongle.is_onboarded = Mock(return_value=True) self.dongle.get_current_mode = Mock(return_value=HSM2Dongle.MODE.SIGNER) - self.dongle.get_version = Mock(return_value=HSM2FirmwareVersion(5, 2, 0)) + self.dongle.get_version = Mock(return_value=HSM2FirmwareVersion(5, 2, 1)) self.dongle.get_signer_parameters = Mock(return_value=Mock( min_required_difficulty=123)) self.protocol = HSM2ProtocolLedger(self.pin, self.dongle)