Proper cleanup after EIP712 message

This commit is contained in:
Alexandre Paillier
2022-05-12 17:30:26 +02:00
parent 0525f7cda8
commit c0eaf8d106
13 changed files with 88 additions and 13 deletions

View File

@@ -2,6 +2,7 @@
#define UI_LOGIC_712_H_
#include <stdint.h>
#include "ux.h"
typedef enum
{
@@ -17,9 +18,12 @@ typedef struct
} t_ui_context;
bool ui_712_init(void);
void ui_712_deinit(void);
void ui_712_next_field(void);
void ui_712_new_root_struct(const void *const struct_ptr);
void ui_712_new_field(const void *const field_ptr, const uint8_t *const data, uint8_t length);
void ui_712_end_sign(void);
unsigned int ui_712_approve(const bagl_element_t *e);
unsigned int ui_712_reject(const bagl_element_t *e);
#endif // UI_LOGIC_712_H_