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

Method matches_source_bytes

atomic-core/src/change/verified.rs:68–71  ·  view source on GitHub ↗

Whether these bytes exactly match the previously verified source, including unhashed notes/signatures. A change in any byte requires a new checked decode, not a timestamp-based cache hit.

(&self, bytes: &[u8])

Source from the content-addressed store, hash-verified

66 /// including unhashed notes/signatures. A change in any byte requires a
67 /// new checked decode, not a timestamp-based cache hit.
68 pub fn matches_source_bytes(&self, bytes: &[u8]) -> bool {
69 self.source_digest
70 .is_some_and(|digest| digest == Hash::of(bytes))
71 }
72}
73
74#[derive(Debug, thiserror::Error)]

Callers 1

load_verified_changeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected