Moved EIP 712 commands handling into their own file & renamed some things

This commit is contained in:
Alexandre Paillier
2022-07-05 17:18:22 +02:00
parent 399b865e5c
commit 7dad477413
15 changed files with 16 additions and 33 deletions

View File

@@ -182,13 +182,6 @@ void handleStarkwareUnsafeSign(uint8_t p1,
#endif
#ifdef HAVE_EIP712_FULL_SUPPORT
bool handle_eip712_struct_def(const uint8_t *const apdu_buf);
bool handle_eip712_struct_impl(const uint8_t *const apdu_buf);
bool handle_eip712_sign(const uint8_t *const apdu_buf);
bool handle_eip712_filtering(const uint8_t *const apdu_buf);
#endif // HAVE_EIP712_FULL_SUPPORT
extern uint16_t apdu_response_code;
#endif // _APDU_CONSTANTS_H_

View File

@@ -29,7 +29,7 @@
#include "handle_swap_sign_transaction.h"
#include "handle_get_printable_amount.h"
#include "handle_check_address.h"
#include "context.h"
#include "commands_712.h"
#ifdef HAVE_STARKWARE
#include "stark_crypto.h"

View File

@@ -22,6 +22,9 @@
#include "uint256.h"
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
void array_hexstr(char* strbuf, const void* bin, unsigned int len);
void convertUint128BE(const uint8_t *const data, uint32_t length, uint128_t *const target);