forked from LedgerHQ/app-tezos-legacy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
88 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
#pragma once | ||
|
||
#include "apdu.h" | ||
#include <stddef.h> | ||
#include <stdint.h> | ||
|
||
/** | ||
* @brief Handles AUTHORIZE_BAKING, GET_PUBLIC_KEY and PROMPT_PUBLIC_KEY instructions | ||
* | ||
* @param instruction: apdu instruction | ||
* @param flags: io flags | ||
* @return size_t: offset of the apdu response | ||
*/ | ||
size_t handle_apdu_get_public_key(uint8_t instruction, volatile uint32_t* flags); | ||
|
||
void prompt_address(bool baking, ui_callback_t ok_cb, ui_callback_t cxl_cb); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#pragma once | ||
|
||
#include "types.h" | ||
|
||
/** | ||
* @brief Draws public key confirmation pages flow | ||
* | ||
* - Initial screen | ||
* - Values: | ||
* - Address | ||
* - Confirmation screens | ||
* | ||
* @param authorize: if ask for authorize the public key | ||
* @param ok_cb: accept callback | ||
* @param cxl_cb: reject callback | ||
*/ | ||
void prompt_pubkey(bool authorize, ui_callback_t const ok_cb, ui_callback_t const cxl_cb); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters