Load an attestation from the repository by hash.
(
&self,
hash: &Hash,
)
| 1060 | |
| 1061 | /// Load an attestation from the repository by hash. |
| 1062 | pub fn load_attestation( |
| 1063 | &self, |
| 1064 | hash: &Hash, |
| 1065 | ) -> Result<atomic_core::change::Attestation, RepositoryError> { |
| 1066 | self.change_store |
| 1067 | .load_attestation(hash) |
| 1068 | .map_err(|e| RepositoryError::Database(e.to_string())) |
| 1069 | } |
| 1070 | |
| 1071 | /// Check if an attestation exists in the repository. |
| 1072 | pub fn has_attestation(&self, hash: &Hash) -> bool { |
no outgoing calls