pub fn str_to_sha3_256(s: &str) -> String {
        let s_bytes = s.as_bytes();
        let mut hasher = Sha3::v256();
        let mut bytes = [0; 32];
        hasher.update(s_bytes);
        hasher.finalize(&mut bytes);
        encode(Base::Base32, bytes)
    }
// returns sha3_256 hash of input string as a string.
returns sha3_256 hash of input string as a string.
returns sha3_256 hash of input string as a string .
pub fn str_to_sha3_256(s: &str) -> String {
        let s_bytes = s.as_bytes();
        let mut hasher = Sha3::v256();
        let mut bytes = [0; 32];
        hasher.update(s_bytes);
        hasher.finalize(&mut bytes);
        encode(Base::Base32, bytes)
    }
pub fn str_to_sha3_256 ( s : & str ) -> String { let s_bytes = s . as_bytes ( ) ; let mut hasher = Sha3 :: v256 ( ) ; let mut bytes = [ 0 ; 32 ] ; hasher . update ( s_bytes ) ; hasher . finalize ( & mut bytes ) ; encode ( Base :: Base32 , bytes ) }
returns sha3_256 hash of input string as a string.
returns sha3_256 hash of input string as a string .
s
&str
s
&str