winterwallet_core/
error.rs1#[derive(Debug)]
3pub enum WinternitzError {
4 InvalidMnemonic,
7 InvalidLength,
10 SignatureError,
12}
13
14impl core::fmt::Display for WinternitzError {
15 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
16 match self {
17 Self::InvalidMnemonic => write!(f, "invalid BIP-39 mnemonic"),
18 Self::InvalidLength => write!(f, "byte length does not match expected size"),
19 Self::SignatureError => write!(f, "signature verification failed"),
20 }
21 }
22}
23
24impl core::error::Error for WinternitzError {}