Skip to content

Commit

Permalink
Remove compilation flag for os_perso_master_seed
Browse files Browse the repository at this point in the history
  • Loading branch information
srasoamiaramanana-ledger committed Jan 16, 2025
1 parent 8505e3b commit e366c0c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion include/os_seed.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ SYSCALL PERMISSION(APPLICATION_FLAG_BOLOS_UX) void os_perso_set_words(const unsi
PLENGTH(length),
unsigned int length);
SYSCALL PERMISSION(APPLICATION_FLAG_BOLOS_UX) void os_perso_finalize(void);
#if defined(HAVE_RECOVER)

SYSCALL PERMISSION(APPLICATION_FLAG_BOLOS_UX) void os_perso_master_seed(uint8_t *master_seed
PLENGTH(length),
size_t length,
os_action_t action);

#if defined(HAVE_RECOVER)
SYSCALL PERMISSION(APPLICATION_FLAG_BOLOS_UX) void os_perso_recover_state(uint8_t *state,
os_action_t action);
#endif // HAVE_RECOVER
Expand Down
2 changes: 1 addition & 1 deletion include/syscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@
#define SYSCALL_os_perso_derive_node_with_seed_key_ID 0x080000a6
#define SYSCALL_os_perso_derive_eip2333_ID 0x040000a7

#ifdef HAVE_RECOVER
#define SYSCALL_os_perso_master_seed_ID 0x02000052
#ifdef HAVE_RECOVER
#define SYSCALL_os_perso_recover_state_ID 0x02000054
#endif // HAVE_RECOVER

Expand Down
2 changes: 1 addition & 1 deletion src/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,6 @@ unsigned char os_perso_get_seed_algorithm(void)
}
#endif // HAVE_VAULT_RECOVERY_ALGO

#if defined(HAVE_RECOVER)
void os_perso_master_seed(uint8_t *master_seed, size_t length, os_action_t action)
{
unsigned int parameters[3];
Expand All @@ -1255,6 +1254,7 @@ void os_perso_master_seed(uint8_t *master_seed, size_t length, os_action_t actio
return;
}

#if defined(HAVE_RECOVER)
void os_perso_recover_state(uint8_t *state, os_action_t action)
{
unsigned int parameters[2];
Expand Down

0 comments on commit e366c0c

Please sign in to comment.