Skip to content

Commit ea1480e

Browse files
committed
Merge branch 'fix-pylint' into staging/ble
2 parents fa774da + 05648e3 commit ea1480e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

py/bitbox02/bitbox02/communication/bitbox_api_protocol.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import hashlib
2222
import time
2323
from typing import Callable, Optional, Dict, Tuple, Union, Sequence
24-
from typing_extensions import TypedDict
2524

2625
import ecdsa
2726
from noise.connection import NoiseConnection, Keypair
@@ -190,8 +189,8 @@ class HwwResponseCode:
190189

191190
ATTESTATION_PUBKEYS_MAP: Dict[bytes, bytes] = {}
192191
for pubkey_hex in ATTESTATION_PUBKEYS:
193-
pubkey = bytes.fromhex(pubkey_hex)
194-
ATTESTATION_PUBKEYS_MAP[hashlib.sha256(pubkey).digest()] = pubkey
192+
pubkey_bytes = bytes.fromhex(pubkey_hex)
193+
ATTESTATION_PUBKEYS_MAP[hashlib.sha256(pubkey_bytes).digest()] = pubkey_bytes
195194

196195

197196
OP_ATTESTATION = b"a"

0 commit comments

Comments
 (0)