1
0
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:
Pavol Rusnak 2018-10-21 20:00:16 +02:00
parent 03c681ec49
commit cdd3b45d52
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 9 additions and 2 deletions

View File

@ -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()

View File

@ -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]