mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +00:00
trezor.crypto.rlp: add type annotations
This commit is contained in:
parent
ddd46f6f53
commit
88e46ca66f
@ -7,7 +7,7 @@ def to_binary(x: int):
|
||||
x //= 256
|
||||
return bytes(reversed(r))
|
||||
|
||||
def encode_length(l, offset):
|
||||
def encode_length(l: int, offset: int):
|
||||
if l < 56:
|
||||
return bytes([l + offset])
|
||||
elif l < 256 ** 8:
|
||||
|
Loading…
Reference in New Issue
Block a user