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

Method content_usable

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

May the recomputed content be used for resurrection? Content validity is independent of the signer: a valid unknown signer can supply correct content (RFC §5.2, `TRUST` step applies the trust policy *after* the tree comparison succeeds).

(&self)

Source from the content-addressed store, hash-verified

39 /// can supply correct content (RFC §5.2, `TRUST` step applies the trust
40 /// policy *after* the tree comparison succeeds).
41 pub fn content_usable(&self) -> bool {
42 self.content_verified
43 }
44
45 /// Can this binding satisfy a publication gate (§10.4/§12.4)?
46 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected