Files

20 lines
566 B
C
Raw Permalink Normal View History

2022-05-02 15:30:14 +02:00
#ifndef ENCODE_FIELD_H_
#define ENCODE_FIELD_H_
#ifdef HAVE_EIP712_FULL_SUPPORT
2022-05-02 15:30:14 +02:00
#include <stdint.h>
#include <stdbool.h>
2022-07-19 11:49:18 +02:00
#define EIP_712_ENCODED_FIELD_LENGTH 32
2022-05-02 15:30:14 +02:00
2022-07-19 11:49:18 +02:00
void *encode_uint(const uint8_t *const value, uint8_t length);
void *encode_int(const uint8_t *const value, uint8_t length, uint8_t typesize);
void *encode_boolean(const bool *const value, uint8_t length);
void *encode_address(const uint8_t *const value, uint8_t length);
void *encode_bytes(const uint8_t *const value, uint8_t length);
2022-05-02 15:30:14 +02:00
2022-07-19 11:49:18 +02:00
#endif // HAVE_EIP712_FULL_SUPPORT
2022-07-19 11:49:18 +02:00
#endif // ENCODE_FIELD_H_