conditionalSelect static method

Secp256r1Point conditionalSelect(
  1. Secp256r1Point a,
  2. Secp256r1Point b,
  3. bool choice
)

Implementation

static Secp256r1Point conditionalSelect(
  Secp256r1Point a,
  Secp256r1Point b,
  bool choice,
) => Secp256r1Point(
  x: Secp256r1Fp.conditionalSelect(a.x, b.x, choice),
  y: Secp256r1Fp.conditionalSelect(a.y, b.y, choice),
  z: Secp256r1Fp.conditionalSelect(a.z, b.z, choice),
);