From 69722d5c7373e7b3d50873cc98371eb7faa9fbb3 Mon Sep 17 00:00:00 2001 From: koh-gt <101822992+koh-gt@users.noreply.github.com> Date: Sat, 23 Dec 2023 04:46:36 +0800 Subject: [PATCH 1/4] Update base58prefix.txt --- base58prefix.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base58prefix.txt b/base58prefix.txt index abb636f..4c21a85 100644 --- a/base58prefix.txt +++ b/base58prefix.txt @@ -1,9 +1,9 @@ -# For more infomation, please see https://en.bitcoin.it/wiki/List_of_address_prefixes +# For more infomation, please visit https://en.bitcoin.it/wiki/List_of_address_prefixes # Please sort this file by `sort -k1.1,1.1 base58prefix.txt>base58prefix.new; mv base58prefix.new base58prefix.txt` # Symbol, Coin name, Address prefix, Address base58 version (prefix), Private key base58 version (prefix) -DOGE,Dogecoin,D,30,158 -LTC,Litecoin,L,48,176 NMC,Namecoin,M or N,52,180 +LTC,Litecoin,L,48,176 CY,Cyberyen,C,28,156 +DOGE,Dogecoin,D,30,158 FNNC,Fennec,F,35,178 From 145b86f1eb0b913f48b7497305fcc224eaea3950 Mon Sep 17 00:00:00 2001 From: koh-gt <101822992+koh-gt@users.noreply.github.com> Date: Sat, 23 Dec 2023 04:48:16 +0800 Subject: [PATCH 2/4] Update vanitygen.c --- vanitygen/vanitygen.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/vanitygen/vanitygen.c b/vanitygen/vanitygen.c index c1c3e00..d89c0b1 100644 --- a/vanitygen/vanitygen.c +++ b/vanitygen/vanitygen.c @@ -501,7 +501,7 @@ main(int argc, char **argv) fprintf(stderr, "Generating BTC [Bitcoin] Testnet Address\n"); addrtype = 111; - privtype = 239; + privtype = 111+128; break; } @@ -527,17 +527,10 @@ main(int argc, char **argv) if (vg_get_altcoin(optarg, &addrtype, &privtype)) { return 1; } - if (strcmp(optarg, "GRS")== 0) { - GRSFlag = 1; - } - else { - fprintf(stderr, - "No coin indicated.\nGenerating/Decrypting FEC [Ferritecoin] Address by default.\n"); - addrtype = 36; - privtype = 36+127; - break; - - } + if (strcmp(optarg, "GRS")== 0) { + GRSFlag = 1; + } + } break; From 362aa4fd0faf289f946bd4c2923b078d62c8d0ee Mon Sep 17 00:00:00 2001 From: koh-gt <101822992+koh-gt@users.noreply.github.com> Date: Sat, 23 Dec 2023 04:48:55 +0800 Subject: [PATCH 3/4] Update oclvanitygen.c --- oclvanitygen/oclvanitygen.c | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/oclvanitygen/oclvanitygen.c b/oclvanitygen/oclvanitygen.c index 78f407d..1f35c86 100644 --- a/oclvanitygen/oclvanitygen.c +++ b/oclvanitygen/oclvanitygen.c @@ -250,7 +250,7 @@ main(int argc, char **argv) fprintf(stderr, "Generating BTC [Bitcoin] Testnet Address\n"); addrtype = 111; - privtype = 239; + privtype = 111+128; break; } @@ -263,23 +263,16 @@ main(int argc, char **argv) break; } else { - // Read from base58prefix.txt - fprintf(stderr, "Generating %s Address\n", optarg); - if (vg_get_altcoin(optarg, &addrtype, &privtype)) { - return 1; - } - if (strcmp(optarg, "GRS")== 0) { - GRSFlag = 1; - } - else { - fprintf(stderr, - "No coin indicated.\nGenerating/Decrypting FEC [Ferritecoin] Address by default.\n"); - addrtype = 36; - privtype = 36+127; - break; - - } - } + // Read from base58prefix.txt + fprintf(stderr, "Generating %s Address\n", optarg); + if (vg_get_altcoin(optarg, &addrtype, &privtype)) { + return 1; + } + if (strcmp(optarg, "GRS")== 0) { + GRSFlag = 1; + } + + } break; /*END ALTCOIN GENERATOR*/ From 85032ec270845862dd43b91a03a1b173d456dbae Mon Sep 17 00:00:00 2001 From: koh-gt <101822992+koh-gt@users.noreply.github.com> Date: Sat, 23 Dec 2023 04:49:27 +0800 Subject: [PATCH 4/4] Update keyconv.c --- keyconv/keyconv.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/keyconv/keyconv.c b/keyconv/keyconv.c index a88b25d..9ed7454 100644 --- a/keyconv/keyconv.c +++ b/keyconv/keyconv.c @@ -172,16 +172,9 @@ main(int argc, char **argv) return 1; } if (strcmp(optarg, "GRS")== 0) { - GRSFlag = 1; - } - else { - fprintf(stderr, - "No coin indicated.\nGenerating/Decrypting FEC [Ferritecoin] Address by default.\n"); - addrtype_opt = 36; - privtype_opt = 36+127; - break; - - } + GRSFlag = 1; + } + } break;