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

Method verify

atomic-agent/src/turn/capture.rs:177–180  ·  view source on GitHub ↗

Verify the MAC. Any edited field — including a swapped capture from another session or turn — fails.

(&self, key_hex: &str)

Source from the content-addressed store, hash-verified

175 /// Verify the MAC. Any edited field — including a swapped capture from
176 /// another session or turn — fails.
177 pub fn verify(&self, key_hex: &str) -> bool {
178 let input = self.mac_input();
179 Self::mac(key_hex, &input) == self.mac
180 }
181
182 /// Encode for durable storage (one JSON document per file).
183 pub fn to_json(&self) -> AgentResult<Vec<u8>> {

Calls 1

mac_inputMethod · 0.80