1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-12 17:38:13 +00:00

fixup! feat(contacts): sign receive address with

This commit is contained in:
Tomas Martykan 2024-12-11 15:18:45 +01:00
parent 4ca2e71969
commit 010fdda1e3
No known key found for this signature in database

View File

@ -66,11 +66,6 @@ async def sign_from_testnet_priv_key(address_to_sign: str) -> bytes:
digest = message_digest(coin_testnet, message.encode()) digest = message_digest(coin_testnet, message.encode())
signature = secp256k1.sign(seckey, digest) signature = secp256k1.sign(seckey, digest)
# script_type == InputScriptType.SPENDWITNESS:
script_type_info = 8
# Add script type information to the recovery byte.
signature = bytes([signature[0] + script_type_info]) + signature[1:]
return signature return signature