|
|
@ -1183,16 +1183,8 @@ void static RandomXMiner() |
|
|
|
char randomxKey[65]; // randomx spec says keysize of >60 bytes is implementation-specific
|
|
|
|
strncpy(randomxKey, SMART_CHAIN_SYMBOL, 65); |
|
|
|
|
|
|
|
crypto_generichash_blake2b_state state; |
|
|
|
// Hash = blake2b( key || ac_name)
|
|
|
|
//crypto_generichash_blake2b_update(&state, (unsigned char*)&randomxKey[0], sizeof(randomxKey));
|
|
|
|
//crypto_generichash_blake2b_update(&state, (unsigned char*)&randomxKey[0], 4 + strlen(SMART_CHAIN_SYMBOL) + 1);
|
|
|
|
//crypto_generichash_blake2b_update(&state, (unsigned char*)&SMART_CHAIN_SYMBOL[0], sizeof(SMART_CHAIN_SYMBOL));
|
|
|
|
//uchar randomxInput[32];
|
|
|
|
//crypto_generichash_blake2b_final(&state, randomxInput, 32);
|
|
|
|
//unsigned char randomxInput[] = "RANDOMX";
|
|
|
|
char randomxInput[80]; |
|
|
|
sprintf(randomxInput, "%08x", ASSETCHAINS_MAGIC); |
|
|
|
sprintf(randomxInput, "%08x Extreme Privacy Hush Smart Chain %08x", ASSETCHAINS_MAGIC, ASSETCHAINS_MAGIC); |
|
|
|
|
|
|
|
fprintf(stderr,"RandomXMiner: created randomxInput=%s\n", randomxInput); |
|
|
|
|
|
|
|