encodePoint static method

Secp256k1Point encodePoint(
  1. List<int> bytes
)

Implementation

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