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

Method load_attestation

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

Load an attestation from the repository by hash.

(
        &self,
        hash: &Hash,
    )

Source from the content-addressed store, hash-verified

1060
1061 /// Load an attestation from the repository by hash.
1062 pub fn load_attestation(
1063 &self,
1064 hash: &Hash,
1065 ) -> Result<atomic_core::change::Attestation, RepositoryError> {
1066 self.change_store
1067 .load_attestation(hash)
1068 .map_err(|e| RepositoryError::Database(e.to_string()))
1069 }
1070
1071 /// Check if an attestation exists in the repository.
1072 pub fn has_attestation(&self, hash: &Hash) -> bool {

Calls

no outgoing calls