-
Notifications
You must be signed in to change notification settings - Fork 5
/
tcls_tc_base58check_enc.sh
2107 lines (1990 loc) · 96.8 KB
/
tcls_tc_base58check_enc.sh
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
#!/bin/sh
#
# some testcases for the shell script "tcls_base58check_enc.sh"
#
# Copyright (c) 2015, 2017 Volker Nowarra
# initial release in Oct 2017
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
# SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
# RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
# USE OR PERFORMANCE OF THIS SOFTWARE.
#
typeset -i LOG=0
typeset -i no_cleanup=0
logfile=$0.log
chksum_verify() {
if [ "$1" == "$2" ] ; then
echo "ok"
else
echo $1 | tee -a $logfile
echo "*************** checksum mismatch, ref is: ********************" | tee -a $logfile
echo $2 | tee -a $logfile
echo " " | tee -a $logfile
fi
}
to_logfile() {
# echo $chksum_ref >> $logfile
cat tmp_b58chk_ref.tmp >> $logfile
cat tmp_b58chk_compare.tmp >> $logfile
echo " " >> $logfile
}
chksum_prep() {
chksum_ref=$( $chksum_cmd tmp_b58chk_ref.tmp | cut -d " " -f 2 )
result=$( $chksum_cmd tmp_b58chk_compare.tmp | cut -d " " -f 2 )
chksum_verify "$result" "$chksum_ref"
if [ $LOG -eq 1 ] ; then to_logfile ; fi
}
proc_help() {
echo " "
echo "usage: $0 -h|-k|-l [1-9]"
echo " "
echo "script does several testcases, mostly with checksums for verification"
echo " "
echo " -h help"
echo " -k keep all the temp files (don't do cleanup)"
echo " -l log output to file $0.log"
echo " "
}
cleanup() {
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
for i in *hex; do
if [ -f "$i" ]; then rm $i ; fi
done
for i in *pem; do
if [ -f "$i" ]; then rm $i ; fi
done
}
testcase1() {
printf "=== testcase 1" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 600FFE422B4E00731A59557A5CCA46CC183944191006324A447BDB2D98D4B408
010966776006953D5567439E5E39F86A0D273BEE
00010966776006953D5567439E5E39F86A0D273BEE
445C7A8007A93D8733188288BB320A8FE2DEBD2AE1B47F0F50BC10BAE845C094
D61967F63C7DD183914A4AE452C9F6AD5D462CE3D277798075B107615C1A8A30
D61967F6
00010966776006953D5567439E5E39F86A0D273BEED61967F6\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 16UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 16UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 0450863AD64A87AE8A2FE83C1AF1A8403CB53F53E486D8511DAD8A04887E5B23522CD470243453A299FA9E77237716103ABC11A1DF38855ED6F2EE187E9C582BA6 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase2() {
printf "=== testcase 2" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " AFE3F5532852C4927B9CABBA1B9B37FE082D6D001C3A3108C8B20CF3D2580E99
3A91CC0AF51BE125369A25FAC9CE5A950EF491AB
003A91CC0AF51BE125369A25FAC9CE5A950EF491AB
4953931680AAC7A5F6C722A59F68FDB1F2A9CA8EA9DD84033C168AEC2636C7A5
06B2C8FB5F629CEEFA168A82A44171EE1A68A2CECDD99D9C6BE4F00FA447E5ED
06B2C8FB
003A91CC0AF51BE125369A25FAC9CE5A950EF491AB06B2C8FB\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 16LgrHNVKbrySfS97wegnWWA5P8fb62FQN\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 16LgrHNVKbrySfS97wegnWWA5P8fb62FQN" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 047747ECECEB2C6692D6CEAAF4A11ED9DB900741730C201F95B8A4EEF20D7DEE2CDEC2802C6EDC880BEE41E9D114A8708260D01AB107B5177DECB4E109C5479223 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase3() {
printf "=== testcase 3" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 7B59C071F60A47EC0B635C4F9CB45ACBA54C28B5E9C5520E59EB6C681A3C38D1
714076A39428B9B904F4007DCD1519EF97B87847
00714076A39428B9B904F4007DCD1519EF97B87847
FD6D6000DF7B1BA80F79501FA20B51897888207406A37EB9E74C7C29E5EEB2DE
75C992F59A30CBB2F4D74AEA4655B30A94C71B2331823AC2ED5BAF4EF26F0B8A
75C992F5
00714076A39428B9B904F4007DCD1519EF97B8784775C992F5\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1BKpag8kykZNTxR2mw5qTEwUwmZX71c3JU\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1BKpag8kykZNTxR2mw5qTEwUwmZX71c3JU" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 04050DE465C62476FFAAB8AA4E47B9E4A01079E8A287E7B1316F0CAB29DC58C734228F2DAE7F1799FB0290ECF2EF08207C087A4CE98F1051443A6A5ABE60963A93 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase4() {
printf "=== testcase 4" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 982914CC0BBBE2D90B4BB4A1DB11E15467828BADC2F9925C1EC663EEC46529DD
B9E57DF33679BCAABF4F7318082B703E4859AFCE
00B9E57DF33679BCAABF4F7318082B703E4859AFCE
3CB9797676E9BBF4B9C23BD7174DDD806AD79630DDE76F306B831C0C63BDC247
DC276FCE800BCB7F947DDA5B7088193957DADB3BB306377A943B035CECBC55F5
DC276FCE
00B9E57DF33679BCAABF4F7318082B703E4859AFCEDC276FCE\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1HwvvsZjbAATRm5V1mw6i7g8sZ8gRqQQfX\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1HwvvsZjbAATRm5V1mw6i7g8sZ8gRqQQfX" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 04342433BE265FE2D6033E984D3E21E627EE6C87C0637F3DC63CECEB0C3F522C03BBC90203614826F6585996F0495E759A1DB6A630D035E1E9F69C8BBA3D4888FD | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase5() {
printf "=== testcase 5" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 145586BA66D896C2860884EF4EB83D940E16A70BF8C22639A271207481AFE01C
D3A0742714A3BE8A2005D5698464A3FF4BAA94F5
00D3A0742714A3BE8A2005D5698464A3FF4BAA94F5
998DD8CC50201B62F11E14124B9D6ED85365AA9FF48DBB00AE26593DC2B7B0EA
FD87AF189362F8E6E4A1DF63ECADC211113229868A083A25513A0DE5A2F01356
FD87AF18
00D3A0742714A3BE8A2005D5698464A3FF4BAA94F5FD87AF18\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1LHynznJ1kq4QcSUmCSgSo1HfUYP7UWcKZ\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1LHynznJ1kq4QcSUmCSgSo1HfUYP7UWcKZ" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 044EA2FDAAA36260258DACAFA153A0E0116051972A8F003693EA250FC3F21A0D5FD9E2E8CE17E6936A73607D2C2EA81D66A6EC0619235C2E60970CEA37BAE5A912 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase6() {
printf "=== testcase 6" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 089D3597BEC7312283688D83856699E8638934A6CA6530AFC8780AC3B9C27677
69325C54C6C8AB9D1E35DCEE0241E37A8820E5C7
0069325C54C6C8AB9D1E35DCEE0241E37A8820E5C7
4D2A23AA10BAB7BC9AB30929792E9FDD9C0CBD7C5B503B0D23A43C2CDFDF7E77
09F1DBFB4964A36CFC14C32DC926DAF459C10D4DE4AFA062FFA66AC744BB637B
09F1DBFB
0069325C54C6C8AB9D1E35DCEE0241E37A8820E5C709F1DBFB\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1AbEHGF2iFLR1MdpRzMmRfVzpMF32cWwGe\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1AbEHGF2iFLR1MdpRzMmRfVzpMF32cWwGe" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 049042E074B3C7057B4CC5B23097EE4DDF415988151313C9E5BF50C78F5577DDD10CD1604C9D5BA35700D07498B1BFB29B0F58021DC97D72DF87B8B5DFE02A982C | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase7() {
printf "=== testcase 7" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " A75EBCC9552BFE6926C01C2C87A145395915B5F0A8EC57CC9792E50E1F0DB3D7
EBC4E370B8B4908B8387A9442D7D9BA69C8B43B9
00EBC4E370B8B4908B8387A9442D7D9BA69C8B43B9
6F8DD9514133BE5747EE799CD16BCE9003158D258728FC9F8F3360FEC32924EF
2D14F43AF4823270D93ED63D6938575DC4DADB7F31886D1972FF0522296D718E
2D14F43A
00EBC4E370B8B4908B8387A9442D7D9BA69C8B43B92D14F43A\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1NVdf8Twtk8CivHQDwR3PZGsHhiemCy7ay\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1NVdf8Twtk8CivHQDwR3PZGsHhiemCy7ay" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 0476A58D136E46E9A8B75584D612CBF697429DD0BFA313E860A5BBEAFC0C112EC6DB4AD45141AD2EE04C02F8B40C3682D864FC19CDC1B7995835F19C73121CDF52 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase8() {
printf "=== testcase 8" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 2C2F6C691FA5EDE7D52B6B783D71578869A4757093807EB9BC9B0A36059690B5
B845CC57712326B953FF26A7F20763025DE3C16A
00B845CC57712326B953FF26A7F20763025DE3C16A
989B26625AB7D00518A35EABD2F4C7B6E135BB821E8A14673CE182A6FADF55C8
BC114C14A858F02E6957EAC5FFF2AD49A35CA48F08F4450EE4C4C11DA527EF81
BC114C14
00B845CC57712326B953FF26A7F20763025DE3C16ABC114C14\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1HoLwxm944HpHWgEi2B2RYK6QN2icAaq9m\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1HoLwxm944HpHWgEi2B2RYK6QN2icAaq9m" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 04330D713A2C9F7970C27C67FF81404786C1522850E521434556224E60CA3BD34B12A71FE46413E8FB9383015DC35C57548C707B1C46B60922D6CC5B3F3B4E75AD | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase9() {
printf "=== testcase 9" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 7B9F6DAB6A064A1324F9B428E99AD6FB9D4FE3C28F05CAEF295CDCD12A58D9DC
E026053C1AE60FEABC4BCFC80D89900573197A10
00E026053C1AE60FEABC4BCFC80D89900573197A10
A3825F27E1B0ACDDABFDCF202210B6017965419F9D8FFE655CDF3E00763A6C7E
C26D4C1C70E22F731B00EA73950DCDC25BA32C99DDC6F5ED23F10BE5359C8696
C26D4C1C
00E026053C1AE60FEABC4BCFC80D89900573197A10C26D4C1C\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1MSBugGhNwy3imagYRHQV1hnAqcfjPTUou\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1MSBugGhNwy3imagYRHQV1hnAqcfjPTUou" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 040F907C2097B6944F31E46A24AA477F5BF2BB4D1147B22B1ACFD43225FF313885853F3B6201D19AA2BF18EF407722B223C4CA604061215C50B00317B3BB2DC15E | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase10() {
printf "=== testcase 10" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " EEC092D36A74284DAB77B07B19FD6614254C2914D0D89E9B1DFB28CD120463D8
B58EAE755587554B2C52D0155DFA670DA90E0A30
00B58EAE755587554B2C52D0155DFA670DA90E0A30
57394245BD050FA8AC783B52C7DB70F4E80B4E22B73AB72640AC52054195A73B
90485A28FC3CA78EE8327BDC2A321B651C4BA4BC0C4292AA7C61910762D83D83
90485A28
00B58EAE755587554B2C52D0155DFA670DA90E0A3090485A28\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1HYzEQSgoJT58XqjjpSVEwpahqhVdazRFd\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1HYzEQSgoJT58XqjjpSVEwpahqhVdazRFd" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 048C59CF9B3903A141A87CDD5B3B80E1E22CA1CF8D400BBEFF4F6B45D3453BCBDD1300521C35B261579A21FA459841929F4A5B394F071CCEDDF0F83BA9D1F46C1F | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase11() {
printf "=== testcase 11" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 90CC14675F9B23234C60916EFD4FDCDEA205F58206703D0DAC36B72DAB5F575B
3B3AC2F3ED6DCD58A249316B6DCE9BD655F43434
003B3AC2F3ED6DCD58A249316B6DCE9BD655F43434
31C5F62A2F88F2A605E5EF3E6C250834E3541875C5E9E8CB8BD2BD396F4DC75E
C307ED7D293A092AA417B72758BC9F29078593335AA23B91936A1438260D8210
C307ED7D
003B3AC2F3ED6DCD58A249316B6DCE9BD655F43434C307ED7D\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 16QBG9BJ4XGKCt5zgKUDo6Hwimg1ZukQbN\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 16QBG9BJ4XGKCt5zgKUDo6Hwimg1ZukQbN" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 04CF590CAC5B77FE3864F9881C93FA91EDFEBDCDB1478FA8EEEB7C6C7C36954B252CEF8AC66E0E9076CBB05CE41EA5FFBC09D707822A23654FEB8CE36B665A2BB7 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase12() {
printf "=== testcase 12" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 4DA131D1B966FEE570AA90AF7FA7F530C800C8C20D09815041BDDAB03FD1FA65
F9E7C2E6C0343120AA7FEB14D62650C87FFC06DB
00F9E7C2E6C0343120AA7FEB14D62650C87FFC06DB
E2B44B8BBC10501AF2AFAE8DD33C4ADF962451F14BF80AD0F99AA075E0030B2C
713327919CD1854F778682A232827613B1AD02A8A7A14CFECBA68D039AA42378
71332791
00F9E7C2E6C0343120AA7FEB14D62650C87FFC06DB71332791\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1PnNtpt5qLMoSEHHA5nq9T4N2hgRpqR4GY\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1PnNtpt5qLMoSEHHA5nq9T4N2hgRpqR4GY" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 04E880CEF245C32BB39531C9A057AC6E9BB6C664BBD1DFEA7F24EE8268530105A37BDCBA3DF4DA2408F060E990F9025720F8BD8F8D5765A5677B7748D07AD7E535 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase13() {
printf "=== testcase 13" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " A2D4DCDE5E088CE9BF2FCA8978A3383D087A0E5A12D18AFD04EF199A0CA62F00
5F7CACB3D4A78BC61E34A9823F6B11EA31CC133F
005F7CACB3D4A78BC61E34A9823F6B11EA31CC133F
A61DB33194648A099E5C6B8E278184AAB16E708A9E60DF1E6CC8287D4D3CDDEC
6E94A1A95CBB18D849591E2A3397E6A02900F952E601CE6E7330F945E9493DEF
6E94A1A9
005F7CACB3D4A78BC61E34A9823F6B11EA31CC133F6E94A1A9\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 19htYmZW8dLtWtoX7ZsxLWSS7Ugh47aBiG\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 19htYmZW8dLtWtoX7ZsxLWSS7Ugh47aBiG" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 04E1D2B97DD8AE995899D097853E7182E8D6EC4FDD72BE25E2CF7E22E30A825F43C6DE289BBC485DCE2AEE55E72A7BBC0A905214937F1AC53A6CEDBBE53E9FA40D | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase14() {
printf "=== testcase 14" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 7465E4395456EFF1C9A7094A3252E2B5AAD090F79C3ED773324224CD4D8D3C9A
2B2DD9C6DD0EAE871553DB582B8E6537F25F24C3
002B2DD9C6DD0EAE871553DB582B8E6537F25F24C3
1F98032002F01FEEAA4B02512F8B26F5CB6D83C89A3B35B56B663CFC3294E0E8
2BDEEEE3CD7968586200F2D5D4D30F6F53238BFF37D816CEEEE3349A3950A9B5
2BDEEEE3
002B2DD9C6DD0EAE871553DB582B8E6537F25F24C32BDEEEE3\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 14wJz1cUbJhPLxQRopfQG1KBuerudq1PHk\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 14wJz1cUbJhPLxQRopfQG1KBuerudq1PHk" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 042DCA25FF994D8EA0F8C11E0C81F961D580A5CED7A7860989840EE645F2DC5A2BB401843094BE0E4CD785527A629C89E6D096448A27D8AD1513D55342B2FFF5A1 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase15() {
printf "=== testcase 15" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " E81EB1121E53667580B6A791470C0EC1D92234CA77BC5B11FC9F84C9C47891B7
29FA1AC9EDC3E161E5EF726E68A2D7B545A2CB22
0029FA1AC9EDC3E161E5EF726E68A2D7B545A2CB22
182507C37203AC70091F4BEDFF1A8A36B622CC43C22E0560B45100BBB3CFE682
409D6C5E4A3709359D562B22B8F98CF87FC44CB011EB5CC9B6D2A3DEE7BB628A
409D6C5E
0029FA1AC9EDC3E161E5EF726E68A2D7B545A2CB22409D6C5E\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 14pxKSYJdKpSft4HjDFZFmfzYfSjFvy8aR\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 14pxKSYJdKpSft4HjDFZFmfzYfSjFvy8aR" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 0470DB9F80EEB430FCB97E4D553E1202F48A563171C148C242D683BC4F371F9C034A886DEE0FB357E61FF550020BA2585CB5DEE4BA03ABC52271CFDF324106E837 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase16() {
printf "=== testcase 16" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 3042710744B09073915D8E8FE31886345D0A3DA8D1BD8DF22F4E0270A195EF9B
3AF7CFE671C5562CCF81AAD70670E390D8BA77AD
003AF7CFE671C5562CCF81AAD70670E390D8BA77AD
B9DFEF94A01F42128F30FC411CB7A8D2EC2920DE2E3F576A5E7465284EEB85B8
89E43BAF35CBF8BC4A1856C7576C02354A54DC7B13AC9923DD9DE1F83C7BC027
89E43BAF
003AF7CFE671C5562CCF81AAD70670E390D8BA77AD89E43BAF\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 16No4QymhRhPuDu5Gi14jaNWN7aPZtEoP4\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 16No4QymhRhPuDu5Gi14jaNWN7aPZtEoP4" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 0435934BE63AE4C8F0FFA3323E0405E11A737660CD4DB307BEEEDD9D199494DA157CAE732787DD1C0844BFE94030A27E0A3DE632E2D06A7FB9A8BF217926D4FA73 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase17() {
printf "=== testcase 17" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 5019D15583E6095C7A1346A569A59AF8986044D4C65378D6933A826BCC8B702D
5AB3ACE64A6B1165689191B8EEA3A77109CA654A
005AB3ACE64A6B1165689191B8EEA3A77109CA654A
4AADA9AAA013B2137A23594E508492FFED0E5F5E7E8FA76965E8679C59FD9E19
7975132DBD5A5B80A4CE8C2648F4FCA65990D6DE1535EC4B5F09D2A092AE5867
7975132D
005AB3ACE64A6B1165689191B8EEA3A77109CA654A7975132D\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 19Gb4L7rNtM8mc95A8fakX7aCbdVae7pCt\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 19Gb4L7rNtM8mc95A8fakX7aCbdVae7pCt" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 043E1BA1EFEEEA52025707FD9624B078578E3572469F9B80DA8FC17D69C0DACDBDD7CCF630C848A2B1678D2B2CE595D111BFD0F194063A77FE83142284CFBF6FA9 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase18() {
printf "=== testcase 18" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 062D2C481D5F039E96B98E16FB6C9A6E4DF60FAC8CA85C491DA7A9F70B912AB7
195F24BE5D681C10F07A32D9CB3E46301400ABBF
00195F24BE5D681C10F07A32D9CB3E46301400ABBF
A7A7A2D5933EA99B6F473DC8559C2414BA608406B6FBC3314DDEFE04792EC0AF
8693255A7B1A05600D7CCECAE49D9269338BE17EA9E664F24675C3D04045A425
8693255A
00195F24BE5D681C10F07A32D9CB3E46301400ABBF8693255A\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 13K9sV5WgQsuZsAagXEph2z7batg5xKv4y\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 13K9sV5WgQsuZsAagXEph2z7batg5xKv4y" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 04AC4C838C438B81DEA64EE44454F3C45D3B9AF86568C73EB4DA39DCB5C8675DA88B815391D1E28B6B0C5690F716CD26AF2C0D60473D9A49D7FB62BEB69BBA0AA1 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase19() {
printf "=== testcase 19" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 02D81B7EE8B4A1E943E9EE9D9FC257C31ABF92143320A593A2F6DD487DF10F96
308604F32F304A66D793F6E8B2D04D5801C88621
00308604F32F304A66D793F6E8B2D04D5801C88621
F674A85455918CDE2539418C77E0B2292345A8533F3774AE7C76E1F8815792F1
00F653C5B3956CEC2079D2B32C5E47DD05E36922A6B217F8DAB4C11DFBA5D183
00F653C5
00308604F32F304A66D793F6E8B2D04D5801C8862100F653C5\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 15RZz31EToZB93v1tvKrbGMk4VfpWs4gkL\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 15RZz31EToZB93v1tvKrbGMk4VfpWs4gkL" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 04FAB04D8AAF9754D67A51EDE7ACDD49159E63E2BAC2ACE1425697132F362C525675ADD32B29A9BD75139534698F85BC8F55F4F1514F50ACF7AE1491884D48C1F5 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase20() {
printf "=== testcase 20" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 6FAE3F4868F0E9CE00725B59C1475EF0825CB30DE9D24FB9097B2F6A82A0D81F
86181EC307CF9BC2B9B46CB31F84A73438A51886
0086181EC307CF9BC2B9B46CB31F84A73438A51886
6088792B9B219918C7258C821512FE14E11A5EEB0B8CF1BADC820FC557EF00B9
8FA455B0591E85A684D0B638976AEA4EC89AF7C1EFF8E988ECDF0740143ADE1F
8FA455B0
0086181EC307CF9BC2B9B46CB31F84A73438A518868FA455B0\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1DE2Sc1YuHzQjYqdVmUnxWRj61uYctYfpB\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1DE2Sc1YuHzQjYqdVmUnxWRj61uYctYfpB" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 0484158534FBB748B80E31743D7C5025558EDAA6C0D3300809A42B102826004992C0B6774016C0FC17194CA359C8070D27373E8028991246DC7B8025838AD41AC2 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase21() {
printf "=== testcase 21" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " F286B6767747317B6DE9438A920CA401C143B051CFE3453FB89F4D981BFBB363
0A08201462985DF5255E4A6C9D493C932FAC98EF
000A08201462985DF5255E4A6C9D493C932FAC98EF
DC02FA64D7AE40D92FCBCC8CF9E933175133F00FE58A6362B6B181B67D1275B7
791E2F220FDCF8B88C4C967EB8A6480CD64CC5A6A76D3AB246A7DEC985CEB8F5
791E2F22
000A08201462985DF5255E4A6C9D493C932FAC98EF791E2F22\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1v3VUYGogXD7S1E8kipahj7QXgC568dz1\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1v3VUYGogXD7S1E8kipahj7QXgC568dz1" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 0483DC80EF0106F8CD728185A8D9A1C428269029FE4AC3FEFAC2B60D70DBA2064B9430129D4B065E04D36ED0B5A22B2174F031B61D3A6ABDF81160C807B79EB7EC | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase22() {
printf "=== testcase 22" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 8EBA4812564F0583CB9FC4AC16FF8BABC0880914CAA9706400D858344B82EC2B
1E4BC2766F178E2A489E1C6A4DF4B01385B97F25
001E4BC2766F178E2A489E1C6A4DF4B01385B97F25
F2D1DDC22C6AA6B491029EA0B851185F748207DBF790E44EE427926F7089130D
9C318AEB3BDB9571E3B77742F7A3ECF1F17FE1180EC601EDC084300138588ABC
9C318AEB
001E4BC2766F178E2A489E1C6A4DF4B01385B97F259C318AEB\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 13mC2dHQtUkChaVtR9sf6aZuWsDZJxVomC\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 13mC2dHQtUkChaVtR9sf6aZuWsDZJxVomC" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 0490792FDBA6DD56968A45BCA03F4C92ECFB962DF59FC10752C5D4C92FEDFF1FD4DABA5AADAE4B78535B68B48E5734D118D366A2263A77739DE70B2DF736D515F9 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase23() {
printf "=== testcase 23" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " A4FDB620C890AD382C8B8B3DCBF4010F1C13D63320CD0D4BF91C74DF6BC7A6B1
72DE1F2270445982A2F8E4A40A61C3988E98BD72
0072DE1F2270445982A2F8E4A40A61C3988E98BD72
6894297A79D2064CA06B5FD7782ECC3CBCD4F9D0B7EF6A64B754DBEB6E6DEDC6
079D8F372E1B93A106ADE9349CBD31B9B223DC86A7F6A7253814E3BDDE8CDEA0
079D8F37
0072DE1F2270445982A2F8E4A40A61C3988E98BD72079D8F37\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1BUN89fNJ5re89HsoE45EsqTYP7NpnNiMt\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1BUN89fNJ5re89HsoE45EsqTYP7NpnNiMt" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 04355E713DFA0F3B675B2D6AD75C6C930248283421ADB0DE9E750FAB6A06D60DB5548C343CB08DBE6348C0831120A60C2838DD60381317851206E96E386260F366 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase24() {
printf "=== testcase 24" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 26C2DB91AA454131624AB9A088C94FE83B1F99E69E1BC4BD50C1D7F50C244A27
92ED8B99FA31F1D9B95811BC46591FF4A5E54653
0092ED8B99FA31F1D9B95811BC46591FF4A5E54653
F31B52EC8D2092B59B86CADC1134C16D07BDD7EA78775827D5B7D63FAF76B632
20CF0D3E11553D9D4CC1BF430E52D8966CD4F0AAAD678600F9DDF932E402412E
20CF0D3E
0092ED8B99FA31F1D9B95811BC46591FF4A5E5465320CF0D3E\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1EPtDwq1JzPVC5QmkJgzt52t84ox2iaNPw\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1EPtDwq1JzPVC5QmkJgzt52t84ox2iaNPw" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 041D4037C7E8A5C7EA0C6DB565D7B84454EE9DC23907244438FDA018CCFB3006BC0B82BA705A8F7D034FA715948934A3FAB7548FCA63876462B015644617DEBB55 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase25() {
printf "=== testcase 25" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 3D7D6B13CF75D0AC11402532E3BE540292EB27643613DA6A3CF30198D07B0DF5
13E945F6293C717D0F8C2ACE6F0A787FFA2BD378
0013E945F6293C717D0F8C2ACE6F0A787FFA2BD378
9CABE317ADE611A9D42F0A5D185D0270DABDD0B9E29C9D4C55422C634BCB7566
DE44886713A91C03579016025BE476C6E4195346F6B2FA67D2804E8EFE48F90D
DE448867
0013E945F6293C717D0F8C2ACE6F0A787FFA2BD378DE448867\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 12pHHkuKTvHhDWfVTjAXYJ5eevehwsig62\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 12pHHkuKTvHhDWfVTjAXYJ5eevehwsig62" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 048694C687123D27BA42448FF42D890C8B23746373E30D23F7A48DFD004F2059A0A16B86014C5D6C5905232B96490C483BCBF011A77B792E9CC040129D759E9FB4 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase26() {
printf "=== testcase 26" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 9C79FAE5C1EF2753B8C68B78F77088836E0848C215A5E03072C60E76E33C8D17
066C0B8995C7464E89F6760900EA6978DF181573
00066C0B8995C7464E89F6760900EA6978DF181573
FE391A3E4394182807B351EE3A14D800047597EF71A16724255F8BB799F2CD1C
88421561354AE7A0EE5A74065F416A70FE5DFA4C7ACED9B144E497CF79235787
88421561
00066C0B8995C7464E89F6760900EA6978DF18157388421561\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1axVFjCkMWDFCHjQHf99AsszXTuzxLxxg\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1axVFjCkMWDFCHjQHf99AsszXTuzxLxxg" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 0452112D31D211C7FEB4504A12D5F44088A3D59F088DAFA6D61F64676495FE3A7B33E1BDBCA22B080058803E27D3CB2BBFA95EB0E0987E30BF6B3F0977D5CCE071 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase27() {
printf "=== testcase 27" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " B3C907E6F86847F30A4196183246491C8FCA235C0102B8C48D6F2696ED873E06
806CD4DA88637EBC986E50F7055BC2D7D3B9D795
00806CD4DA88637EBC986E50F7055BC2D7D3B9D795
7849EB7588AF0E9EF49B76ED8733A898FEB6B8686F87F039B6764C93E0E248B6
DE06342D4B956E4870C98DC63ED4C3BC2799ABC188D1C1F05026A9255140522E
DE06342D
00806CD4DA88637EBC986E50F7055BC2D7D3B9D795DE06342D\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1Ci3sJCziZVp5upNMWM1YPK7w2g3hyTB6L\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1Ci3sJCziZVp5upNMWM1YPK7w2g3hyTB6L" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 044FBB845A1880A73BDD69D88ED8C16D00251CE0312A4572F2F7FFAB0CF6C0129D93EAB151DCDCCF63D378F1396756DD2D806DD286A588109C0A417E0CBDED3738 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase28() {
printf "=== testcase 28" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 4AF4ACF1AE0664F2CBC1497EAE486CD1A74A55C499776AAFA4AED03102DE55BE
A2AEE0CAA44720194D1AC0CBE8122AE2E60F2CA7
00A2AEE0CAA44720194D1AC0CBE8122AE2E60F2CA7
0C70FE1031A7CDC39F50B7C7AA9F1BA8210589D939337C957F404855E3B6D1A4
5167D5CD636890FB3879C8DCCFB1DD1FD1EB43A5250D92CD78FF32AD1C879C8E
5167D5CD
00A2AEE0CAA44720194D1AC0CBE8122AE2E60F2CA75167D5CD\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1FqBxpXQBzwLt653CP1iawqw8zSFmbBsW4\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1FqBxpXQBzwLt653CP1iawqw8zSFmbBsW4" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 049587FA654942099FFFAE79709B773BC8A426C93309F577B9EB96C1F6084000819C8D91BE3D2CD9AFCD482FC6C214543E28F09AE48A628B32886E3E16EF442166 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase29() {
printf "=== testcase 29" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 8228C1F7CEC02F8473E33BEF060157A9FB510F7A23FB98F5F94F25F76E4334C3
594525A547114F148B478A81799C929ED3B093F5
00594525A547114F148B478A81799C929ED3B093F5
76337B96505E0D21D9C3BA9D384D0C4DA85EE87FAD6B935012C831C6925EFF04
CAE0B49405C768BDD089E50778CAEABF153C394204C67428407EA7A46D998EC6
CAE0B494
00594525A547114F148B478A81799C929ED3B093F5CAE0B494\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1991yVg8QC5YVZP8b9eXUEVyQK2w8Bnrjd\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1991yVg8QC5YVZP8b9eXUEVyQK2w8Bnrjd" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 04AD3A094017FE10EE39ADE8208F07CFAE77C71B5BC48A22E282B7BA947AABE7D0A2B9D65209144D272DCB30443DFA3C91392BD5BCDFB1B8E41CE4AE2785389CCD | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase30() {
printf "=== testcase 30" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " E0AB53EEB688FE6C3AEF40A0FD050ECDC1162D36CABD4D314CECCEAD136F3624
577FF59B067A4CB8F8568A71C2854BB6A2F5401D
00577FF59B067A4CB8F8568A71C2854BB6A2F5401D
8573528698D12578162282A47DEE31D16681860CFD30E90571B00312B2336D3B
3DE90BBB40C6815D888D7724CDD4ECE047CC3E62BADE88D0098E14DC1709B6DE
3DE90BBB
00577FF59B067A4CB8F8568A71C2854BB6A2F5401D3DE90BBB\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 18yf5TuteMFxMQ8sL3gDL3heNw8E1BNFPY\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 18yf5TuteMFxMQ8sL3gDL3heNw8E1BNFPY" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 048AC681F21D53A04199A1EF4478BEC56900023B425AC8ADD19A80598CF8577E294363900720929155D2177B8E132F7FFE1634968608851D2F1E4C0F6FA38FE3EF | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase31() {
printf "=== testcase 31" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " ECFF3B072AB64141FB7C9B67E6EF27086B739F49188E4455F9996D9F0E7D488F
A5ED461BA0DC730C86BED50CD2E349B75060D10D
00A5ED461BA0DC730C86BED50CD2E349B75060D10D
3DEF794AAD0803E3476D7E4D920F72565D177D1D36FBBAF49FD71A122E2B29E5
4D35D9A02AE6EA362E67AF37494F0D7B6F9CAAA76CFBCF55E753F266798C3D19
4D35D9A0
00A5ED461BA0DC730C86BED50CD2E349B75060D10D4D35D9A0\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1G8LjjGaQi1af22v6w1LoshS8RU2i7BfcB\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1G8LjjGaQi1af22v6w1LoshS8RU2i7BfcB" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 049CEDB2C5E871593EC4D729216A74E9CFB28A8E951D2E799AB69F66CDECBF1BA0C675FE79768D72486CE8838E18E9A7458594FB17DA6967788BE2EC0A5F7B8F4A | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase32() {
printf "=== testcase 32" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " D9FA2BBB106955860086D929446A12ACA35DD3CA0B48AEB560FDD88B70138677
6D3A1066DB55B3C60D9377EC06C8ADB289B17BED
006D3A1066DB55B3C60D9377EC06C8ADB289B17BED
FCE0C12F5CDCD9BF94CBFF545F091CB5FDD6665E2C3048C5B4920D002636DC6C
44221FAD278ADF33371D63C3B2C2BB6684CB32486180A927EE238D54D27A9324
44221FAD
006D3A1066DB55B3C60D9377EC06C8ADB289B17BED44221FAD\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1AxYDGmJREWVqiQ9ByFdfMMrx7Nmt5vyDn\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1AxYDGmJREWVqiQ9ByFdfMMrx7Nmt5vyDn" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 046F6612C93E2F21B32ED6709E97126FD501D1E8A3FC0379B4E3FFA2209CDABADEB080CE712256600FBFC06A90187CE0DE5A3A754882CD3CB573D6A84BB7EEF915 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase33() {
printf "=== testcase 33" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 22B150930FA1CB4EB42685D6E8576162C1AC486F2ECA7564270E254967A8DAB4
5BC8F038248421B30E6E6623CA6B02D74240E844
005BC8F038248421B30E6E6623CA6B02D74240E844
3C8FE5440531101F570D3EF49B77F7BBE7FB5AB40D2586B19685A3F3164AA0E5
45D91A32886033B5BD9AEA7B047F98C8A5B55483A1AB30699ABBE33C1D1FBA2B
45D91A32
005BC8F038248421B30E6E6623CA6B02D74240E84445D91A32\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 19NKCu73shKmkUvEn2FQiQbQm8vqX7gKXf\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 19NKCu73shKmkUvEn2FQiQbQm8vqX7gKXf" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 041098A48B844708E3A48A3113DCE134250C4673948B6832004D7B08BAD646F8958E7B93DC5533B4885D8DAB736535FE5CFD04D08BE277807237A9FBAF262FD59A | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase34() {
printf "=== testcase 34" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " E543AB9DB6ACF059C225C8F4B0F1F31C4228C784D00D71C86A05D6A91739F7DC
626C03CA222E4C80C6AB17FE998AE7B1ECDC6146
00626C03CA222E4C80C6AB17FE998AE7B1ECDC6146
950FF7E6789A0A3E25E2F30EBE8225A6B706AE9A85D097D3614E81A009262444
35AF1E2526861AD834D3C7D186C00DAFD85D126A7B604CEDAB7DD04E51E8C3E4
35AF1E25
00626C03CA222E4C80C6AB17FE998AE7B1ECDC614635AF1E25\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 19yQcoNR5Qd5K9hqsttpNZGVWdDZ9qpjNc\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 19yQcoNR5Qd5K9hqsttpNZGVWdDZ9qpjNc" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 0470324AC2E603D591AEE9EBB8EDF3326A3CB6395431E32B8C5E6FE82D9F8956A2E22A9E91BA451EB8DFA72DCBA871A609FE8888E84277351D063594233184DB4D | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase35() {
printf "=== testcase 35" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 568E5EC5BCE45A5F43C1C96CA890B09FEBBA7173942F3BC7D9C5E3074DF84063
169EBCCE898C48B5C00C18936176E6EC3272428C
00169EBCCE898C48B5C00C18936176E6EC3272428C
3836EBF51D90212AC9AC5770DFD97214EDBDCFD79A39C5A97C72AA7ACF7390B8
5FEEFDA538E3B7D705C7C3D18C92408A5ED6AF679C43ACB559E8EBAC3AB9C03C
5FEEFDA5
00169EBCCE898C48B5C00C18936176E6EC3272428C5FEEFDA5\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 134c2VpoHLvP4keud1o19cDxa2o3j8HR7z\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 134c2VpoHLvP4keud1o19cDxa2o3j8HR7z" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 0413F3EE748D3561C4380F4C65B73699B6E947298F50652E58232C7D5C1172F54513561F1B9436DA1C49BEE6F383C881DD9DA514349E5AA170B7CA1CAE1C98D12E | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase36() {
printf "=== testcase 36" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " D58A3E20A2F4C3FB8E5B43991E7E991C00DF976FFB2931FCC177F695853751AD
46D3CBA0FD26896F8F48F1BA3B9D60891B56CBE5
0046D3CBA0FD26896F8F48F1BA3B9D60891B56CBE5
71DD2E0FA118131991D6B2FAA81F99EBA207C6FBB127E37E02EFEB503F75B384
82C4CE6DC3FC9A78135447E7B4111EBDFA7A263A956582F629288F16D4407937
82C4CE6D
0046D3CBA0FD26896F8F48F1BA3B9D60891B56CBE582C4CE6D\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 17TW2EUKsGaFtCmH7qQ7tm9wkhwxNbJWS8\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 17TW2EUKsGaFtCmH7qQ7tm9wkhwxNbJWS8" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 04DE5AF789AFD391DB652F591A2E0F31B4944DE22E5CB0DD40964058F5F68CD318B6545F1793E9F68A56D7D9C11EACEE838D18E1980D7F8678C2D28A7B3A8FA5E3 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase37() {
printf "=== testcase 37" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 5DEF9C59E491C66E27E742C43284EC47941569CC71DC5E2B79A9FE915E7C5822
A6CF233CAE76EFB882A61EA64C2603FD3DA09569
00A6CF233CAE76EFB882A61EA64C2603FD3DA09569
165CFDA4A559BC0A11EB27780822D297A8F0C78574FCDC45318F3367209C2B84
A2E228857266F65BAC98D74DF58B40CDD07915022595B40D67B29D63A999D9D9
A2E22885
00A6CF233CAE76EFB882A61EA64C2603FD3DA09569A2E22885\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1GD1K29KMPJVVxgrQdk5LoojP3eS2ewuh6\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1GD1K29KMPJVVxgrQdk5LoojP3eS2ewuh6" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 04558DBB675CA870EC03DEDD543D3EB250F077A61E086DC49C5AAB62E07DA2E7D63CEB2EC21A65D44E857AC7B5D6C57CB59E059E59616C96A31DB03B35CD075E58 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase38() {
printf "=== testcase 38" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " A75D8D0C54A3B06B7B2B9FA1CA563BEE07A60630C570EAC86AEDC337DAF01358
18DAD6B70ED6A04EF95C495680A25C487C4730AE
0018DAD6B70ED6A04EF95C495680A25C487C4730AE
A389A5648CAEE7428F36A5DEEDD1542CF39588339475059C01F7642BC3C1E4F8
60A72CCA01B67000B8D569E8D95660271D052ACCED8A54E671EE56EACF9C7C3D
60A72CCA
0018DAD6B70ED6A04EF95C495680A25C487C4730AE60A72CCA\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 13GRNnZSopMpRiPM5zF2zcLF3No1T3coLm\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 13GRNnZSopMpRiPM5zF2zcLF3No1T3coLm" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 04A87C25DC8ED8747FFD97C1FF8B910C3E56C94A5FE5A7F0B9ABC0159554AB2A4AF21172E1ACDE3B587B811EAFB645D13528AC6AADC7178017B801D32F5507BD7A | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase39() {
printf "=== testcase 39" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 71DA5191A94A911B52937509BFB316FE67E5A070C7385E43438B18F5E90C84C2
1D781AC1CE8810959A266DC9B8B7D4C827BC13B3
001D781AC1CE8810959A266DC9B8B7D4C827BC13B3
0FF9BD6F0F2C90838DCB11D4CF104D1636E184458877EB765E450BE3DA251C51
3D64818A5485B13A5B8087AA6067AD9E571B6784C5B89B4CABDB13D62ACDD835
3D64818A
001D781AC1CE8810959A266DC9B8B7D4C827BC13B33D64818A\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 13gpUa9EUGQ1yCqMaoMCkUT2n2RQHXjSkR\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 13gpUa9EUGQ1yCqMaoMCkUT2n2RQHXjSkR" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 04CC675CDC49FF3F45F469FBA3058C92E3E55773E80DACA83855406B030B518DEF2FCD1E3E163B985B586B3C35C96832A3FB684A0FBE8E15268B8492A7D21AD3B0 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase40() {
printf "=== testcase 40" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " B4580467ACC2D7ED9D6F7B3F827A581C6593BE252D3E27C5F298B9ACA22CA738
9308239688F8207B2DE68A60E5E0E7AB0BDC4E2E
009308239688F8207B2DE68A60E5E0E7AB0BDC4E2E
C0F460D5E35ACEDA04EDA8B3E723473D1FDAA385ADCE49FC88461BA096670E6E
2310CD87182D4F4B6EF39844EAB362F663B05CFB53CD8F65CD7EE4F76425E819
2310CD87
009308239688F8207B2DE68A60E5E0E7AB0BDC4E2E2310CD87\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1EQS5i433M1qcLXjLfsc6QepF4m3F6UavS\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1EQS5i433M1qcLXjLfsc6QepF4m3F6UavS" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 048D7C8F4CDC3C7D4706BBBAEC4A725B4961DAB28813B8FCFFA6E5A1A4B167388E7AF0ABD3F02FF0BDC359EF7A5CB0B454BCEAE6A86D3084D6B0A8B7E17DCE452B | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase41() {
printf "=== testcase 41" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 5FEF59F108D07B97F13DE2EDBE5863229B85C9C7C8BE36693DBB8C56FAC91EB1
216638B2991F207396B3260850AFA09DDF735DA2
00216638B2991F207396B3260850AFA09DDF735DA2
35634DBCBF4125036E7A5D092E8FF2833E8185DF21C813022CE52F39BF1ED496
D9D26B74068BF3EE05F091B68F172B4DA7C0A4E1BDF01F600CC0C8CF98468AB1
D9D26B74
00216638B2991F207396B3260850AFA09DDF735DA2D9D26B74\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 143bkoaLqFZiYco2qq7DuQ6KdgzpktJoqd\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 143bkoaLqFZiYco2qq7DuQ6KdgzpktJoqd" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 046A020DA2F63D2C2FC3CCA22D671369B40AC2F4F96BE8A1D69FF2A3E67A21EA17E4EEB5887C42A6C3AABE3F073FC21AF8E6280DB22182916CF5A5A7C37423F673 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase42() {
printf "=== testcase 42" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 6BB29FA36DFDA4194D3DB2B3221BCAE6B3CD18E1B75A9B872025A78F335065F2
5F0A37BFA06A585FB757BA8AC97D2E4F75F81642
005F0A37BFA06A585FB757BA8AC97D2E4F75F81642
4097AC1ACA82AA00205A71CD47804AF7B0DCAAAA6A9291EF6F810DB0357D05B7
B8285738C25D5296D519C6DF7602A327BD9DDBA4ADA6F95B2C4FD4D1E82A2ECD
B8285738
005F0A37BFA06A585FB757BA8AC97D2E4F75F81642B8285738\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 19fXSAgFDFfBRKXkUfpq5KDLRAbAJHKiDD\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 19fXSAgFDFfBRKXkUfpq5KDLRAbAJHKiDD" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 04B543DDE6972AABD39E6B36738912848782122B7C4B5435DFE91C10EF49BF5B8944E5F1E2CB9AE5DDF09CAA55AC0A3C51BF99A4DF314D89DB98891143E36D2D5F | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase43() {
printf "=== testcase 43" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 989962330831865B4B7362703E0EB956E89E79517F850D906AB8CF8D8803F43B
E353C6B07DDA0F8B090528224975AEBC6731A388
00E353C6B07DDA0F8B090528224975AEBC6731A388
4621DAD0336FC3FA3114D027D99A0E7D16E77B2509D8BEEC314C7F5A502577D8
137063C7DB272C3F1357A610C2B87D4E123D359426E658E9F2752B0AFAB73D8A
137063C7
00E353C6B07DDA0F8B090528224975AEBC6731A388137063C7\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1MizkQxgEnxobrqvCapigaGTDgcHcojwFt\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1MizkQxgEnxobrqvCapigaGTDgcHcojwFt" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 041B2D69E3E13D3A59441760CAE49F8C0D50F9128C7828022E7CDC8A45FAF83F9DC968A60F4BF2D7AC959EC918C5C02DAF079C0D5A247B674E974130055982B6A9 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase44() {
printf "=== testcase 44" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " C48ADAF449D558DCD81D8FE3E731FD876F52A385A08B1DD119E87A3064421F8A
C915743E0414524144290104B97C1A7D98622460
00C915743E0414524144290104B97C1A7D98622460
49865FD0140ACA247CE148F94C480EE8CC6060D9F8D68621C1627FAF9E8650D0
4B8CCD6634D93E1DF0B45AA13192902AAA60066C2B035A7646922127E79F07C7
4B8CCD66
00C915743E0414524144290104B97C1A7D986224604B8CCD66\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1KLEXDMGKdGtofsgrxkKzKWZAhnbzLmFWm\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1KLEXDMGKdGtofsgrxkKzKWZAhnbzLmFWm" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 042141DF75D03D53B675C68E2139E7FE6FEFD84CD1498E4E64EBCE54CB4E6359AD402D42ADA511F59B54FFAD59CE3AC10655E72DD1935F59AD7964470207EC53B5 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase45() {
printf "=== testcase 45" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " D3F065F8AF342B2BC6BD0D024CCBE8FC3A935CF32A2280606B429F3934FD8880
9DC1F34CE031CE342B4D9975300E584B068A78BE
009DC1F34CE031CE342B4D9975300E584B068A78BE
771E110AC6095C12BEA9EAAE10FB697B49A01948AAE0F2921F723CA8604FD9C6
88B7DC79F01699EF943333B8FAE1AC04778204286242D7BD6779B650F473AFB8
88B7DC79
009DC1F34CE031CE342B4D9975300E584B068A78BE88B7DC79\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1FP9S2ZJrkH8aC8cvDCbAfdP3waRKhjwmS\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1FP9S2ZJrkH8aC8cvDCbAfdP3waRKhjwmS" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 046E6F6DB51183A85E4BB561144AC0BF6ACB793319C4F2F782F908A37D92E83CD07C0C4E627442457A938A8B2E8F56C7DBD3438A01A767AB593247F3863ADF7854 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase46() {
printf "=== testcase 46" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " A818E8FA3719E4AA40BD71952C6CF9403D6302E55AF2BFCE105B61ED323F1E08
42DCFA01FF087324C3D8905DE2E9C861D6417B1E
0042DCFA01FF087324C3D8905DE2E9C861D6417B1E
8EB71BAEDCF70879398F934A9868FDF33B6D8269CD96FC2B3EF73DC7270F3983
70F11248CEA5E63E84340E3EF4E269D83FA15D12AB04E227BF1E59B9D2E57F43
70F11248
0042DCFA01FF087324C3D8905DE2E9C861D6417B1E70F11248\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 176YKPFcmkGY6yKyTVPTvDKq9QJZHm4v5u\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 176YKPFcmkGY6yKyTVPTvDKq9QJZHm4v5u" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 04EC0E787151BCB542ACEF904973F25FB34D79CDE55D7A5B8ADAFEBC5744C3B20047D845EFE1CB2F7DFD8167E00D65F75523438FC49C5145DAF1FB269A66F112FD | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase47() {
printf "=== testcase 47" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " A9F176183A9666A85CEB950FB22F7BDEA1C1CD9DDC2B2F755A421EA212573096
B768BE416DFD0A2C677662981D4BFBEE2FFDDBE0
00B768BE416DFD0A2C677662981D4BFBEE2FFDDBE0
2319578B1E62D5F8BA33D612B9CA99010723DE7236B3950F92949872E49A145A
33B2B51766B3644CD67A35C8F88639AF51FBB0F41C1810982D41335C070423CD
33B2B517
00B768BE416DFD0A2C677662981D4BFBEE2FFDDBE033B2B517\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1Hin8nmZRVPvg8DLqUcmYyXRPC7KYZPBsC\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1Hin8nmZRVPvg8DLqUcmYyXRPC7KYZPBsC" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 041AA25740F911D3BC71D7C968020CE0B085C84AA3819D6E32F1C8E13D88A85C9F3FF532B2C50AA235531CC8C027CD567C8F68E1D3D48358A03948E2826B7F5660 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase48() {
printf "=== testcase 48" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 479BB9882946BDB2454B375020E6D2C15220C21A0E167C4568361C2B9DD8FF6C
FDEA19A53C34647A6D3717F8B7175F887339095A
00FDEA19A53C34647A6D3717F8B7175F887339095A
A469D48899A3B8C79DC869AA92E7DC496F769063B495C0E2C5D654D29185B695
B388B1E0A7189E2FD5981CA00F8313EC65962E64B55BCBB87C925C6D69B8DDFA
B388B1E0
00FDEA19A53C34647A6D3717F8B7175F887339095AB388B1E0\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1Q9aQ6ieKu6TXbY6qZBkC94FuzyHdPm8vb\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp
echo " 1Q9aQ6ieKu6TXbY6qZBkC94FuzyHdPm8vb" | tee -a $logfile
./tcls_base58check_enc.sh -v -p2pk 042FD276E57944191290DC05BB5659279FB0FC9114D1C52FEE7BBC2911D74A4292FC05CBCFD8E0DA204E4CD6CCA7CFF209F71073530E75F6C77D710C2ECE392629 | grep "^ " | tail -n9 >> tmp_b58chk_compare.tmp
chksum_prep
}
testcase49() {
printf "=== testcase 49" | tee -a $logfile
for i in tmp*; do
if [ -f "$i" ]; then rm $i ; fi
done
printf " 5B08DC48D2131D61A3682FC6425FA653C39F0024277321E1CD7289EB653D4431
B557AF58BECDCA88E850F7FCE53F892A065C47BB
00B557AF58BECDCA88E850F7FCE53F892A065C47BB
06BC03C415418E557907C62331B1E0A653151565137DDA6DA4995FEBD1EABD8E
36F7ED93EC431E1C4A6EDA36A4C407AB146B648F574FC5FC818674795A5FE68D
36F7ED93
00B557AF58BECDCA88E850F7FCE53F892A065C47BB36F7ED93\n" | tr [:upper:] [:lower:] > tmp_b58chk_ref.tmp
printf " 1HXrMBLnFHTzzaNjzZvx4RxcWUtw4523mC\n" >> tmp_b58chk_ref.tmp
echo " " >> tmp_b58chk_ref.tmp