Check whether a byte slice looks like an attestation file. Fast check — only inspects the 4-byte magic prefix.
(data: &[u8])
| 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 { |