lms_signature/lms/
error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! LMS Signing error

use std::error::Error;
use std::fmt::{Display, Formatter, Result};

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub struct LmsOutOfPrivateKeys {}

impl Display for LmsOutOfPrivateKeys {
    fn fmt(&self, f: &mut Formatter<'_>) -> Result {
        write!(f, "private key has been exhausted")
    }
}

impl Error for LmsOutOfPrivateKeys {}