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

Function signer_trust_for

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

Convenience: signer trust for a DID under the policy, with the repository identity as the default trust root.

(
    policy: &GitTrustConfig,
    signer_did: &str,
    repository_identity: Option<&str>,
)

Source from the content-addressed store, hash-verified

86/// Convenience: signer trust for a DID under the policy, with the repository
87/// identity as the default trust root.
88pub fn signer_trust_for(
89 policy: &GitTrustConfig,
90 signer_did: &str,
91 repository_identity: Option<&str>,
92) -> SignerTrust {
93 policy.evaluate(signer_did, repository_identity)
94}
95
96/// Provenance roots explicitly marked untrusted: the evaluation result a
97/// publication gate consumes. The roots themselves are returned unchanged —

Callers

nothing calls this directly

Calls 1

evaluateMethod · 0.45

Tested by

no test coverage detected