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

Method load_attestation

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

Load an attestation from the repository by hash.

(
        &self,
        hash: &Hash,
    )

Source from the content-addressed store, hash-verified

702
703 /// Load an attestation from the repository by hash.
704 pub fn load_attestation(
705 &self,
706 hash: &Hash,
707 ) -> Result<atomic_core::change::Attestation, RepositoryError> {
708 self.change_store
709 .load_attestation(hash)
710 .map_err(|e| RepositoryError::Database(e.to_string()))
711 }
712
713 /// Check if an attestation exists in the repository.
714 pub fn has_attestation(&self, hash: &Hash) -> bool {

Calls

no outgoing calls