Function encode_hex
Source pub fn encode_hex(bytes: &[u8]) -> String
Expand description
Encodes bytes as a hexadecimal string.
§Arguments
bytes - The bytes to encode
§Returns
A lowercase hexadecimal string representation.
§Example
use stealth_lib::encoding::encode_hex;
let hex = encode_hex(&[0xde, 0xad, 0xbe, 0xef]);
assert_eq!(hex, "deadbeef");