JubJubFq.fromRaw constructor

JubJubFq.fromRaw(
  1. List<BigInt> val
)

Implementation

factory JubJubFq.fromRaw(List<BigInt> val) {
  assert(val.length == 4);
  // Create JubJubFq element from raw limbs
  JubJubFq tmp = JubJubFq(val);
  // Convert to Montgomery form
  return tmp.mul(JubJubFq.r2());
}