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

Method provenance_trusted

atomic-repository/src/git_binding/trust.rs:32–34  ·  view source on GitHub ↗

May the binding's provenance/attestation roots be trusted? True only when the signature verifies, the signer is trusted under policy, and the content verified. Unknown or revoked signers always yield `false`, even with byte-perfect content.

(&self)

Source from the content-addressed store, hash-verified

30 /// policy, and the content verified. Unknown or revoked signers always
31 /// yield `false`, even with byte-perfect content.
32 pub fn provenance_trusted(&self) -> bool {
33 self.signature_valid && self.signer_trust == SignerTrust::Trusted && self.content_verified
34 }
35
36 /// May the recomputed content be used for resurrection?
37 ///

Callers 3

untrusted_reasonMethod · 0.80
exact_outcomeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected