encodePointAsEven static method
Implementation
static ProjectiveECCPoint encodePointAsEven(List<int> keyBytes) {
try {
final point = encodePoint(keyBytes);
final p = P2TRUtils.liftX(point.x);
if (keyBytes[0] == 2) {
return p;
} else if (keyBytes[0] == 3) {
return -p;
}
} catch (_) {}
throw MuSig2Exception("Invalid comprossed point");
}