encodePoint static method

ProjectiveECCPoint encodePoint(
  1. List<int> bytes
)

Implementation

static ProjectiveECCPoint encodePoint(List<int> bytes) {
  try {
    return ProjectiveECCPoint.fromBytes(
        curve: MuSig2Const.curve, data: bytes);
  } catch (e) {
    throw MuSig2Exception("Invalid point.",
        details: {"message": e.toString()});
  }
}