Renamed EIP712 context files to less generic ones

This commit is contained in:
Alexandre Paillier
2022-08-25 10:54:34 +02:00
parent 1b46ccb190
commit 5ce56bd53e
9 changed files with 8 additions and 8 deletions

View File

@@ -0,0 +1,25 @@
#ifndef EIP712_CTX_H_
#define EIP712_CTX_H_
#ifdef HAVE_EIP712_FULL_SUPPORT
#include <stdbool.h>
#include "ethUstream.h" // ADDRESS_LENGTH
typedef struct {
uint8_t contract_addr[ADDRESS_LENGTH];
uint64_t chain_id;
uint8_t schema_hash[224 / 8];
} s_eip712_context;
extern s_eip712_context *eip712_context;
bool eip712_context_init(void);
void eip712_context_deinit(void);
typedef enum { NOT_INITIALIZED, INITIALIZED } e_struct_init;
extern e_struct_init struct_state;
#endif // HAVE_EIP712_FULL_SUPPORT
#endif // EIP712_CTX_H_