1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-13 18:18:08 +00:00

fix(core/bitcoin): nicer UI for ownership proofs

This commit is contained in:
matejcik 2021-07-22 13:25:19 +02:00 committed by matejcik
parent b30c9f7584
commit fcb5f88318

View File

@ -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. # In order to set the "user confirmation" bit in the proof, the user must actually confirm.
if msg.user_confirmation and not authorization: if msg.user_confirmation and not authorization:
if not msg.commitment_data:
await confirm_action( await confirm_action(
ctx, ctx,
"confirm_ownership_proof", "confirm_ownership_proof",
title="Proof of ownership", title="Proof of ownership",
description="Do you want to create a proof of ownership?", description="Do you want to create a proof of ownership?",
) )
else: if msg.commitment_data:
await confirm_blob( await confirm_blob(
ctx, ctx,
"confirm_ownership_proof", "confirm_ownership_proof",
title="Proof of ownership", title="Proof of ownership",
description="Do you want to create a proof of ownership for:", description="Commitment data:",
data=msg.commitment_data, data=msg.commitment_data,
icon=ui.ICON_CONFIG, icon=ui.ICON_CONFIG,
icon_color=ui.ORANGE_ICON, icon_color=ui.ORANGE_ICON,