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:
parent
59b358d256
commit
cc4d91579b
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue