@@ -402,8 +402,12 @@ describe('Basic checks', function () {
402
402
expect ( resp . errorMessage ) . toEqual ( "No errors" ) ;
403
403
404
404
// Prepare digest
405
+ let tag = Buffer . alloc ( 32 ) ;
406
+ tag . write ( "FLOW-V0.0-transaction" ) ;
407
+
405
408
const hasher = new jsSHA ( "SHA-256" , "UINT8ARRAY" ) ;
406
- hasher . update ( txBlob )
409
+ hasher . update ( tag ) ;
410
+ hasher . update ( txBlob ) ;
407
411
const digest = hasher . getHash ( "HEX" ) ;
408
412
409
413
// Verify signature
@@ -453,7 +457,11 @@ describe('Basic checks', function () {
453
457
expect ( resp . errorMessage ) . toEqual ( "No errors" ) ;
454
458
455
459
// Prepare digest
460
+ let tag = Buffer . alloc ( 32 ) ;
461
+ tag . write ( "FLOW-V0.0-transaction" ) ;
462
+
456
463
const hasher = new jsSHA ( "SHA-256" , "UINT8ARRAY" ) ;
464
+ hasher . update ( tag )
457
465
hasher . update ( txBlob )
458
466
const digest = hasher . getHash ( "HEX" ) ;
459
467
@@ -504,7 +512,11 @@ describe('Basic checks', function () {
504
512
expect ( resp . errorMessage ) . toEqual ( "No errors" ) ;
505
513
506
514
// Prepare digest
515
+ let tag = Buffer . alloc ( 32 ) ;
516
+ tag . write ( "FLOW-V0.0-transaction" ) ;
517
+
507
518
const hasher = new jsSHA ( "SHA-256" , "UINT8ARRAY" ) ;
519
+ hasher . update ( tag )
508
520
hasher . update ( txBlob )
509
521
const digest = hasher . getHash ( "HEX" ) ;
510
522
@@ -555,7 +567,11 @@ describe('Basic checks', function () {
555
567
expect ( resp . errorMessage ) . toEqual ( "No errors" ) ;
556
568
557
569
// Prepare digest
570
+ let tag = Buffer . alloc ( 32 ) ;
571
+ tag . write ( "FLOW-V0.0-transaction" ) ;
572
+
558
573
const hasher = new jsSHA ( "SHA3-256" , "UINT8ARRAY" ) ;
574
+ hasher . update ( tag )
559
575
hasher . update ( txBlob )
560
576
const digest = hasher . getHash ( "HEX" ) ;
561
577
@@ -606,7 +622,11 @@ describe('Basic checks', function () {
606
622
expect ( resp . errorMessage ) . toEqual ( "No errors" ) ;
607
623
608
624
// Prepare digest
625
+ let tag = Buffer . alloc ( 32 ) ;
626
+ tag . write ( "FLOW-V0.0-transaction" ) ;
627
+
609
628
const hasher = new jsSHA ( "SHA3-256" , "UINT8ARRAY" ) ;
629
+ hasher . update ( tag )
610
630
hasher . update ( txBlob )
611
631
const digest = hasher . getHash ( "HEX" ) ;
612
632
@@ -657,7 +677,11 @@ describe('Basic checks', function () {
657
677
expect ( resp . errorMessage ) . toEqual ( "No errors" ) ;
658
678
659
679
// Prepare digest
680
+ let tag = Buffer . alloc ( 32 ) ;
681
+ tag . write ( "FLOW-V0.0-transaction" ) ;
682
+
660
683
const hasher = new jsSHA ( "SHA3-256" , "UINT8ARRAY" ) ;
684
+ hasher . update ( tag )
661
685
hasher . update ( txBlob )
662
686
const digest = hasher . getHash ( "HEX" ) ;
663
687
@@ -769,7 +793,11 @@ describe('Basic checks', function () {
769
793
expect ( resp . errorMessage ) . toEqual ( "No errors" ) ;
770
794
771
795
// Prepare digest
796
+ let tag = Buffer . alloc ( 32 ) ;
797
+ tag . write ( "FLOW-V0.0-transaction" ) ;
798
+
772
799
const hasher = new jsSHA ( "SHA-256" , "UINT8ARRAY" ) ;
800
+ hasher . update ( tag )
773
801
hasher . update ( txBlob )
774
802
const digest = hasher . getHash ( "HEX" ) ;
775
803
@@ -820,7 +848,11 @@ describe('Basic checks', function () {
820
848
expect ( resp . errorMessage ) . toEqual ( "No errors" ) ;
821
849
822
850
// Prepare digest
851
+ let tag = Buffer . alloc ( 32 ) ;
852
+ tag . write ( "FLOW-V0.0-transaction" ) ;
853
+
823
854
const hasher = new jsSHA ( "SHA-256" , "UINT8ARRAY" ) ;
855
+ hasher . update ( tag )
824
856
hasher . update ( txBlob )
825
857
const digest = hasher . getHash ( "HEX" ) ;
826
858
@@ -871,7 +903,11 @@ describe('Basic checks', function () {
871
903
expect ( resp . errorMessage ) . toEqual ( "No errors" ) ;
872
904
873
905
// Prepare digest
906
+ let tag = Buffer . alloc ( 32 ) ;
907
+ tag . write ( "FLOW-V0.0-transaction" ) ;
908
+
874
909
const hasher = new jsSHA ( "SHA-256" , "UINT8ARRAY" ) ;
910
+ hasher . update ( tag )
875
911
hasher . update ( txBlob )
876
912
const digest = hasher . getHash ( "HEX" ) ;
877
913
@@ -922,7 +958,11 @@ describe('Basic checks', function () {
922
958
expect ( resp . errorMessage ) . toEqual ( "No errors" ) ;
923
959
924
960
// Prepare digest
961
+ let tag = Buffer . alloc ( 32 ) ;
962
+ tag . write ( "FLOW-V0.0-transaction" ) ;
963
+
925
964
const hasher = new jsSHA ( "SHA3-256" , "UINT8ARRAY" ) ;
965
+ hasher . update ( tag )
926
966
hasher . update ( txBlob )
927
967
const digest = hasher . getHash ( "HEX" ) ;
928
968
@@ -973,7 +1013,11 @@ describe('Basic checks', function () {
973
1013
expect ( resp . errorMessage ) . toEqual ( "No errors" ) ;
974
1014
975
1015
// Prepare digest
1016
+ let tag = Buffer . alloc ( 32 ) ;
1017
+ tag . write ( "FLOW-V0.0-transaction" ) ;
1018
+
976
1019
const hasher = new jsSHA ( "SHA3-256" , "UINT8ARRAY" ) ;
1020
+ hasher . update ( tag )
977
1021
hasher . update ( txBlob )
978
1022
const digest = hasher . getHash ( "HEX" ) ;
979
1023
@@ -1024,7 +1068,11 @@ describe('Basic checks', function () {
1024
1068
expect ( resp . errorMessage ) . toEqual ( "No errors" ) ;
1025
1069
1026
1070
// Prepare digest
1071
+ let tag = Buffer . alloc ( 32 ) ;
1072
+ tag . write ( "FLOW-V0.0-transaction" ) ;
1073
+
1027
1074
const hasher = new jsSHA ( "SHA3-256" , "UINT8ARRAY" ) ;
1075
+ hasher . update ( tag )
1028
1076
hasher . update ( txBlob )
1029
1077
const digest = hasher . getHash ( "HEX" ) ;
1030
1078
0 commit comments