sqrt method

  1. @override
FieldSqrtResult<PallasFp> sqrt()
override

Computes the square root of the element.

Implementation

@override
FieldSqrtResult<PallasFp> sqrt() {
  return PastaUtils.sqrtTonelliShanks(
    f: this,
    fPowTm1d2: powByTMinus1Over2(),
    rootOfUnity: PallasFp.rootOfUnity(),
    one: PallasFp.one(),
    conditionalSelect: PallasFp.conditionalSelect,
  );
}