1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 05:28:40 +00:00

cardano: bip32 path is not displayed (#306)

This commit is contained in:
Tomas Susanka 2018-08-14 15:30:36 +02:00
parent 1a6e0f053a
commit 25f14f6695
2 changed files with 2 additions and 18 deletions

View File

@ -2,7 +2,7 @@ from trezor import log, ui, wire
from trezor.crypto import bip32
from trezor.messages.CardanoAddress import CardanoAddress
from .address import _break_address_n_to_lines, derive_address_and_node
from .address import derive_address_and_node
from .ui import show_swipable_with_confirmation
from apps.common import storage
@ -26,11 +26,5 @@ async def cardano_get_address(ctx, msg):
ctx, address, "Export address", icon=ui.ICON_SEND, icon_color=ui.GREEN
):
raise wire.ActionCancelled("Exporting cancelled")
else:
lines = _break_address_n_to_lines(msg.address_n)
if not await show_swipable_with_confirmation(
ctx, lines, "For BIP32 path", icon=ui.ICON_SEND, icon_color=ui.GREEN
):
raise wire.ActionCancelled("Exporting cancelled")
return CardanoAddress(address=address)

View File

@ -5,12 +5,7 @@ from trezor.crypto import bip32
from trezor.messages.CardanoPublicKey import CardanoPublicKey
from trezor.messages.HDNodeType import HDNodeType
from .address import (
_break_address_n_to_lines,
_derive_hd_passphrase,
derive_address_and_node,
)
from .ui import show_swipable_with_confirmation
from .address import _derive_hd_passphrase, derive_address_and_node
from apps.common import seed, storage
@ -28,11 +23,6 @@ async def cardano_get_public_key(ctx, msg):
mnemonic = None
root_node = None
lines = ["For BIP32 path: ", ""]
lines.extend(_break_address_n_to_lines(msg.address_n))
if not await show_swipable_with_confirmation(ctx, lines, "Export xpub key"):
raise wire.ActionCancelled("Exporting cancelled")
return key