MCPcopy Create free account
hub / github.com/dfinity/orbit / hash

Function hash

tests/integration/src/utils.rs:1002–1006  ·  view source on GitHub ↗
(data: &Vec<u8>)

Source from the content-addressed store, hash-verified

1000}
1001
1002pub(crate) fn hash(data: &Vec<u8>) -> Vec<u8> {
1003 let mut hasher = Sha256::new();
1004 hasher.update(data);
1005 hasher.finalize().to_vec()
1006}
1007
1008pub fn upload_canister_chunks_to_asset_canister(
1009 env: &PocketIc,

Calls 2

updateMethod · 0.80
to_vecMethod · 0.80

Tested by

no test coverage detected