1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-19 11:50:58 +00:00

fix(contacts): sign address even when not shown on device

This commit is contained in:
Tomas Martykan 2024-12-12 16:35:29 +01:00
parent 91ccaee4be
commit 632b02adab
No known key found for this signature in database

View File

@ -207,8 +207,6 @@ async def get_address(msg: GetAddress, keychain: Keychain, coin: CoinInfo) -> Ad
)
else:
account = address_n_to_name_or_unknown(coin, address_n, script_type)
res = await sign_with_nostr(NostrSignEvent(address_n=[1,2,3,4], content=address))
signature = res.signature
await show_address(
address_short,
address_qr=address,
@ -218,4 +216,8 @@ async def get_address(msg: GetAddress, keychain: Keychain, coin: CoinInfo) -> Ad
chunkify=bool(msg.chunkify),
)
if not multisig:
res = await sign_with_nostr(NostrSignEvent(address_n=[1,2,3,4], content=address))
signature = res.signature
return Address(address=address, mac=mac, signature=signature)