You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/docs/core/src/apps.md

17 lines
595 B

# Apps
The folder `src/apps/` is the place where all the user-facing features are implemented.
Each app has a `boot()` function in the module's \_\_init\_\_ file. This functions assigns what function should be called if some specific message was received. In other words, it is a link between the MicroPython functions and the Protobuf messages.
## Example
This binds the message GetAddress to function `get_address` inside the `apps.wallet` module.
```python
from trezor import wire
from trezor.messages import MessageType
wire.add(MessageType.GetAddress, apps.wallet, "get_address")
```