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
4 changed files
with
57 additions
and
19 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,48 @@ | ||
#pragma once | ||
|
||
#include <stddef.h> | ||
#include <stdint.h> | ||
|
||
/** | ||
* @brief Handles QUERY_AUTH instruction | ||
* | ||
* Fills apdu response with the authorized key path | ||
* | ||
* @param instruction: apdu instruction | ||
* @param flags: io flags | ||
* @return size_t: offset of the apdu response | ||
*/ | ||
size_t handle_apdu_query_auth_key(uint8_t instruction, volatile uint32_t* flags); | ||
|
||
/** | ||
* @brief Handles QUERY_AUTH_KEY_WITH_CURVE instruction | ||
* | ||
* Fills apdu response with the authorized key path and its curve | ||
* | ||
* @param instruction: apdu instruction | ||
* @param flags: io flags | ||
* @return size_t: offset of the apdu response | ||
*/ | ||
size_t handle_apdu_query_auth_key_with_curve(uint8_t instruction, volatile uint32_t* flags); | ||
|
||
/** | ||
* @brief Handles QUERY_MAIN_HWM instruction | ||
* | ||
* Fills apdu response with main HWM | ||
* | ||
* @param instruction: apdu instruction | ||
* @param flags: io flags | ||
* @return size_t: offset of the apdu response | ||
*/ | ||
size_t handle_apdu_main_hwm(uint8_t instruction, volatile uint32_t* flags); | ||
|
||
/** | ||
* @brief Handles QUERY_ALL_HWM instruction | ||
* | ||
* Fills apdu response with main HWM, test HWM and main chain id | ||
* | ||
* @param instruction: apdu instruction | ||
* @param flags: io flags | ||
* @return size_t: offset of the apdu response | ||
*/ | ||
size_t handle_apdu_all_hwm(uint8_t instruction, volatile uint32_t* flags); |
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