use thiserror::Error;
pub struct NonceNotRotated;
pub struct NonceRotated;
pub trait NonceRotation {
type Output;
fn rotate_nonce(self) -> Result<Self::Output, NonceRotationError>;
}
#[derive(Debug, Error)]
pub enum NonceRotationError {
#[error("Nonce rotation failed")]
NonceRotationFailed,
#[error("Nonce counter overflow")]
CounterOverflow,
}