toBytes method
Implementation
@override
List<int> toBytes() {
scale();
final encLen = (curve.p.bitLength + 1 + 7) ~/ 8;
final yStr = BigintUtils.toBytes(y, length: encLen, order: Endian.little);
if (x % BigInt.two == BigInt.one) {
yStr[yStr.length - 1] |= 0x80;
}
return yStr;
}