celestia_types/
validate.rs

1use crate::consts::appconsts::AppVersion;
2use crate::ValidationError;
3
4/// A trait to perform basic validation of the data consistency.
5pub trait ValidateBasic {
6    /// Perform a basic validation of the data consistency.
7    fn validate_basic(&self) -> Result<(), ValidationError>;
8}
9
10/// A trait to perform basic validation of the data consistency.
11pub trait ValidateBasicWithAppVersion {
12    /// Perform a basic validation of the data consistency.
13    fn validate_basic(&self, app_version: AppVersion) -> Result<(), ValidationError>;
14}