toHex method

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

Returns the hexadecimal representation of the XRPPublicKey.

Implementation

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