1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-17 20:10:03 +02:00

include/libeosio/hash.hpp: remove nested struct from ripemd160_t and sha256_t and just use a array directly.

This commit is contained in:
Henrik Hautakoski 2023-03-26 19:25:55 +02:00
parent 6026114869
commit abecabba99
7 changed files with 89 additions and 127 deletions

View file

@ -31,8 +31,8 @@ namespace libeosio {
/**
* Hashes
*/
typedef struct { unsigned char data[20]; } ripemd160_t;
typedef struct { unsigned char data[32]; } sha256_t;
typedef unsigned char ripemd160_t[20];
typedef unsigned char sha256_t[32];
/**
* sha256 hashing function.