From 6c0ab54da84dc24d80a8e36883df3fd775335f58 Mon Sep 17 00:00:00 2001 From: Andrew Kozlik Date: Fri, 27 Dec 2024 21:14:03 +0100 Subject: [PATCH] fixup! feat(core): Implement entropy check workflow in ResetDevice. --- core/src/apps/management/reset_device/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/apps/management/reset_device/__init__.py b/core/src/apps/management/reset_device/__init__.py index e10cb810e6..4b3d8bf2ef 100644 --- a/core/src/apps/management/reset_device/__init__.py +++ b/core/src/apps/management/reset_device/__init__.py @@ -168,10 +168,7 @@ async def _entropy_check(secret: bytes) -> bool: assert GetPublicKey.is_type_of(req) req.show_display = False - curve_name = ( - req.ecdsa_curve_name - or coininfo.by_name(req.coin_name).curve_name - ) + curve_name = req.ecdsa_curve_name or coininfo.by_name(req.coin_name).curve_name keychain = Keychain(seed, curve_name, [paths.AlwaysMatchingSchema]) msg = await get_public_key(req, keychain=keychain)