#[cfg(not(feature = "std"))]
use alloc::{string::String, vec::Vec};
pub(crate) fn bytes_to_hex(bytes: &[u8]) -> String {
crate::hex::bytes_to_hex(bytes)
}
pub(crate) fn hex_to_bytes<E: serde::de::Error>(s: &str) -> Result<Vec<u8>, E> {
crate::hex::hex_to_bytes(s).map_err(E::custom)
}