| 10 | |
| 11 | #[derive(Error, Debug)] |
| 12 | pub enum UtilsError { |
| 13 | #[error("Conversion error: {0}")] |
| 14 | ConversionError(String), |
| 15 | |
| 16 | #[error("Could not create message: {0}")] |
| 17 | CreateMessage(String), |
| 18 | |
| 19 | #[error("Error recovering key: {0}")] |
| 20 | RecoverError(String), |
| 21 | |
| 22 | #[error("Error verifying signature: {0}")] |
| 23 | VerifyError(String), |
| 24 | } |
| 25 | |
| 26 | /// Utility result type to be used throughout |
| 27 | pub type Result<T> = std::result::Result<T, UtilsError>; |
nothing calls this directly
no outgoing calls
no test coverage detected