G2Projective.fromAffine constructor

G2Projective.fromAffine(
  1. G2AffinePoint affine
)

Implementation

factory G2Projective.fromAffine(G2AffinePoint affine) {
  return G2Projective(
    x: affine.x,
    y: affine.y,
    z: Bls12Fp2.conditionalSelect(
      Bls12Fp2.one(),
      Bls12Fp2.zero(),
      affine.infinity,
    ),
  );
}