mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +00:00
fix(core/bitcoin): validate path before asking to sign message (which could otherwise fail)
This commit is contained in:
parent
f10084117b
commit
665abe1e02
@ -24,8 +24,8 @@ async def sign_message(
|
||||
address_n = msg.address_n
|
||||
script_type = msg.script_type or 0
|
||||
|
||||
await validate_path(ctx, keychain, address_n)
|
||||
await require_confirm_sign_message(ctx, coin.coin_shortcut, message)
|
||||
await validate_path(ctx, keychain, msg.address_n)
|
||||
|
||||
node = keychain.derive(address_n)
|
||||
seckey = node.private_key()
|
||||
|
Loading…
Reference in New Issue
Block a user