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

Split include/libeosio/types.hpp into ec.hpp and hash.hpp

This commit is contained in:
Henrik Hautakoski 2023-03-11 09:48:12 +01:00
parent 6a721c4634
commit 2a2360bd7d
5 changed files with 46 additions and 5 deletions

View file

@ -25,10 +25,15 @@
#define LIBEOSIO_HASH_H
#include <cstdint>
#include <libeosio/types.hpp>
namespace libeosio {
/**
* Hashes
*/
typedef struct { unsigned char data[20]; } ripemd160_t;
typedef struct { unsigned char data[32]; } sha256_t;
/**
* sha256 hashing function.
* Hashes the content in `data` up to `len` bytes. The result is stored in `out`.