@@ -609,13 +609,13 @@ std::optional<component::G1> mcl::OpBLS_G1_Mul(operation::BLS_G1_Mul& op) {
609
609
using namespace Namespace ;
610
610
611
611
Namespace::Fp a_x, a_y;
612
- Namespace::Fp b;
612
+ Namespace::Fr b;
613
613
614
614
try {
615
615
a_x = Fp (op.a .first .ToTrimmedString (), 10 );
616
616
a_y = Fp (op.a .second .ToTrimmedString (), 10 );
617
617
618
- b = Fp (op.b .ToTrimmedString (), 10 );
618
+ b = Fr (op.b .ToTrimmedString (), 10 );
619
619
} catch ( cybozu::Exception ) {
620
620
/* May throw exception if string represents value larger than curve order */
621
621
return std::nullopt;
@@ -730,15 +730,15 @@ std::optional<component::G2> mcl::OpBLS_G2_Mul(operation::BLS_G2_Mul& op) {
730
730
using namespace Namespace ;
731
731
732
732
Namespace::Fp a_v, a_w, a_x, a_y;
733
- Namespace::Fp b;
733
+ Namespace::Fr b;
734
734
735
735
try {
736
736
a_v = Fp (op.a .first .first .ToTrimmedString (), 10 );
737
737
a_w = Fp (op.a .first .second .ToTrimmedString (), 10 );
738
738
a_x = Fp (op.a .second .first .ToTrimmedString (), 10 );
739
739
a_y = Fp (op.a .second .second .ToTrimmedString (), 10 );
740
740
741
- b = Fp (op.b .ToTrimmedString (), 10 );
741
+ b = Fr (op.b .ToTrimmedString (), 10 );
742
742
} catch ( cybozu::Exception ) {
743
743
/* May throw exception if string represents value larger than curve order */
744
744
return std::nullopt;
0 commit comments