1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-28 00:58:09 +00:00

make gen && make style

This commit is contained in:
matejcik 2019-05-17 15:09:20 +02:00
parent 029f464f04
commit 0b50d671e1
5 changed files with 6 additions and 5 deletions

View File

@ -42,7 +42,6 @@ typedef struct _mp_obj_Pbkdf2_t {
STATIC mp_obj_t mod_trezorcrypto_Pbkdf2_update(mp_obj_t self, mp_obj_t data);
/// def __init__(
/// self,
/// prf: int,

View File

@ -64,7 +64,6 @@ STATIC const secp256k1_context *mod_trezorcrypto_secp256k1_context(void) {
return ctx;
}
/// package: trezorcrypto.secp256k1_zkp
/// def generate_secret() -> bytes:

View File

@ -68,8 +68,8 @@ def poll(ifaces: Iterable[int], list_ref: List, timeout_us: int) -> bool:
Wait until one of `ifaces` is ready to read or write (using masks
`list_ref`:
`list_ref[0]` - the interface number, including the mask
`list_ref[1]` - for touch event, tuple of (event_type, x_position,
y_position)
`list_ref[1]` - for touch event, tuple of:
(event_type, x_position, y_position)
- for USB read event, received bytes
If timeout occurs, False is returned, True otherwise.
"""

View File

@ -8,12 +8,15 @@ class EthereumAddress(p.MessageType):
def __init__(
self,
old_address: bytes = None,
address: str = None,
) -> None:
self.old_address = old_address
self.address = address
@classmethod
def get_fields(cls):
return {
1: ('old_address', p.BytesType, 0),
2: ('address', p.UnicodeType, 0),
}

File diff suppressed because one or more lines are too long