Changes for the Monero v1 PoW
This commit is contained in:
parent
79345119c6
commit
48b1de0b59
6 changed files with 128 additions and 52 deletions
|
@ -50,9 +50,9 @@ class JobResult;
|
|||
class CryptoNight
|
||||
{
|
||||
public:
|
||||
static bool hash(const Job &job, JobResult &result, cryptonight_ctx *ctx);
|
||||
static bool hash(const Job &job, JobResult &result, cryptonight_ctx *ctx, uint8_t version);
|
||||
static bool init(int algo, int variant);
|
||||
static void hash(const uint8_t *input, size_t size, uint8_t *output, cryptonight_ctx *ctx);
|
||||
static bool hash(const uint8_t *input, size_t size, uint8_t *output, cryptonight_ctx *ctx, uint8_t version);
|
||||
|
||||
private:
|
||||
static bool selfTest(int algo);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue