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

Method load_attestation

atomic-repository/src/repository/changes.rs:300–307  ·  view source on GitHub ↗

Load an attestation from the repository by hash.

(
        &self,
        hash: &Hash,
    )

Source from the content-addressed store, hash-verified

298
299 /// Load an attestation from the repository by hash.
300 pub fn load_attestation(
301 &self,
302 hash: &Hash,
303 ) -> Result<atomic_core::change::Attestation, RepositoryError> {
304 self.change_store
305 .load_attestation(hash)
306 .map_err(|e| RepositoryError::Database(e.to_string()))
307 }
308
309 /// Check if an attestation exists in the repository.
310 pub fn has_attestation(&self, hash: &Hash) -> bool {

Calls

no outgoing calls

Tested by 3

list_allMethod · 0.36
find_by_prefixMethod · 0.36