Examples
There are a few existing applets that
demonstrate simple usage of the prelude. Each example starts with a short documentation in its
src/lib.rs file.
Noticeable examples are:
hsmimplements some simple HSM-like API using thecrypto,store, andusb::serialmodules of the prelude. It comes with a companion program to interact with the applet (see the documentation in thesrc/lib.rsof the applet).ctapimplements some simple CTAP-like API using thebutton,led,timer,scheduling,store, andusb::serialmodules of the prelude. It describes its usage when connecting to the USB serial interface.memory_gameimplements some memory game using theusb::serialmodule of the prelude. It describes its usage when connecting to the USB serial interface.