FILE / ScuroNeko/go-deepseek
pow/pow.h
Исходный файл и его история в репозитории.
32 lines
587 B
C
32 lines
587 B
C
#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 |