WIP field hashing

This commit is contained in:
Alexandre Paillier
2022-05-02 15:30:14 +02:00
parent fd31def094
commit 7e35b96ec0
5 changed files with 169 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#ifndef ENCODE_FIELD_H_
#define ENCODE_FIELD_H_
#include <stdint.h>
#include <stdbool.h>
#define EIP_712_ENCODED_FIELD_LENGTH 32
void *encode_integer(const uint8_t *const value, uint16_t length);
void *encode_string(const char *const value, uint16_t length);
void *encode_bool(const bool *const value, uint16_t length);
void *encode_address(const uint8_t *const value, uint16_t length);
void *encode_bytes(const uint8_t *const value, uint16_t length);
#endif // ENCODE_FIELD_H_