1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 13:38:12 +00:00
trezor-firmware/mocks/trezor/config.py
2016-09-27 17:26:17 +02:00

14 lines
341 B
Python

# ../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
def set(app: int, key: int) -> bool:
'''
Sets a value of given key for given app.
Returns True on success.
'''