2016-09-27 14:48:21 +00:00
|
|
|
|
2017-04-08 16:43:26 +00:00
|
|
|
# extmod/modtrezorconfig/modtrezorconfig.c
|
2016-09-27 14:48:21 +00:00
|
|
|
def get(app: int, key: int) -> bytes:
|
|
|
|
'''
|
2017-04-08 16:43:26 +00:00
|
|
|
Gets a value of given key for given app (or empty bytes if not set).
|
2016-09-27 14:48:21 +00:00
|
|
|
'''
|
|
|
|
|
2017-04-08 16:43:26 +00:00
|
|
|
# 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.
|
|
|
|
'''
|
2016-11-08 14:37:48 +00:00
|
|
|
|
2017-04-08 16:43:26 +00:00
|
|
|
# extmod/modtrezorconfig/modtrezorconfig.c
|
2016-11-08 14:37:48 +00:00
|
|
|
def wipe() -> None:
|
|
|
|
'''
|
|
|
|
Erases the whole config (use with caution!)
|
|
|
|
'''
|