Skip to content

Commit

Permalink
fix(core/bitcoin): nicer UI for ownership proofs
Browse files Browse the repository at this point in the history
  • Loading branch information
matejcik committed Jul 22, 2021
1 parent 215e726 commit 9de567b
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions core/src/apps/bitcoin/get_ownership_proof.py
Expand Up @@ -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,
Expand Down

0 comments on commit 9de567b

Please sign in to comment.