Now only compiles full EIP-712 support for capable devices

This commit is contained in:
Alexandre Paillier
2022-05-16 10:59:20 +02:00
parent b9820774ba
commit 2fa6379470
26 changed files with 109 additions and 6 deletions

View File

@@ -1,3 +1,5 @@
#ifdef HAVE_EIP712_FULL_SUPPORT
#include <stdlib.h>
#include "field_hash.h"
#include "encode_field.h"
@@ -7,6 +9,7 @@
#include "eip712.h"
#include "shared_context.h"
#include "ui_logic.h"
#include "ethUtils.h" // KECCAK256_HASH_BYTESIZE
static s_field_hashing *fh = NULL;
@@ -170,3 +173,5 @@ bool field_hash(const uint8_t *data,
return true;
}
#endif // HAVE_EIP712_FULL_SUPPORT