usesha2::Digest;/// Compute s256 digest of a string
#[inline]pub(crate)fnsha256(input:&[u8])->Vec<u8>{sha2::Sha256::digest(input).to_vec()}/// Compute s256 digest of a string & return the hex string of digest
#[inline]pub(crate)fnsha256_str(input:&[u8])-> String{hex::encode(sha256(input))}