MCPcopy Create free account
hub / github.com/ddimaria/rust-blockchain-tutorial / it_hashes

Function it_hashes

utils/src/crypto.rs:284–294  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

282
283 #[test]
284 fn it_hashes() {
285 let message = b"The message";
286 let hashed = hash(message);
287 assert_eq!(
288 hashed,
289 [
290 174, 253, 38, 204, 75, 207, 36, 167, 252, 109, 46, 248, 163, 40, 95, 14, 14, 198,
291 197, 2, 119, 153, 141, 102, 195, 214, 250, 111, 247, 123, 45, 64
292 ]
293 );
294 }
295
296 #[test]
297 fn it_recovers() {

Callers

nothing calls this directly

Calls 1

hashFunction · 0.85

Tested by

no test coverage detected