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

Method is_attestation

atomic-core/src/change/attestation.rs:260–262  ·  view source on GitHub ↗

Check whether a byte slice looks like an attestation file. Fast check — only inspects the 4-byte magic prefix.

(data: &[u8])

Source from the content-addressed store, hash-verified

258 ///
259 /// Fast check — only inspects the 4-byte magic prefix.
260 pub fn is_attestation(data: &[u8]) -> bool {
261 data.len() >= MAGIC.len() && &data[..4] == MAGIC
262 }
263
264 /// Total tokens across all models (input + output + cache).
265 pub fn total_tokens(&self) -> u64 {

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected