Class BLS12_381G2
java.lang.Object
org.bouncycastle.crypto.bls.BLS12_381G2
Curve parameters for BLS12-381 G2, the prime-order subgroup of
E(Fp^2) defined by y^2 = x^3 + 4 * (1 + I) over Fp^2.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BigIntegerG2 cofactor.static final BigIntegerEffective cofactor for hash-to-curve (RFC 9380 sec. 8.8.2).static final BigIntegerG2 prime-order subgroup order — identical to G1's, since pairing-friendly curves have G1 and G2 share the same scalar field. -
Method Summary
-
Field Details
-
ORDER
G2 prime-order subgroup order — identical to G1's, since pairing-friendly curves have G1 and G2 share the same scalar field. -
COFACTOR
G2 cofactor. -
H_EFF
Effective cofactor for hash-to-curve (RFC 9380 sec. 8.8.2). Multiplying any point on E(Fp^2) by h_eff lands in the prime-order subgroup; the value is chosen for compatibility with the Budroni-Pintore optimised cofactor clearing.
-
-
Method Details
-
getGenerator
- Returns:
- the standard generator G2 of the prime-order subgroup, as a fresh affine point. The returned point is verified against the curve equation.
-