mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-16 17:42:02 +00:00
make gen && make style
This commit is contained in:
parent
029f464f04
commit
0b50d671e1
@ -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);
|
STATIC mp_obj_t mod_trezorcrypto_Pbkdf2_update(mp_obj_t self, mp_obj_t data);
|
||||||
|
|
||||||
|
|
||||||
/// def __init__(
|
/// def __init__(
|
||||||
/// self,
|
/// self,
|
||||||
/// prf: int,
|
/// prf: int,
|
||||||
|
@ -64,7 +64,6 @@ STATIC const secp256k1_context *mod_trezorcrypto_secp256k1_context(void) {
|
|||||||
return ctx;
|
return ctx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// package: trezorcrypto.secp256k1_zkp
|
/// package: trezorcrypto.secp256k1_zkp
|
||||||
|
|
||||||
/// def generate_secret() -> bytes:
|
/// def generate_secret() -> bytes:
|
||||||
|
@ -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
|
Wait until one of `ifaces` is ready to read or write (using masks
|
||||||
`list_ref`:
|
`list_ref`:
|
||||||
`list_ref[0]` - the interface number, including the mask
|
`list_ref[0]` - the interface number, including the mask
|
||||||
`list_ref[1]` - for touch event, tuple of (event_type, x_position,
|
`list_ref[1]` - for touch event, tuple of:
|
||||||
y_position)
|
(event_type, x_position, y_position)
|
||||||
- for USB read event, received bytes
|
- for USB read event, received bytes
|
||||||
If timeout occurs, False is returned, True otherwise.
|
If timeout occurs, False is returned, True otherwise.
|
||||||
"""
|
"""
|
||||||
|
@ -8,12 +8,15 @@ class EthereumAddress(p.MessageType):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
old_address: bytes = None,
|
||||||
address: str = None,
|
address: str = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
|
self.old_address = old_address
|
||||||
self.address = address
|
self.address = address
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_fields(cls):
|
def get_fields(cls):
|
||||||
return {
|
return {
|
||||||
|
1: ('old_address', p.BytesType, 0),
|
||||||
2: ('address', p.UnicodeType, 0),
|
2: ('address', p.UnicodeType, 0),
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user