Function solana_program::hash::hash[][src]

pub fn hash(val: &[u8]) -> Hash

Return a Sha256 hash for the given data.