toHex method

String toHex({
  1. PubKeyModes mode = PubKeyModes.compressed,
})

Method to convert the public key to a hexadecimal string

Implementation

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