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