mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-02 20:48:30 +00:00
14 lines
355 B
Python
14 lines
355 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, value: bytes) -> None:
|
|
'''
|
|
Sets a value of given key for given app.
|
|
Returns True on success.
|
|
'''
|