mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-14 18:48:10 +00:00
fix(core/bitcoin): nicer UI for ownership proofs
This commit is contained in:
parent
b30c9f7584
commit
fcb5f88318
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user