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

Method signer_did

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

The signer DID, when this attestation carries a non-MAC signer.

(&self)

Source from the content-addressed store, hash-verified

628
629 /// The signer DID, when this attestation carries a non-MAC signer.
630 pub fn signer_did(&self) -> Option<&str> {
631 let signer = self.signer.as_deref()?;
632 if signer.starts_with("session-mac:") {
633 None
634 } else {
635 Some(signer)
636 }
637 }
638
639 /// Total tokens across all models (input + output + cache).
640 pub fn total_tokens(&self) -> u64 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected