PallasFp.fromRaw constructor

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

Implementation

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