This repository was archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 289
/
Copy pathtypes.h
72 lines (58 loc) · 1.5 KB
/
types.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/**
* @file
* @copyright defined in eos/LICENSE
*/
#pragma once
#include <stdint.h>
#include <wchar.h>
#warning "<eosiolib/types.h> is deprecated use <eosio/types.h>. If you are using C++ the .h header files will be removed from inclusion entirely in v1.7.0"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @addtogroup c_types
* @brief Specifies builtin types, typedefs and aliases
* @{
*/
/**
* Macro to align/overalign a type to ensure calls to intrinsics with pointers/references are properly aligned
*/
/* macro to align/overalign a type to ensure calls to intrinsics with pointers/references are properly aligned */
#define ALIGNED(X) __attribute__ ((aligned (16))) X
typedef uint64_t capi_name;
/**
* EOSIO Public Key. K1 and R1 keys are 34 bytes. Newer keys can be variable-sized
*/
struct __attribute__((deprecated("newer public key types cannot be represented as a fixed size structure", "char[]")))
capi_public_key {
char data[34];
};
/**
* EOSIO Signature. K1 and R1 signatures are 66 bytes. Newer signatures can be variable-sized
*/
struct __attribute__((deprecated("newer signature types cannot be represented as a fixed size structure", "char[]")))
capi_signature {
uint8_t data[66];
};
/**
* 256-bit hash
*/
struct ALIGNED(capi_checksum256) {
uint8_t hash[32];
};
/**
* 160-bit hash
*/
struct ALIGNED(capi_checksum160) {
uint8_t hash[20];
};
/**
* 512-bit hash
*/
struct ALIGNED(capi_checksum512) {
uint8_t hash[64];
};
/// @}
#ifdef __cplusplus
} /// extern "C"
#endif