code: func Ecp2FromProto(p *ECP2) *FP256BN.ECP2 {
  	return FP256BN.NewECP2fp2s(
  		FP256BN.NewFP2bigs(FP256BN.FromBytes(p.GetXa()), FP256BN.FromBytes(p.GetXb())),
  		FP256BN.NewFP2bigs(FP256BN.FromBytes(p.GetYa()), FP256BN.FromBytes(p.GetYb())))
  }
docs: // Ecp2FromProto converts a proto struct *ECP2 into an *amcl.ECP2