1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-18 04:00:03 +02:00

src/checksum.h: Use a define for checksum length instead of magic number.

This commit is contained in:
Henrik Hautakoski 2020-01-30 08:03:39 +01:00
parent 59b358d256
commit cc4d91579b

View file

@ -27,7 +27,9 @@
#include <cstddef>
#include <array>
typedef std::array<unsigned char, 4> checksum_t;
#define CHECKSUM_SIZE 4
typedef std::array<unsigned char, CHECKSUM_SIZE> checksum_t;
checksum_t checksum_sha256d(const unsigned char *data, std::size_t len);