Author

Topic: [NOMP] How to add new algos to stratum-pool (Read 140 times)

newbie
Activity: 10
Merit: 0
August 02, 2018, 10:30:35 AM
#1
Hi, I am setting up a multipool with NOMP (https://github.com/foxer666/node-open-mining-portal)
I already had all working and running but I want to add a lyra2z330 coin but I think there are missing files for this algo.

I checked the /node_module/multihashing/ and I need the C source (.h and .c files) for the algo and I think recompile that.
After I need to modify another js file for calling it.

The question is, where do I find these files for decrypting the algo?
The files contains this (lyra2rev2)


.c
Code:
#include "Lyra2RE.h"
#include
#include
#include
#include
#include "Lyra2.h"

void lyra2rev2_hash(const char* input, char* output, uint32_t height)
{

    uint32_t hashB[8];


LYRA2((void*)hashB, 32, (const void*)input, 80, (const void*)input, 80, 2, height, 256);


memcpy(output, hashB, 32);
}

.h
Code:
#ifndef LYRA2REV2_H
#define LYRA2REV2_H

#ifdef __cplusplus
extern "C" {
#endif

void lyra2rev2_hash(const char* input, char* output, uint32_t height);

#ifdef __cplusplus
}
#endif

#endif


thanks
Jump to: