MCPcopy Create free account
hub / github.com/QMHTMY/RustBook / hash_u8

Function hash_u8

code/chapter09/blockchain/blockchain8/utils/src/serializer.rs:18–22  ·  view source on GitHub ↗
(value: &[u8], mut out: &mut [u8])

Source from the content-addressed store, hash-verified

16}
17
18pub fn hash_u8(value: &[u8], mut out: &mut [u8]) {
19 let mut hasher = Sha3::sha3_256();
20 hasher.input(value);
21 hasher.result(&mut out);
22}

Callers 2

runMethod · 0.50
write_blockMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected