difficulty calculation, move from randomx to autolykos2

This commit is contained in:
2026-03-30 15:42:28 +02:00
parent c358115af4
commit b47ff30bc7
18 changed files with 1163 additions and 224 deletions

14
include/blake2/blake2.h Normal file
View File

@@ -0,0 +1,14 @@
#ifndef MINICOIN_BLAKE2_H
#define MINICOIN_BLAKE2_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#define MINICOIN_BLAKE2B_OUTBYTES 64
#define MINICOIN_BLAKE2S_OUTBYTES 32
bool Blake2b_Hash(const uint8_t* input, size_t inputLen, uint8_t* out, size_t outLen);
bool Blake2s_Hash(const uint8_t* input, size_t inputLen, uint8_t* out, size_t outLen);
#endif