From fcb5f883189963e237ab3d7538bb57e0a84e078a Mon Sep 17 00:00:00 2001 From: matejcik Date: Thu, 22 Jul 2021 13:25:19 +0200 Subject: [PATCH] fix(core/bitcoin): nicer UI for ownership proofs --- core/src/apps/bitcoin/get_ownership_proof.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/core/src/apps/bitcoin/get_ownership_proof.py b/core/src/apps/bitcoin/get_ownership_proof.py index c25387b9ea..a451d49745 100644 --- a/core/src/apps/bitcoin/get_ownership_proof.py +++ b/core/src/apps/bitcoin/get_ownership_proof.py @@ -60,19 +60,18 @@ async def get_ownership_proof( # In order to set the "user confirmation" bit in the proof, the user must actually confirm. if msg.user_confirmation and not authorization: - if not msg.commitment_data: - await confirm_action( - ctx, - "confirm_ownership_proof", - title="Proof of ownership", - description="Do you want to create a proof of ownership?", - ) - else: + await confirm_action( + ctx, + "confirm_ownership_proof", + title="Proof of ownership", + description="Do you want to create a proof of ownership?", + ) + if msg.commitment_data: await confirm_blob( ctx, "confirm_ownership_proof", title="Proof of ownership", - description="Do you want to create a proof of ownership for:", + description="Commitment data:", data=msg.commitment_data, icon=ui.ICON_CONFIG, icon_color=ui.ORANGE_ICON,