MCPcopy Create free account
hub / github.com/Botloader/botloader / hash_script_source

Function hash_script_source

components/stores/src/config.rs:1573–1576  ·  view source on GitHub ↗
(source: &str)

Source from the content-addressed store, hash-verified

1571}
1572
1573pub fn hash_script_source(source: &str) -> String {
1574 use sha2::Digest;
1575 hex::encode(sha2::Sha256::digest(source.as_bytes()))
1576}
1577
1578pub fn hash_settings_values(values: &[SettingsOptionValue]) -> String {
1579 use sha2::Digest;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected