toHex method

String toHex([
  1. PubKeyModes mode = PubKeyModes.compressed
])

Converts the public key to a hexadecimal string.

Implementation

String toHex([PubKeyModes mode = PubKeyModes.compressed]) {
  return BytesUtils.toHexString(toBytes(mode));
}