1
0
mirror of https://github.com/GOSTSec/ccminer synced 2025-01-10 14:57:53 +00:00
ccminer/equi/equihash.h
Tanguy Pruvot 8cf21599d4 Interface nicehash djeZo equihash solver (squashed)
Todo:
    - send block height via stratum protocol (encoded in jobid?)
    - remove equi/blake2 cpu algorithm to use common one

the extranonce imcompatibility is related to the solver nonce data,
offsets may be reversed in nheqminer, to check...

The solver was adapted for SM 3.0+ support (no perf changes)

Note: The solver was not improved on purpose, to be able compare
the two miners performances (nheqminer 0.5c the last open sourced, and ccminer)

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>

stratum: code cleanup, move equi fns in equi folder
2017-05-23 23:54:35 +02:00

20 lines
448 B
C

#ifndef EQUIHASH_H
#define EQUIHASH_H
#include <stdint.h>
// miner nonce "cursor" unique for each thread
#define EQNONCE_OFFSET 30 /* 27:34 */
#define WK 9
#define WN 200
//#define CONFIG_MODE_1 9, 1248, 12, 640, packer_cantor /* eqcuda.hpp */
extern "C" {
void equi_hash(const void* input, void* output, int len);
int equi_verify_sol(void* const hdr, void* const soln);
bool equi_verify(uint8_t* const hdr, uint8_t* const soln);
}
#endif