1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-21 13:58:08 +00:00
trezor-firmware/mocks/trezor/config.py

14 lines
355 B
Python
Raw Normal View History

2016-09-27 14:48:21 +00:00
# ../extmod/modtrezorconfig/modtrezorconfig.c
def get(app: int, key: int) -> bytes:
'''
Gets a value of given key for given app (or None if not set).
'''
# ../extmod/modtrezorconfig/modtrezorconfig.c
2016-10-18 12:32:37 +00:00
def set(app: int, key: int, value: bytes) -> None:
2016-09-27 14:48:21 +00:00
'''
Sets a value of given key for given app.
Returns True on success.
'''