mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
blake (SFR) and whirlpool (J) tested ok with a sha256d merkleroot So add a stratum setting to allow single sha256 merkle root... The shares are now valid on the pool side, but remains to find an old wallet to test... like Whirlcoin or blakecoin keccak not tested, could have the same problem about merkle/miners
18 lines
360 B
C
18 lines
360 B
C
#include <stdlib.h>
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
|
|
#include "../sha3/sph_blake.h"
|
|
|
|
void blakecoin_hash(const char* input, char* output, uint32_t len)
|
|
{
|
|
sph_blake256_context ctx_blake;
|
|
|
|
sph_blake256_set_rounds(8);
|
|
|
|
sph_blake256_init(&ctx_blake);
|
|
sph_blake256(&ctx_blake, input, len);
|
|
sph_blake256_close(&ctx_blake, output);
|
|
}
|
|
|