encodePoint static method

ProjectiveECCPoint encodePoint(
  1. List<int> bytes
)

Implementation

static ProjectiveECCPoint encodePoint(List<int> bytes) {
  try {
    return ProjectiveECCPoint.fromBytes(
      curve: MuSig2Constants.curve,
      data: bytes,
    );
  } catch (_) {
    throw ArgumentException.invalidOperationArguments(
      "encodePoint",
      name: "keys",
      reason: "Invalid public key.",
    );
  }
}