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

Method load_attestation

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

Load an attestation from the repository by hash.

(
        &self,
        hash: &Hash,
    )

Source from the content-addressed store, hash-verified

1008
1009 /// Load an attestation from the repository by hash.
1010 pub fn load_attestation(
1011 &self,
1012 hash: &Hash,
1013 ) -> Result<atomic_core::change::Attestation, RepositoryError> {
1014 self.change_store
1015 .load_attestation(hash)
1016 .map_err(|e| RepositoryError::Database(e.to_string()))
1017 }
1018
1019 /// Check if an attestation exists in the repository.
1020 pub fn has_attestation(&self, hash: &Hash) -> bool {

Calls

no outgoing calls