#include <string.h>
#include "os_helpers.h"
#include "os_print.h"
#include "io.h"
#include "macros.h"
#include "status_words.h"
#include "nbgl_use_case.h"
#include "transaction_check.h"
#include "transaction_check_entrypoints.h"
#include "transaction_check_internal.h"
Go to the source code of this file.
◆ HOW_IT_WORKS_NB
| #define HOW_IT_WORKS_NB 3 |
◆ finalize_opt_in()
| void finalize_opt_in |
( |
void | | ) |
|
|
static |
◆ handle_tx_check_opt_in_response()
| WEAK void handle_tx_check_opt_in_response |
( |
bool | enabled | ) |
|
Default reply to an opt-in request on the app APDU: the 1-byte enable state.
Reply to an opt-in request received on the app APDU.
- Parameters
-
| [in] | enabled | Transaction Check enable state |
Definition at line 151 of file transaction_check_ui.c.
◆ opt_in_choice_cb()
| void opt_in_choice_cb |
( |
bool | enable | ) |
|
|
static |
Store the user choice, send the pending reply, then display the status.
- Parameters
-
| [in] | enable | Whether the user enabled Transaction Check |
Definition at line 69 of file transaction_check_ui.c.
◆ send_opt_in_reply()
| void send_opt_in_reply |
( |
bool | enabled | ) |
|
|
static |
Send the 1-byte enable state with SWO_SUCCESS.
- Parameters
-
| [in] | enabled | Transaction Check enable state |
Definition at line 50 of file transaction_check_ui.c.
◆ start_opt_in()
Display the opt-in screen if allowed and not seen yet.
- Parameters
-
| [in] | response_expected | Whether an APDU reply is pending |
| [in] | sdk_reply | Whether that reply is sent by the SDK (SDK APDU) |
- Returns
- TX_CHECK_PENDING, TX_CHECK_SUCCESS or TX_CHECK_NOT_ALLOWED
Definition at line 99 of file transaction_check_ui.c.
◆ tx_check_opt_in()
Display the opt-in screen, from the settings or for an app APDU.
Display the opt-in screen if the user has not seen it yet.
- Parameters
-
| [in] | response_expected | Whether an APDU reply is pending |
- Returns
- Same as start_opt_in()
Definition at line 162 of file transaction_check_ui.c.
◆ tx_check_opt_in_sdk_apdu()
Display the opt-in screen for the SDK APDU, replied by the SDK.
Opt-in request received on the SDK APDU, whose reply is sent by the SDK.
- Returns
- Same as start_opt_in()
Definition at line 173 of file transaction_check_ui.c.
◆ s_how_it_works
◆ s_how_it_works_icons
◆ s_how_it_works_texts
◆ s_response_expected
◆ s_sdk_reply