initial commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#ifndef DEEPSEEK_POW_H
|
||||
#define DEEPSEEK_POW_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Возвращает:
|
||||
*
|
||||
* >= 0 — найденный nonce
|
||||
* -1 — решение не найдено
|
||||
* -2 — передан NULL
|
||||
* -3 — некорректные аргументы
|
||||
* -4 — внутреннее исключение C++
|
||||
*/
|
||||
int64_t deepseek_pow_solve(
|
||||
const char* base,
|
||||
size_t base_len,
|
||||
const char* challenge_hex,
|
||||
size_t challenge_hex_len,
|
||||
int64_t difficulty
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user