MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / host_identity_from_source

Function host_identity_from_source

packages/server/src/config.rs:127–130  ·  view source on GitHub ↗
(source: &str)

Source from the content-addressed store, hash-verified

125}
126
127fn host_identity_from_source(source: &str) -> String {
128 let digest = hex::encode(Sha256::digest(source.as_bytes()));
129 digest[..16].to_owned()
130}
131
132#[cfg(target_os = "macos")]
133fn machine_identity_source() -> Option<String> {

Callers 1

host_identityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected