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

Method verify

atomic-agent/src/turn/capture.rs:175–178  ·  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

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

Calls 1

mac_inputMethod · 0.80