MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / append_revision_field

Function append_revision_field

libatomic/src/daemon/services_agent.rs:317–320  ·  view source on GitHub ↗
(hasher: &mut Hasher, value: &[u8])

Source from the content-addressed store, hash-verified

315 /// and body — not only the body content hash).
316 fn vault_entry_revision_hash(entry: &VaultEntry) -> String {
317 fn append_revision_field(hasher: &mut Hasher, value: &[u8]) {
318 hasher.update(&(value.len() as u64).to_be_bytes());
319 hasher.update(value);
320 }
321 let mut hasher = Hasher::new();
322 hasher.update(b"atomic-vault-revision-v1");
323 append_revision_field(&mut hasher, entry.entry_type.as_str().as_bytes());

Callers 1

Calls 2

updateMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected