hyperfuel-format 4.1.0

fuel network format library
Documentation
1
2
3
4
5
6
7
8
pub fn decode_hex(hex: &str) -> Result<Vec<u8>, faster_hex::Error> {
    let len = hex.len();
    let mut dst = vec![0; len / 2];

    faster_hex::hex_decode(hex.as_bytes(), &mut dst)?;

    Ok(dst)
}