pub fn to_hex(a: &[u8]) -> String {
    let mut s = String::new();
    write!(s, "0x").unwrap();
    for v in a {
        write!(s, "{:02x}", *v).unwrap();
    }
    s
}
/// Given a bytearray, get a Ethereum-compatible string hex.
Given a bytearray, get a Ethereum-compatible string hex.
Given a bytearray get a Ethereum - compatible string hex .
pub fn to_hex(a: &[u8]) -> String {
    let mut s = String::new();
    write!(s, "0x").unwrap();
    for v in a {
        write!(s, "{:02x}", *v).unwrap();
    }
    s
}
pub fn to_hex ( a : & [ u8 ] ) -> String { let mut s = String :: new ( ) ; write ! ( s " " ) . unwrap ( ) ; for v in a { write ! ( s " " v ) . unwrap ( ) ; } s }
Given a bytearray, get a Ethereum-compatible string hex.
Given a bytearray get a Ethereum - compatible string hex .
a
&[u8]