pub fn double_hash_hex(hex_str: &String) -> String {
    let inp: Vec<u8> = hex_str.from_hex().unwrap();
    let first: [u8; 32] = Sha256::digest(&inp[..]).into();
    let second: [u8; 32] = Sha256::digest(&first).into();
    return second.to_hex();
}
// Double hashes a hex string and returns a hex string.
Double hashes a hex string and returns a hex string.
Double hashes a hex string and returns a hex string .
pub fn double_hash_hex(hex_str: &String) -> String {
    let inp: Vec<u8> = hex_str.from_hex().unwrap();
    let first: [u8; 32] = Sha256::digest(&inp[..]).into();
    let second: [u8; 32] = Sha256::digest(&first).into();
    return second.to_hex();
}
pub fn double_hash_hex ( hex_str : & String ) -> String { let inp : Vec < u8 > = hex_str . from_hex ( ) . unwrap ( ) ; let first : [ u8 ; 32 ] = Sha256 :: digest ( & inp [ .. ] ) . into ( ) ; let second : [ u8 ; 32 ] = Sha256 :: digest ( & first ) . into ( ) ; return second . to_hex ( ) ; }
Double hashes a hex string and returns a hex string.
Double hashes a hex string and returns a hex string .
hex_str
&String
hex_str
&String