bnSqrt function

BigInt bnSqrt(
  1. BigInt bn
)

Implementation

BigInt bnSqrt(BigInt bn) {
  return bn < BigInt.from(2) ? bn : newtonIteration(bn, BigInt.from(1));
}