From 3a4531da1c02d5cfe8e025c542f984133bd95424 Mon Sep 17 00:00:00 2001 From: "Roland C. Dowdeswell" Date: Wed, 30 Aug 2023 16:24:02 +0100 Subject: [PATCH] apdu_pubkey.c: don't check if we are locked The Ledger developers informed us that we do not need to do this. --- app/src/apdu_pubkey.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/apdu_pubkey.c b/app/src/apdu_pubkey.c index b6ca19dbd..9ec418aa9 100644 --- a/app/src/apdu_pubkey.c +++ b/app/src/apdu_pubkey.c @@ -45,9 +45,6 @@ provide_pubkey(void) cx_ecfp_public_key_t pubkey; TZ_PREAMBLE(("void")); - // Application could be PIN-locked, and pubkey->W_len would then be 0, - // so throwing an error rather than returning an empty key - TZ_ASSERT(EXC_SECURITY, os_global_pin_is_validated() == BOLOS_UX_OK); TZ_CHECK(derive_pk(&pubkey, global.path_with_curve.derivation_type, &global.path_with_curve.bip32_path));