Load an attestation from the repository by hash.
(
&self,
hash: &Hash,
)
| 1008 | |
| 1009 | /// Load an attestation from the repository by hash. |
| 1010 | pub fn load_attestation( |
| 1011 | &self, |
| 1012 | hash: &Hash, |
| 1013 | ) -> Result<atomic_core::change::Attestation, RepositoryError> { |
| 1014 | self.change_store |
| 1015 | .load_attestation(hash) |
| 1016 | .map_err(|e| RepositoryError::Database(e.to_string())) |
| 1017 | } |
| 1018 | |
| 1019 | /// Check if an attestation exists in the repository. |
| 1020 | pub fn has_attestation(&self, hash: &Hash) -> bool { |
no outgoing calls