mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-04-22 14:59:11 +00:00
Reenable deterministic mining.
This commit is contained in:
parent
532b61e4f9
commit
a1f7e9d9ed
3 changed files with 6 additions and 5 deletions
5
main.c
5
main.c
|
@ -677,11 +677,6 @@ int main(int argc,char **argv)
|
||||||
filters_add(arg);
|
filters_add(arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (deterministic) {
|
|
||||||
fprintf(stderr, "deterministic trustless mining isn't supported yet.\n");
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (yamlinput && yamloutput) {
|
if (yamlinput && yamloutput) {
|
||||||
fprintf(stderr,"both -y and -Y does not make sense\n");
|
fprintf(stderr,"both -y and -Y does not make sense\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
|
@ -54,6 +54,9 @@ initseed:
|
||||||
ed25519_seckey_expand(sk,seed);
|
ed25519_seckey_expand(sk,seed);
|
||||||
|
|
||||||
ge_scalarmult_base(&ge_public,sk);
|
ge_scalarmult_base(&ge_public,sk);
|
||||||
|
if (pubkey_base_initialized) {
|
||||||
|
ge25519_add(&ge_public, &ge_public, &PUBKEY_BASE);
|
||||||
|
}
|
||||||
|
|
||||||
for (counter = oldcounter = 0;counter < DETERMINISTIC_LOOP_COUNT - (BATCHNUM - 1) * 8;counter += BATCHNUM * 8) {
|
for (counter = oldcounter = 0;counter < DETERMINISTIC_LOOP_COUNT - (BATCHNUM - 1) * 8;counter += BATCHNUM * 8) {
|
||||||
ge_p1p1 ALIGN(16) sum;
|
ge_p1p1 ALIGN(16) sum;
|
||||||
|
|
|
@ -49,6 +49,9 @@ initseed:
|
||||||
ed25519_seckey_expand(sk,seed);
|
ed25519_seckey_expand(sk,seed);
|
||||||
|
|
||||||
ge_scalarmult_base(&ge_public,sk);
|
ge_scalarmult_base(&ge_public,sk);
|
||||||
|
if (pubkey_base_initialized) {
|
||||||
|
ge25519_add(&ge_public, &ge_public, &PUBKEY_BASE);
|
||||||
|
}
|
||||||
ge_p3_tobytes(pk,&ge_public);
|
ge_p3_tobytes(pk,&ge_public);
|
||||||
|
|
||||||
for (counter = oldcounter = 0;counter < DETERMINISTIC_LOOP_COUNT;counter += 8) {
|
for (counter = oldcounter = 0;counter < DETERMINISTIC_LOOP_COUNT;counter += 8) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue