toBytes method
Serializes the field element to a 48-byte big-endian representation.
Implementation
@override
List<int> toBytes() {
final tmp = Bls12Fp.montgomeryReduce(
limbs[0],
limbs[1],
limbs[2],
limbs[3],
limbs[4],
limbs[5],
BigInt.zero,
BigInt.zero,
BigInt.zero,
BigInt.zero,
BigInt.zero,
BigInt.zero,
);
return tmp.limbs.reversed.expand((e) => e.toU64BeBytes()).toList();
}