Load an attestation from the repository by hash.
(
&self,
hash: &Hash,
)
| 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 { |
no outgoing calls