1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-16 04:29:08 +00:00

regenerate mocks

This commit is contained in:
Pavol Rusnak 2016-10-18 14:32:37 +02:00
parent bf919e9192
commit dac0a252bd
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
4 changed files with 10 additions and 11 deletions

View File

@ -6,7 +6,7 @@ def get(app: int, key: int) -> bytes:
'''
# ../extmod/modtrezorconfig/modtrezorconfig.c
def set(app: int, key: int) -> bool:
def set(app: int, key: int, value: bytes) -> None:
'''
Sets a value of given key for given app.
Returns True on success.

View File

@ -12,13 +12,13 @@ def derive_path(path: list) -> None:
'''
# ../extmod/modtrezorcrypto/modtrezorcrypto-bip32.h
def serialize_public(version: int) -> str:
def serialize_public() -> str:
'''
Serialize the public info from HD node to base58 string.
'''
# ../extmod/modtrezorcrypto/modtrezorcrypto-bip32.h
def serialize_private(version: int) -> str:
def serialize_private() -> str:
'''
Serialize the private info HD node to base58 string.
'''

View File

@ -1,4 +1,10 @@
# ../extmod/modtrezorcrypto/modtrezorcrypto-bip32.h
def deserialize(value: str) -> HDNode:
'''
Construct a BIP0032 HD node from a base58-serialized value.
'''
# ../extmod/modtrezorcrypto/modtrezorcrypto-bip32.h
def from_seed(seed: bytes, curve_name: str) -> HDNode:
'''

View File

@ -24,13 +24,6 @@ def bar_radius(x: int, y: int, w: int, h: int, fgcolor: int, bgcolor: int=None,
Background is set to bgcolor and corners are drawn with radius radius.
'''
# ../extmod/modtrezorui/modtrezorui-display.h
def blit(x: int, y: int, w: int, h: int, data: bytes) -> None:
'''
Renders rectangle at position (x,y = upper left corner) with width w and height h with data.
The data needs to have the correct format.
'''
# ../extmod/modtrezorui/modtrezorui-display.h
def image(x: int, y: int, image: bytes) -> None:
'''
@ -111,7 +104,7 @@ def offset(xy: tuple=None) -> tuple:
'''
# ../extmod/modtrezorui/modtrezorui-display.h
def raw(reg: int, data: bytes) -> None:
def raw(reg: int, data: bytes=None) -> None:
'''
Performs a raw command on the display. Read the datasheet to learn more.
'''