forked from N4M3Z/vanitygen-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
keyconv.c
1447 lines (1413 loc) · 31.1 KB
/
keyconv.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <assert.h>
#include <openssl/evp.h>
#include <openssl/bn.h>
#include <openssl/ec.h>
#include <openssl/obj_mac.h>
#if !defined(_WIN32)
#include <unistd.h>
#else
#include "winglue.h"
#endif
#include "pattern.h"
#include "util.h"
#include "ticker.h"
char ticker[10];
const char *version = VANITYGEN_VERSION;
int GRSFlag = 0;
static void
usage(const char *progname)
{
fprintf(stderr,
"Vanitygen keyconv %s\n"
"Usage: %s [-8] [-e|-E <password>] [-c <key>] [<key>]\n"
"-G Generate a key pair and output the full public key\n"
"-8 Output key in PKCS#8 form\n"
"-F <format> Output address in the given format (compressed)\n"
"-e Encrypt output key, prompt for password\n"
"-E <password> Encrypt output key with <password> (UNSAFE)\n"
"-c <key> Combine private key parts to make complete private key\n"
"-C <altcoin> Decrypt an address for specific altcoin, use \"-C LIST\" to view\n"
" a list of all available altcoins, argument is case sensitive!\n"
"-d Decrypt output key, prompt for password\n"
"-X <version> Public key version (for altcoins)\n"
"-Y <version> Private key version (-X provides public key)\n"
"-v Verbose output\n",
version, progname);
}
int
main(int argc, char **argv)
{
char pwbuf[128];
char ecprot[128];
char pbuf[1024];
const char *key_in;
const char *pass_in = NULL;
const char *key2_in = NULL;
EC_KEY *pkey;
int parameter_group = -1;
int addrtype = 0;
int privtype = 128;
int addrtype_opt = addrtype;
int privtype_opt = privtype;
int addrtype_override = 0;
int pkcs8 = 0;
int pass_prompt = 0;
int compressed = 0;
int verbose = 0;
int generate = 0;
int decrypt = 0;
int opt;
int res;
while ((opt = getopt(argc, argv, "C:8E:ec:vGX:Y:dF:")) != -1) {
switch (opt) {
/*BEGIN ALTCOIN GENERATOR*/
case 'C':
strcpy(ticker, optarg);
strcat(ticker, " ");
addrtype_override = 1;
/* Start AltCoin Generator */
if (strcmp(optarg, "LIST")== 0) {
fprintf(stderr,
"Usage example \"./oclvanitygen -C LTC Lfoo\"\n"
"List of Available Alt-Coins for Address Generation\n"
"---------------------------------------------------\n"
"Argument(UPPERCASE) : Coin : Address Prefix\n"
"---------------\n"
"42 : 42coin : 4\n"
"AC : Asiacoin : A\n"
"ACM : Actinium : N\n"
"AIB : Advanced Internet Block by IOBOND : A\n"
"ANC : Anoncoin : A\n"
"ARS : Arkstone : A\n"
"ATMOS : Atmos : N\n"
"AUR : Auroracoin : A\n"
"AQX : Aquila : A\n"
"AXE : Axe : P\n"
"BLAST : BLAST : B\n"
"BLK : Blackcoin : B\n"
"BWK : Bulwark : b\n"
"BQC : BBQcoin : b\n"
"BTC : Bitcoin : 1\n"
"TEST : Bitcoin Testnet : m or n\n"
"BTCD : Bitcoin Dark : R\n"
"CARE : Carebit : C\n"
"CCBC : CryptoCashBackCoin : C\n"
"CCC : Chococoin : 7\n"
"CCN : Cannacoin : C\n"
"CDN : Canadaecoin : C\n"
"CIV : Civitas : C\n"
"tCIV : Civitas Testnet : y\n"
"CLAM : Clamcoin : x\n"
"CNC : Chinacoin : C\n"
"CNOTE : C-Note : C\n"
"CON : PayCon : P\n"
"CRW : Crown : 1\n"
"DASH : Dash : X\n"
"DEEPONION : DeepOnion : D\n"
"DNR: Denarius: D\n"
"DGB : Digibyte : D\n"
"DGC : Digitalcoin : D\n"
"DMD : Diamond : d\n"
"DOGED : Doge Dark Coin : D\n"
"DOGE : Dogecoin : D\n"
"DOPE : Dopecoin : 4\n"
"DVC : Devcoin : 1\n"
"EFL : Electronic-Gulden-Foundation : L\n"
"EMC : Emercoin : E\n"
"EXCL : Exclusivecoin : E\n"
"FAIR : Faircoin2 : f\n"
"FLOZ : FLOZ : F\n"
"FTC : Feathercoin : 6 or 7\n"
"GAME : GameCredits : G\n"
"GAP : Gapcoin : G\n"
"GCR : Global Currency Reserve : G\n"
"GRC : GridcoinResearch : R or S\n"
"GRLC : Garlicoin : G\n"
"GRN : GreenCoin : G\n"
"GRS : Groestlcoin : F\n"
"GRV : Gravium : G\n"
"GUN : Guncoin : G or H\n"
"HAM : HamRadiocoin : 1\n"
"HBN : HoboNickels(BottleCaps) : E or F\n"
"HODL : HOdlcoin : H\n"
"IC : Ignition Coin : i\n"
"IXC : Ixcoin : x\n"
"IPS : Ipsum : i\n"
"JBS : Jumbucks : J\n"
"JIN : Jincoin : J\n"
"KMD : Komodo (and assetchains) : R\n"
"KORE : Kore : K\n"
"LBRY : LBRY : b\n"
"LEAF : Leafcoin : f\n"
"LMC : LomoCoin : L\n"
"LTC : Litecoin : L\n"
"MGD : MassGrid : M\n"
"MMC : Memorycoin : M\n"
"MNC : Mincoin : M\n"
"tMNC : Mincoin Testnet : m or n\n"
"MNP : MNPCoin : M\n"
"MOG : Mogwai : M\n"
"MONA : Monacoin : M\n"
"MUE : Monetary Unit : 7\n"
"MYRIAD : Myriadcoin : M\n"
"MZC : Mazacoin : M\n"
"NEOS : Neoscoin : S\n"
"NLG : Gulden : G\n"
"NEET : NEETCOIN : N\n"
"NMC : Namecoin : M or N\n"
"NVC : Novacoin : 4\n"
"NYAN : Nyancoin : K\n"
"OK : OK Cash : P\n"
"OMC : Omnicoin : o\n"
"PIGGY : Piggycoin : p\n"
"PINK : Pinkcoin : 2\n"
"PIVX : PIVX : D\n"
"PKB : Parkbyte : P\n"
"PND : Pandacoin : P\n"
"POT : Potcoin : P\n"
"PPC : Peercoin : P\n"
"PTC : Pesetacoin : K\n"
"PTS : Protoshares : P\n"
"QTUM : Qtum : Q\n"
"RBY : Rubycoin : R\n"
"RDD : Reddcoin : R\n"
"RIC : Riecoin : R\n"
"ROI : ROIcoin : R\n"
"RVN : Ravencoin : R\n"
"SCA : Scamcoin : S\n"
"SDC : Shadowcoin : S\n"
"SKC : Skeincoin : S\n"
"SPR : Spreadcoin : S\n"
"START : Startcoin : s\n"
"SXC : Sexcoin : R or S\n"
"TPC : Templecoin : T\n"
"TUX : Tuxcoin : T\n"
"UIS : Unitus : U\n"
"UNO : Unobtanium : u\n"
"VIA : Viacoin : V\n"
"VIPS : VIPSTARCOIN : V\n"
"VPN : Vpncoin : V\n"
"VTC : Vertcoin : V\n"
"WDC : Worldcoin Global : W\n"
"WKC : Wankcoin : 1\n"
"WUBS : Dubstepcoin : D\n"
"XC : XCurrency : X\n"
"XPM : Primecoin : A\n"
"YAC : Yacoin : Y\n"
"YTN : Yenten : Y\n"
"ZNY : BitZeny : Z\n"
"ZOOM : Zoom coin : i\n"
"ZRC : Ziftrcoin : Z\n"
);
return 1;
}
else
if (strcmp(optarg, "ACM")== 0) {
fprintf(stderr,
"Generating Actinium Address\n");
addrtype_opt = 53;
privtype_opt = 181;
break;
}
else
if (strcmp(optarg, "AQX")== 0) {
fprintf(stderr,
"Generating Aquila Address\n");
addrtype_opt = 75;
privtype_opt = 212;
break;
}
else
if (strcmp(optarg, "IPS")== 0) {
fprintf(stderr,
"Generating Ipsum Address\n");
addrtype_opt = 103;
privtype_opt = 138;
break;
}
else
if (strcmp(optarg, "CCBC")== 0) {
fprintf(stderr,
"Generating CryptoCashBackCoin Address\n");
addrtype_opt = 63;
privtype_opt = 212;
break;
}
else
if (strcmp(optarg, "PIVX")== 0) {
fprintf(stderr,
"Generating PIVX Address\n");
addrtype_opt = 30;
privtype_opt = 212;
break;
}
else
if (strcmp(optarg, "KMD")== 0) {
fprintf(stderr,
"Generating KMD Address\n");
addrtype_opt = 60;
privtype_opt = 188;
break;
}
else
if (strcmp(optarg, "PINK")== 0) {
fprintf(stderr,
"Decrypting PINK Address\n");
addrtype_opt = 3;
privtype_opt = 131;
break;
}
else
if (strcmp(optarg, "DEEPONION")== 0) {
fprintf(stderr,
"Decrypting DEEPONION Address\n");
addrtype_opt = 31;
privtype_opt = 159;
break;
}
else
if (strcmp(optarg, "DNR")== 0) {
fprintf(stderr,
"Decrypting DNR Address\n");
addrtype_opt = 30;
privtype_opt = 158;
break;
}
else
if (strcmp(optarg, "DMD")== 0) {
fprintf(stderr,
"Decrypting DMD Address\n");
addrtype_opt = 90;
privtype_opt = 218;
break;
}
else
if (strcmp(optarg, "GUN")== 0) {
fprintf(stderr,
"Decrypting GUN Address\n");
addrtype_opt = 39;
privtype_opt = 167;
break;
}
else
if (strcmp(optarg, "HAM")== 0) {
fprintf(stderr,
"Decrypting HAM Address\n");
addrtype_opt = 0;
privtype_opt = 128;
break;
}
else
if (strcmp(optarg, "DVC")== 0) {
fprintf(stderr,
"Decrypting DVC Address\n");
addrtype_opt = 0;
privtype_opt = 128;
break;
}
else
if (strcmp(optarg, "42")== 0) {
fprintf(stderr,
"Decrypting 42 Address\n");
addrtype_opt = 8;
privtype_opt = 136;
break;
}
else
if (strcmp(optarg, "WKC")== 0) {
fprintf(stderr,
"Decrypting WKC Address\n");
addrtype_opt = 0;
privtype_opt = 128;
break;
}
else
if (strcmp(optarg, "SPR")== 0) {
fprintf(stderr,
"Decrypting SPR Address\n");
addrtype_opt = 63;
privtype_opt = 191;
break;
}
else
if (strcmp(optarg, "SCA")== 0) {
fprintf(stderr,
"Decrypting SCA Address\n");
addrtype_opt = 63;
privtype_opt = 191;
break;
}
else
if (strcmp(optarg, "GAP")== 0) {
fprintf(stderr,
"Decrypting GAP Address\n");
addrtype_opt = 38;
privtype_opt = 166;
break;
}
else
if (strcmp(optarg, "CCC")== 0) {
fprintf(stderr,
"Decrypting CCC Address\n");
addrtype_opt = 15;
privtype_opt = 224;
break;
}
else
if (strcmp(optarg, "PIGGY")== 0) {
fprintf(stderr,
"Decrypting PIGGY Address\n");
addrtype_opt = 118;
privtype_opt = 246;
break;
}
else
if (strcmp(optarg, "WDC")== 0) {
fprintf(stderr,
"Decrypting WDC Address\n");
addrtype_opt = 73;
privtype_opt = 201;
break;
}
else
if (strcmp(optarg, "EMC")== 0) {
fprintf(stderr,
"Decrypting Emercoin Address\n");
addrtype_opt = 33;
privtype_opt = 128;
break;
}
else
if (strcmp(optarg, "EXCL")== 0) {
fprintf(stderr,
"Decrypting EXCL Address\n");
addrtype_opt = 33;
privtype_opt = 161;
break;
}
else
if (strcmp(optarg, "XC")== 0) {
fprintf(stderr,
"Decrypting XC Address\n");
addrtype_opt = 75;
privtype_opt = 203;
break;
}
else
if (strcmp(optarg, "WUBS")== 0) {
fprintf(stderr,
"Decrypting WUBS Address\n");
addrtype_opt = 29;
privtype_opt = 157;
break;
}
else
if (strcmp(optarg, "SXC")== 0) {
fprintf(stderr,
"Decrypting SXC Address\n");
addrtype_opt = 62;
privtype_opt = 190;
break;
}
else
if (strcmp(optarg, "SKC")== 0) {
fprintf(stderr,
"Decrypting SKC Address\n");
addrtype_opt = 63;
privtype_opt = 226;
break;
}
else
if (strcmp(optarg, "PTS")== 0) {
fprintf(stderr,
"Decrypting PTS Address\n");
addrtype_opt = 56;
privtype_opt = 184;
break;
}
else
if (strcmp(optarg, "NLG")== 0) {
fprintf(stderr,
"Decrypting NLG Address\n");
addrtype_opt = 38;
privtype_opt = 166;
break;
}
else
if (strcmp(optarg, "MMC")== 0) {
fprintf(stderr,
"Decrypting MMC Address\n");
addrtype_opt = 50;
privtype_opt = 178;
break;
}
else
if (strcmp(optarg, "LEAF")== 0) {
fprintf(stderr,
"Decrypting LEAF Address\n");
addrtype_opt = 95;
privtype_opt = 223;
break;
}
else
if (strcmp(optarg, "HODL")== 0) {
fprintf(stderr,
"Decrypting HODL Address\n");
addrtype_opt = 40;
privtype_opt = 168;
break;
}
else
if (strcmp(optarg, "ROI")== 0) {
fprintf(stderr,
"Decrypting ROI Address\n");
addrtype_opt = 60;
privtype_opt = 128;
break;
}
else
if (strcmp(optarg, "FLOZ")== 0) {
fprintf(stderr,
"Decrypting FLOZ Address\n");
addrtype_opt = 35;
privtype_opt = 163;
break;
}
else
if (strcmp(optarg, "FAIR")== 0) {
fprintf(stderr,
"Decrypting FAIR Address\n");
addrtype_opt = 95;
privtype_opt = 223;
break;
}
else
if (strcmp(optarg, "CON")== 0) {
fprintf(stderr,
"Decrypting CON Address\n");
addrtype_opt = 55;
privtype_opt = 183;
break;
}
else
if (strcmp(optarg, "AUR")== 0) {
fprintf(stderr,
"Decrypting AUR Address\n");
addrtype_opt = 23;
privtype_opt = 151;
break;
}
else
if (strcmp(optarg, "GRC")== 0) {
fprintf(stderr,
"Decrypting GRC Address\n");
addrtype_opt = 62;
privtype_opt = 190;
break;
}
else
if (strcmp(optarg, "RIC")== 0) {
fprintf(stderr,
"Decrypting RIC Address\n");
addrtype_opt = 60;
privtype_opt = 128;
break;
}
else
if (strcmp(optarg, "UNO")== 0) {
fprintf(stderr,
"Decrypting UNO Address\n");
addrtype_opt = 130;
privtype_opt = 224;
break;
}
else
if (strcmp(optarg, "UIS")== 0) {
fprintf(stderr,
"Decrypting UIS Address\n");
addrtype_opt = 68;
privtype_opt = 132;
break;
}
else
if (strcmp(optarg, "MYRIAD")== 0) {
fprintf(stderr,
"Decrypting MYRIAD Address\n");
addrtype_opt = 50;
privtype_opt = 178;
break;
}
else
if (strcmp(optarg, "BQC")== 0) {
fprintf(stderr,
"Decrypting BQC Address\n");
addrtype_opt = 85;
privtype_opt = 213;
break;
}
else
if (strcmp(optarg, "YAC")== 0) {
fprintf(stderr,
"Decrypting YAC Address\n");
addrtype_opt = 77;
privtype_opt = 205;
break;
}
else
if (strcmp(optarg, "PTC")== 0) {
fprintf(stderr,
"Decrypting PTC Address\n");
addrtype_opt = 47;
privtype_opt = 175;
break;
}
else
if (strcmp(optarg, "RDD")== 0) {
fprintf(stderr,
"Decrypting RDD Address\n");
addrtype_opt = 61;
privtype_opt = 189;
break;
}
else
if (strcmp(optarg, "NYAN")== 0) {
fprintf(stderr,
"Decrypting NYAN Address\n");
addrtype_opt = 45;
privtype_opt = 173;
break;
}
else
if (strcmp(optarg, "IXC")== 0) {
fprintf(stderr,
"Decrypting IXC Address\n");
addrtype_opt = 138;
privtype_opt = 266;
break;
}
else
if (strcmp(optarg, "CNC")== 0) {
fprintf(stderr,
"Decrypting CNC Address\n");
addrtype_opt = 28;
privtype_opt = 156;
break;
}
else
if (strcmp(optarg, "CNOTE")== 0) {
fprintf(stderr,
"Decrypting C-Note Address\n");
addrtype_opt = 28;
privtype_opt = 186;
break;
}
else
if (strcmp(optarg, "ARS")== 0) {
fprintf(stderr,
"Decrypting ARS Address\n");
addrtype_opt = 23;
privtype_opt = 151;
break;
}
else
if (strcmp(optarg, "ANC")== 0) {
fprintf(stderr,
"Decrypting ANC Address\n");
addrtype_opt = 23;
privtype_opt = 151;
break;
}
else
if (strcmp(optarg, "OMC")== 0) {
fprintf(stderr,
"Decrypting OMC Address\n");
addrtype_opt = 115;
privtype_opt = 243;
break;
}
else
if (strcmp(optarg, "POT")== 0) {
fprintf(stderr,
"Decrypting POT Address\n");
addrtype_opt = 55;
privtype_opt = 183;
break;
}
else
if (strcmp(optarg, "EFL")== 0) {
fprintf(stderr,
"Decrypting EFL Address\n");
addrtype_opt = 48;
privtype_opt = 176;
break;
}
else
if (strcmp(optarg, "DOGED")== 0) {
fprintf(stderr,
"Decrypting DOGED Address\n");
addrtype_opt = 30;
privtype_opt = 158;
break;
}
else
if (strcmp(optarg, "OK")== 0) {
fprintf(stderr,
"Decrypting OK Address\n");
addrtype_opt = 55;
privtype_opt = 183;
break;
}
else
if (strcmp(optarg, "AIB")== 0) {
fprintf(stderr,
"Decrypting AIB Address\n");
addrtype_opt = 23;
privtype_opt = 151;
break;
}
else
if (strcmp(optarg, "TPC")== 0) {
fprintf(stderr,
"Decrypting TPC Address\n");
addrtype_opt = 65;
privtype_opt = 193;
break;
}
else
if (strcmp(optarg, "DOPE")== 0) {
fprintf(stderr,
"Decrypting DOPE Address\n");
addrtype_opt = 8;
privtype_opt = 136;
break;
}
else
if (strcmp(optarg, "BTCD")== 0) {
fprintf(stderr,
"Decrypting BTCD Address\n");
addrtype_opt = 60;
privtype_opt = 188;
break;
}
else
if (strcmp(optarg, "AC")== 0) {
fprintf(stderr,
"Decrypting AC Address\n");
addrtype_opt = 23;
privtype_opt = 151;
break;
}
else
if (strcmp(optarg, "NVC")== 0) {
fprintf(stderr,
"Decrypting NVC Address\n");
addrtype_opt = 8;
privtype_opt = 136;
break;
}
else
if (strcmp(optarg, "HBN")== 0) {
fprintf(stderr,
"Decrypting HBN Address\n");
addrtype_opt = 34;
privtype_opt = 162;
break;
}
else
if (strcmp(optarg, "GCR")== 0) {
fprintf(stderr,
"Decrypting GCR Address\n");
addrtype_opt = 38;
privtype_opt = 154;
break;
}
else
if (strcmp(optarg, "START")== 0) {
fprintf(stderr,
"Decrypting START Address\n");
addrtype_opt = 125;
privtype_opt = 253;
break;
}
else
if (strcmp(optarg, "PND")== 0) {
fprintf(stderr,
"Decrypting PND Address\n");
addrtype_opt = 55;
privtype_opt = 183;
break;
}
else
if (strcmp(optarg, "PKB")== 0) {
fprintf(stderr,
"Decrypting PKB Address\n");
addrtype_opt = 55;
privtype_opt = 183;
break;
}
else
if (strcmp(optarg, "SDC")== 0) {
fprintf(stderr,
"Decrypting SDC Address\n");
addrtype_opt = 63;
privtype_opt = 191;
break;
}
else
if (strcmp(optarg, "CDN")== 0) {
fprintf(stderr,
"Decrypting CDN Address\n");
addrtype_opt = 28;
privtype_opt = 156;
break;
}
else
if (strcmp(optarg, "VPN")== 0) {
fprintf(stderr,
"Decrypting VPN Address\n");
addrtype_opt = 71;
privtype_opt = 199;
break;
}
else
if (strcmp(optarg, "ZOOM")== 0) {
fprintf(stderr,
"Decrypting ZOOM Address\n");
addrtype_opt = 103;
privtype_opt = 231;
break;
}
else
if (strcmp(optarg, "MUE")== 0) {
fprintf(stderr,
"Decrypting MUE Address\n");
addrtype_opt = 15;
privtype_opt = 143;
break;
}
else
if (strcmp(optarg, "VTC")== 0) {
fprintf(stderr,
"Decrypting VTC Address\n");
addrtype_opt = 71;
privtype_opt = 199;
break;
}
else
if (strcmp(optarg, "ZRC")== 0) {
fprintf(stderr,
"Decrypting ZRC Address\n");
addrtype_opt = 80;
privtype_opt = 208;
break;
}
else
if (strcmp(optarg, "JBS")== 0) {
fprintf(stderr,
"Decrypting JBS Address\n");
addrtype_opt = 43;
privtype_opt = 171;
break;
}
else
if (strcmp(optarg, "JIN")== 0) {
fprintf(stderr,
"Decrypting JIN Address\n");
addrtype_opt = 43;
privtype_opt = 171;
break;
}
else
if (strcmp(optarg, "NEOS")== 0) {
fprintf(stderr,
"Decrypting NEOS Address\n");
addrtype_opt = 63;
privtype_opt = 239;
break;
}
else
if (strcmp(optarg, "XPM")== 0) {
fprintf(stderr,
"Decrypting XPM Address\n");
addrtype_opt = 23;
privtype_opt = 151;
break;
}
else
if (strcmp(optarg, "CLAM")== 0) {
fprintf(stderr,
"Decrypting CLAM Address\n");
addrtype_opt = 137;
privtype_opt = 133;
break;
}
else
if (strcmp(optarg, "MONA")== 0) {
fprintf(stderr,
"Decrypting MONA Address\n");
addrtype_opt = 50;
privtype_opt = 176;
break;
}
else
if (strcmp(optarg, "DGB")== 0) {
fprintf(stderr,
"Decrypting DGB Address\n");
addrtype_opt = 30;
privtype_opt = 128;
break;
}
else
if (strcmp(optarg, "CCN")== 0) {
fprintf(stderr,
"Decrypting CCN Address\n");
addrtype_opt = 28;
privtype_opt = 156;
break;
}
else
if (strcmp(optarg, "DGC")== 0) {
fprintf(stderr,
"Decrypting DGC Address\n");
addrtype_opt = 30;
privtype_opt = 158;
break;
}
else
if (strcmp(optarg, "GRS")== 0) {
fprintf(stderr,
"Decrypting GRS Address\n");
GRSFlag = 1;
addrtype_opt = 36;
privtype_opt = 128;
break;
}
else
if (strcmp(optarg, "RBY")== 0) {
fprintf(stderr,
"Decrypting RBY Address\n");
addrtype_opt = 61;
privtype_opt = 189;
break;
}
else
if (strcmp(optarg, "VIA")== 0) {
fprintf(stderr,
"Decrypting VIA Address\n");
addrtype_opt = 71;
privtype_opt = 199;
break;
}
else
if (strcmp(optarg, "MZC")== 0) {
fprintf(stderr,
"Decrypting MZC Address\n");
addrtype_opt = 50;
privtype_opt = 224;
break;
}
else
if (strcmp(optarg, "BLAST")== 0) {
fprintf(stderr,
"Decrypting BLAST Address\n");
addrtype_opt = 25;
privtype_opt = 239;
break;
}
else
if (strcmp(optarg, "BLK")== 0) {
fprintf(stderr,
"Decrypting BLK Address\n");
addrtype_opt = 25;
privtype_opt = 153;
break;
}
else
if (strcmp(optarg, "FTC")== 0) {
fprintf(stderr,
"Decrypting FTC Address\n");
addrtype_opt = 14;
privtype_opt = 142;
break;
}
else
if (strcmp(optarg, "PPC")== 0) {
fprintf(stderr,
"Decrypting PPC Address\n");
addrtype_opt = 55;
privtype_opt = 183;
break;
}
else
if (strcmp(optarg, "DASH")== 0) {
fprintf(stderr,
"Decrypting DASH Address\n");
addrtype_opt = 76;
privtype_opt = 204;
break;
}
else
if (strcmp(optarg, "MGD")== 0) {
fprintf(stderr,
"Decrypting MassGrid Address\n");
addrtype_opt = 50;
privtype_opt = 25;
break;
}
else
if (strcmp(optarg, "MOG")== 0) {
fprintf(stderr,
"Decrypting Mogwai Address\n");
addrtype_opt = 50;
privtype_opt = 204;
break;
}
else
if (strcmp(optarg, "BTC")== 0) {
fprintf(stderr,
"Decrypting BTC Address\n");
addrtype_opt = 0;
privtype_opt = 128;
break;
}
else
if (strcmp(optarg, "IC")== 0) {
fprintf(stderr,
"Decrypting IC Address\n");
addrtype_opt = 103;
privtype_opt = 138;
break;
}
else
if (strcmp(optarg, "TEST")== 0) {
fprintf(stderr,
"Decrypting BTC Testnet Address\n");
addrtype_opt = 111;
privtype_opt = 239;