VestaNativeFq.from constructor

VestaNativeFq.from(
  1. int v
)

Implementation

factory VestaNativeFq.from(int v) {
  final big = BigInt.from(v);
  if (big.isNegative) return VestaNativeFq(big);
  return VestaNativeFq.nP(big);
}