Decodes bytes from their hexadecimal representation.
decode_hex(bytes: blob|string) -> blobDescription
Section titled “Description”Decodes bytes from their hexadecimal representation.
bytes: blob|string
Section titled “bytes: blob|string”The value to decode.
Examples
Section titled “Examples”Decode a blob from hex
Section titled “Decode a blob from hex”from {bytes: "54656E7A6972"}decoded = bytes.decode_hex(){bytes: "54656E7A6972", decoded: "Tenzir"}Decode a mixed-case hex string
Section titled “Decode a mixed-case hex string”from {bytes: "4e6f6E6365"}decoded = bytes.decode_hex(){bytes: "4e6f6E6365", decoded: "Nonce"}