Update signing algorithm

This commit is contained in:
SChernykh 2021-06-21 23:49:13 +02:00
parent 3967badc55
commit cf104ebdc5
8 changed files with 20 additions and 34 deletions

View file

@ -45,6 +45,7 @@ bool BlockTemplate::Init(const String& blockTemplate, Coin coin)
has_miner_signature = (coin == Coin::WOWNERO) && (major_version >= 18);
if (has_miner_signature) {
ar(miner_signature);
ar(vote);
}
// Miner transaction begin

View file

@ -54,6 +54,7 @@ struct BlockTemplate
bool has_miner_signature;
uint8_t miner_signature[SIGNATURE_SIZE];
uint8_t vote[2];
// Miner tx
uint64_t tx_version;

View file

@ -29,7 +29,12 @@ extern "C" {
}
#include "base/tools/Cvt.h"
#ifdef XMRIG_PROXY_PROJECT
#define PROFILE_SCOPE(x)
#else
#include "crypto/rx/Profiler.h"
#endif
struct ec_scalar { char data[32]; };