toHex method

String toHex([
  1. EncodeType encodeType = EncodeType.comprossed
])

Encodes the elliptic curve point as a hexadecimal string with the specified encoding type. The default encoding type is 'compressed'.

Implementation

String toHex([EncodeType encodeType = EncodeType.comprossed]) {
  final bytes = toBytes(encodeType);
  return BytesUtils.toHexString(bytes);
}