From 7fdf0d62393114dc5cf684549e998ff80b7a758a Mon Sep 17 00:00:00 2001 From: AlbertoBSD Date: Fri, 16 Apr 2021 15:55:28 +0200 Subject: [PATCH] - Solved Issues 49, 50 51 See: https://github.com/albertobsd/keyhunt/issues/51 https://github.com/albertobsd/keyhunt/issues/50 https://github.com/albertobsd/keyhunt/issues/49 --- CHANGELOG.md | 9 +++++++++ keyhunt.c | 4 +--- secp256k1/Int.cpp | 1 + 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fd5234..8417d21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +# Version development +- Solved Issues 49, 50 51 + See: + https://github.com/albertobsd/keyhunt/issues/51 + https://github.com/albertobsd/keyhunt/issues/50 + https://github.com/albertobsd/keyhunt/issues/49 + + + # Version 0.1.20210412 secp256k1 - Full migration from libgmp to secp256k1 - Change the way for keygeneration for modes xpoint, address, and rmd160 diff --git a/keyhunt.c b/keyhunt.c index 63ec870..fdf8f0e 100644 --- a/keyhunt.c +++ b/keyhunt.c @@ -665,7 +665,7 @@ int main(int argc, char **argv) { } else { if(bloom_init2(&bloom,N,0.00001) == 1){ - fprintf(stderr,"[E] error bloom_init for %u elements.\n",N); + fprintf(stderr,"[E] error bloom_init for %" PRIu64 " elements.\n",N); fprintf(stderr,"[+] man enough is enough stop it\n"); exit(0); } @@ -1536,8 +1536,6 @@ void *thread_process(void *vargp) { free(tt); found = 0; grp->Set(dx); - - do { if(FLAGRANDOM){ key_mpz.Rand(&n_range_start,&n_range_end); diff --git a/secp256k1/Int.cpp b/secp256k1/Int.cpp index d106661..d404d15 100644 --- a/secp256k1/Int.cpp +++ b/secp256k1/Int.cpp @@ -758,6 +758,7 @@ void Int::Rand(Int *min,Int *max) { for(;iMod(&diff); + this->Add(min); } // ------------------------------------------------