fun <T> BinaryFormat.decodeFromHexString(deserializer: DeserializationStrategy<T>, hex: String): T
inline fun <T> BinaryFormat.decodeFromHexString(hex: String): T

Decodes byte array from the given hex string and the decodes and deserializes it to the value of type T, delegating it to the BinaryFormat.

This method is a counterpart to encodeToHexString.


in case of any decoding-specific error

if the decoded input is not a valid instance of T