Load an attestation from the repository by hash.
(
&self,
hash: &Hash,
)
| 722 | |
| 723 | /// Load an attestation from the repository by hash. |
| 724 | pub fn load_attestation( |
| 725 | &self, |
| 726 | hash: &Hash, |
| 727 | ) -> Result<atomic_core::change::Attestation, RepositoryError> { |
| 728 | self.change_store |
| 729 | .load_attestation(hash) |
| 730 | .map_err(|e| RepositoryError::Database(e.to_string())) |
| 731 | } |
| 732 | |
| 733 | /// Check if an attestation exists in the repository. |
| 734 | pub fn has_attestation(&self, hash: &Hash) -> bool { |
no outgoing calls