sqrtAlt static method

Implementation

static FieldSqrtResult<VestaNativeFq> sqrtAlt(VestaNativeFq r) {
  return PastaUtils.sqrtTonelliShanks(
    f: r,
    fPowTm1d2: r.powByTMinus1Over2(),

    one: _one,
    rootOfUnity: VestaNativeFq.rootOfUnity(),
    s: 32,
    conditionalSelect: (a, b, choice) => choice ? b : a,
  );
}