MCPcopy Create free account
hub / github.com/ddimaria/rust-blockchain-tutorial / UtilsError

Enum UtilsError

utils/src/error.rs:12–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11#[derive(Error, Debug)]
12pub 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
27pub type Result<T> = std::result::Result<T, UtilsError>;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected