Guest User

Untitled

a guest
Sep 19th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. pub fn generate_hash(&self) -> generic_array::GenericArray<u8, generic_array::ArrayLength<u8>> {
  2. let mut hasher = sha3::Sha3_256::default();
  3. hasher.input(self.uuid.as_fields().3);
  4. hasher.input(self.contents.as_bytes());
  5. hasher.input(&self.nonce.to_le_bytes());
  6. hasher.result()
  7. }
Add Comment
Please, Sign In to add comment