Load an attestation from the repository by hash.
(
&self,
hash: &Hash,
)
| 702 | |
| 703 | /// Load an attestation from the repository by hash. |
| 704 | pub fn load_attestation( |
| 705 | &self, |
| 706 | hash: &Hash, |
| 707 | ) -> Result<atomic_core::change::Attestation, RepositoryError> { |
| 708 | self.change_store |
| 709 | .load_attestation(hash) |
| 710 | .map_err(|e| RepositoryError::Database(e.to_string())) |
| 711 | } |
| 712 | |
| 713 | /// Check if an attestation exists in the repository. |
| 714 | pub fn has_attestation(&self, hash: &Hash) -> bool { |
no outgoing calls