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>,
)
| 86 | /// Convenience: signer trust for a DID under the policy, with the repository |
| 87 | /// identity as the default trust root. |
| 88 | pub 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 — |