INNER CODE UNIT · Rust
fmt
ZenGo-X/curv · src/lib.rs:26
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
ErrorKey::InvalidPublicKey => f.write_str("Invalid Public Key"),
}
}
}
impl error::Error for ErrorKey {}
#[derive(Debug)]
pub enum ErrorSS {
VerifyShareError,
}
impl fmt::Display for ErrorSS {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
ErrorSS::VerifyShareError => f.write_str("Failed verifying the Secret Share"),
}