File tree Expand file tree Collapse file tree
amsterdam/vm/precompiled_contracts/bls12_381
bpo1/vm/precompiled_contracts/bls12_381
bpo2/vm/precompiled_contracts/bls12_381
bpo3/vm/precompiled_contracts/bls12_381
bpo4/vm/precompiled_contracts/bls12_381
bpo5/vm/precompiled_contracts/bls12_381
osaka/vm/precompiled_contracts/bls12_381
prague/vm/precompiled_contracts/bls12_381 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ def decode_g1_scalar_pair(
414414
415415 """
416416 if len (data ) != 160 :
417- InvalidParameter ("Input should be 160 bytes long" )
417+ raise InvalidParameter ("Input should be 160 bytes long" )
418418
419419 point = bytes_to_g1 (data [:128 ], subgroup_check = True )
420420
@@ -614,7 +614,7 @@ def decode_g2_scalar_pair(
614614
615615 """
616616 if len (data ) != 288 :
617- InvalidParameter ("Input should be 288 bytes long" )
617+ raise InvalidParameter ("Input should be 288 bytes long" )
618618
619619 point = bytes_to_g2 (data [:256 ], subgroup_check = True )
620620 n = int .from_bytes (data [256 : 256 + 32 ], "big" )
Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ def decode_g1_scalar_pair(
414414
415415 """
416416 if len (data ) != 160 :
417- InvalidParameter ("Input should be 160 bytes long" )
417+ raise InvalidParameter ("Input should be 160 bytes long" )
418418
419419 point = bytes_to_g1 (data [:128 ], subgroup_check = True )
420420
@@ -614,7 +614,7 @@ def decode_g2_scalar_pair(
614614
615615 """
616616 if len (data ) != 288 :
617- InvalidParameter ("Input should be 288 bytes long" )
617+ raise InvalidParameter ("Input should be 288 bytes long" )
618618
619619 point = bytes_to_g2 (data [:256 ], subgroup_check = True )
620620 n = int .from_bytes (data [256 : 256 + 32 ], "big" )
Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ def decode_g1_scalar_pair(
414414
415415 """
416416 if len (data ) != 160 :
417- InvalidParameter ("Input should be 160 bytes long" )
417+ raise InvalidParameter ("Input should be 160 bytes long" )
418418
419419 point = bytes_to_g1 (data [:128 ], subgroup_check = True )
420420
@@ -614,7 +614,7 @@ def decode_g2_scalar_pair(
614614
615615 """
616616 if len (data ) != 288 :
617- InvalidParameter ("Input should be 288 bytes long" )
617+ raise InvalidParameter ("Input should be 288 bytes long" )
618618
619619 point = bytes_to_g2 (data [:256 ], subgroup_check = True )
620620 n = int .from_bytes (data [256 : 256 + 32 ], "big" )
Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ def decode_g1_scalar_pair(
414414
415415 """
416416 if len (data ) != 160 :
417- InvalidParameter ("Input should be 160 bytes long" )
417+ raise InvalidParameter ("Input should be 160 bytes long" )
418418
419419 point = bytes_to_g1 (data [:128 ], subgroup_check = True )
420420
@@ -614,7 +614,7 @@ def decode_g2_scalar_pair(
614614
615615 """
616616 if len (data ) != 288 :
617- InvalidParameter ("Input should be 288 bytes long" )
617+ raise InvalidParameter ("Input should be 288 bytes long" )
618618
619619 point = bytes_to_g2 (data [:256 ], subgroup_check = True )
620620 n = int .from_bytes (data [256 : 256 + 32 ], "big" )
Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ def decode_g1_scalar_pair(
414414
415415 """
416416 if len (data ) != 160 :
417- InvalidParameter ("Input should be 160 bytes long" )
417+ raise InvalidParameter ("Input should be 160 bytes long" )
418418
419419 point = bytes_to_g1 (data [:128 ], subgroup_check = True )
420420
@@ -614,7 +614,7 @@ def decode_g2_scalar_pair(
614614
615615 """
616616 if len (data ) != 288 :
617- InvalidParameter ("Input should be 288 bytes long" )
617+ raise InvalidParameter ("Input should be 288 bytes long" )
618618
619619 point = bytes_to_g2 (data [:256 ], subgroup_check = True )
620620 n = int .from_bytes (data [256 : 256 + 32 ], "big" )
Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ def decode_g1_scalar_pair(
414414
415415 """
416416 if len (data ) != 160 :
417- InvalidParameter ("Input should be 160 bytes long" )
417+ raise InvalidParameter ("Input should be 160 bytes long" )
418418
419419 point = bytes_to_g1 (data [:128 ], subgroup_check = True )
420420
@@ -614,7 +614,7 @@ def decode_g2_scalar_pair(
614614
615615 """
616616 if len (data ) != 288 :
617- InvalidParameter ("Input should be 288 bytes long" )
617+ raise InvalidParameter ("Input should be 288 bytes long" )
618618
619619 point = bytes_to_g2 (data [:256 ], subgroup_check = True )
620620 n = int .from_bytes (data [256 : 256 + 32 ], "big" )
Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ def decode_g1_scalar_pair(
414414
415415 """
416416 if len (data ) != 160 :
417- InvalidParameter ("Input should be 160 bytes long" )
417+ raise InvalidParameter ("Input should be 160 bytes long" )
418418
419419 point = bytes_to_g1 (data [:128 ], subgroup_check = True )
420420
@@ -614,7 +614,7 @@ def decode_g2_scalar_pair(
614614
615615 """
616616 if len (data ) != 288 :
617- InvalidParameter ("Input should be 288 bytes long" )
617+ raise InvalidParameter ("Input should be 288 bytes long" )
618618
619619 point = bytes_to_g2 (data [:256 ], subgroup_check = True )
620620 n = int .from_bytes (data [256 : 256 + 32 ], "big" )
Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ def decode_g1_scalar_pair(
414414
415415 """
416416 if len (data ) != 160 :
417- InvalidParameter ("Input should be 160 bytes long" )
417+ raise InvalidParameter ("Input should be 160 bytes long" )
418418
419419 point = bytes_to_g1 (data [:128 ], subgroup_check = True )
420420
@@ -614,7 +614,7 @@ def decode_g2_scalar_pair(
614614
615615 """
616616 if len (data ) != 288 :
617- InvalidParameter ("Input should be 288 bytes long" )
617+ raise InvalidParameter ("Input should be 288 bytes long" )
618618
619619 point = bytes_to_g2 (data [:256 ], subgroup_check = True )
620620 n = int .from_bytes (data [256 : 256 + 32 ], "big" )
You can’t perform that action at this time.
0 commit comments