mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-17 19:00:58 +00:00
cardano: cardano prefix removed from functions
This commit is contained in:
parent
ccde69b5ff
commit
b23077b707
@ -8,7 +8,7 @@ from .layout import confirm_with_pagination
|
|||||||
from apps.common import storage
|
from apps.common import storage
|
||||||
|
|
||||||
|
|
||||||
async def cardano_get_address(ctx, msg):
|
async def get_address(ctx, msg):
|
||||||
mnemonic = storage.get_mnemonic()
|
mnemonic = storage.get_mnemonic()
|
||||||
root_node = bip32.from_mnemonic_cardano(mnemonic)
|
root_node = bip32.from_mnemonic_cardano(mnemonic)
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ from .address import _derive_hd_passphrase, derive_address_and_node
|
|||||||
from apps.common import layout, seed, storage
|
from apps.common import layout, seed, storage
|
||||||
|
|
||||||
|
|
||||||
async def cardano_get_public_key(ctx, msg):
|
async def get_public_key(ctx, msg):
|
||||||
mnemonic = storage.get_mnemonic()
|
mnemonic = storage.get_mnemonic()
|
||||||
root_node = bip32.from_mnemonic_cardano(mnemonic)
|
root_node = bip32.from_mnemonic_cardano(mnemonic)
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ from .layout import confirm_with_pagination
|
|||||||
from apps.common import seed, storage
|
from apps.common import seed, storage
|
||||||
|
|
||||||
|
|
||||||
async def cardano_sign_message(ctx, msg):
|
async def sign_message(ctx, msg):
|
||||||
mnemonic = storage.get_mnemonic()
|
mnemonic = storage.get_mnemonic()
|
||||||
root_node = bip32.from_mnemonic_cardano(mnemonic)
|
root_node = bip32.from_mnemonic_cardano(mnemonic)
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ async def request_transaction(ctx, tx_req: CardanoTxRequest, index: int):
|
|||||||
return await ctx.call(tx_req, CardanoTxAck)
|
return await ctx.call(tx_req, CardanoTxAck)
|
||||||
|
|
||||||
|
|
||||||
async def cardano_sign_transaction(ctx, msg):
|
async def sign_transaction(ctx, msg):
|
||||||
mnemonic = storage.get_mnemonic()
|
mnemonic = storage.get_mnemonic()
|
||||||
root_node = bip32.from_mnemonic_cardano(mnemonic)
|
root_node = bip32.from_mnemonic_cardano(mnemonic)
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ from trezor.messages.Success import Success
|
|||||||
from .layout import confirm_with_pagination
|
from .layout import confirm_with_pagination
|
||||||
|
|
||||||
|
|
||||||
async def cardano_verify_message(ctx, msg):
|
async def verify_message(ctx, msg):
|
||||||
try:
|
try:
|
||||||
res = _verify_message(msg.public_key, msg.signature, msg.message)
|
res = _verify_message(msg.public_key, msg.signature, msg.message)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user