The signer DID, when this attestation carries a non-MAC signer.
(&self)
| 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 { |
no outgoing calls
no test coverage detected