Trait sov_rollup_interface::zk::ValidityCondition
source · pub trait ValidityCondition: Serialize + DeserializeOwned + BorshDeserialize + BorshSerialize + Debug + Clone + Copy + PartialEq + Send + Sync + Eq {
type Error: Into<Error>;
// Required method
fn combine<H: Digest>(&self, rhs: Self) -> Result<Self, Self::Error>;
}
Expand description
This trait is implemented on the struct/enum which expresses the validity condition
Required Associated Types§
sourcetype Error: Into<Error>
type Error: Into<Error>
The error type returned when two ValidityCondition
s cannot be combined.