Class BLS12_381G2

java.lang.Object
org.bouncycastle.crypto.bls.BLS12_381G2

public class BLS12_381G2 extends Object
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 Details

    • ORDER

      public static final BigInteger ORDER
      G2 prime-order subgroup order — identical to G1's, since pairing-friendly curves have G1 and G2 share the same scalar field.
    • COFACTOR

      public static final BigInteger COFACTOR
      G2 cofactor.
    • H_EFF

      public static final BigInteger 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

      public static BLS12_381G2Point 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.