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

Method sign

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

Sign this capture in place with the session's MAC key.

(&mut self, key_hex: &str)

Source from the content-addressed store, hash-verified

166
167 /// Sign this capture in place with the session's MAC key.
168 pub fn sign(&mut self, key_hex: &str) {
169 let input = self.mac_input();
170 self.mac = Self::mac(key_hex, &input);
171 }
172
173 /// Verify the MAC. Any edited field — including a swapped capture from
174 /// another session or turn — fails.

Callers 2

write_captureFunction · 0.45

Calls 1

mac_inputMethod · 0.80

Tested by 1