toHex method

  1. @override
String toHex({
  1. bool withPrefix = true,
  2. bool lowerCase = true,
  3. String? prefix = "",
})
override

Implementation

@override
String toHex(
    {bool withPrefix = true, bool lowerCase = true, String? prefix = ""}) {
  List<int> key = publicKey.point.toBytes();
  if (withPrefix) {
    key = compressed;
  }
  return BytesUtils.toHexString(key, prefix: prefix, lowerCase: lowerCase);
}