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

Method is_session_mac_signed

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

Whether this attestation was signed by a session MAC key (V3 signer class `session-mac: `). MAC signatures are evidence authentication only: the key lives beside the evidence, so they must never be accepted as *trusted* evidence (CB-12A AC3 — [`TrustPolicy::verify`] refuses them outright).

(&self)

Source from the content-addressed store, hash-verified

551 /// the evidence, so they must never be accepted as *trusted* evidence
552 /// (CB-12A AC3 — [`TrustPolicy::verify`] refuses them outright).
553 pub fn is_session_mac_signed(&self) -> bool {
554 self.signer
555 .as_deref()
556 .is_some_and(|s| s.starts_with("session-mac:"))
557 }
558
559 /// The domain-separated DID signature input (V4).
560 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected