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:
parent
1a6e0f053a
commit
25f14f6695
@ -2,7 +2,7 @@ from trezor import log, ui, wire
|
|||||||
from trezor.crypto import bip32
|
from trezor.crypto import bip32
|
||||||
from trezor.messages.CardanoAddress import CardanoAddress
|
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 .ui import show_swipable_with_confirmation
|
||||||
|
|
||||||
from apps.common import storage
|
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
|
ctx, address, "Export address", icon=ui.ICON_SEND, icon_color=ui.GREEN
|
||||||
):
|
):
|
||||||
raise wire.ActionCancelled("Exporting cancelled")
|
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)
|
return CardanoAddress(address=address)
|
||||||
|
@ -5,12 +5,7 @@ from trezor.crypto import bip32
|
|||||||
from trezor.messages.CardanoPublicKey import CardanoPublicKey
|
from trezor.messages.CardanoPublicKey import CardanoPublicKey
|
||||||
from trezor.messages.HDNodeType import HDNodeType
|
from trezor.messages.HDNodeType import HDNodeType
|
||||||
|
|
||||||
from .address import (
|
from .address import _derive_hd_passphrase, derive_address_and_node
|
||||||
_break_address_n_to_lines,
|
|
||||||
_derive_hd_passphrase,
|
|
||||||
derive_address_and_node,
|
|
||||||
)
|
|
||||||
from .ui import show_swipable_with_confirmation
|
|
||||||
|
|
||||||
from apps.common import seed, storage
|
from apps.common import seed, storage
|
||||||
|
|
||||||
@ -28,11 +23,6 @@ async def cardano_get_public_key(ctx, msg):
|
|||||||
mnemonic = None
|
mnemonic = None
|
||||||
root_node = 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
|
return key
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user