mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
src/apps/ethereum: fix style
This commit is contained in:
parent
03c681ec49
commit
cdd3b45d52
@ -24,7 +24,12 @@ async def sign_message(ctx, msg):
|
||||
address_n = msg.address_n or ()
|
||||
node = await seed.derive_node(ctx, address_n)
|
||||
|
||||
signature = secp256k1.sign(node.private_key(), message_digest(msg.message), False, secp256k1.CANONICAL_SIG_ETHEREUM)
|
||||
signature = secp256k1.sign(
|
||||
node.private_key(),
|
||||
message_digest(msg.message),
|
||||
False,
|
||||
secp256k1.CANONICAL_SIG_ETHEREUM,
|
||||
)
|
||||
|
||||
sig = EthereumMessageSignature()
|
||||
sig.address = node.ethereum_pubkeyhash()
|
||||
|
@ -131,7 +131,9 @@ async def send_signature(ctx, msg: EthereumSignTx, digest):
|
||||
address_n = msg.address_n or ()
|
||||
node = await seed.derive_node(ctx, address_n)
|
||||
|
||||
signature = secp256k1.sign(node.private_key(), digest, False, secp256k1.CANONICAL_SIG_ETHEREUM)
|
||||
signature = secp256k1.sign(
|
||||
node.private_key(), digest, False, secp256k1.CANONICAL_SIG_ETHEREUM
|
||||
)
|
||||
|
||||
req = EthereumTxRequest()
|
||||
req.signature_v = signature[0]
|
||||
|
Loading…
Reference in New Issue
Block a user