pub fn sha_checksum(data: &Vec<u8>) -> Vec<u8> {
    let mut hasher = Sha256::default();
    hasher.input(data);
    let result = hasher.result();

    result.to_vec()
}
/// Creates a sha256 hashsum from the input data
Creates a sha256 hashsum from the input data
Creates a sha256 hashsum from the input data
pub fn sha_checksum(data: &Vec<u8>) -> Vec<u8> {
    let mut hasher = Sha256::default();
    hasher.input(data);
    let result = hasher.result();
    result.to_vec()
}
pub fn sha_checksum ( data : & Vec < u8 > ) -> Vec < u8 > { let mut hasher = Sha256 :: default ( ) ; hasher . input ( data ) ; let result = hasher . result ( ) ; result . to_vec ( ) }
Creates a sha256 hashsum from the input data
Creates a sha256 hashsum from the input data
data
&Vec<u8>