pub trait CRHF {
type Input: ?Sized;
type Output: Clone + PartialEq + Eq + Hash + Debug + CanonicalSerialize + CanonicalDeserialize;
type Error: Error;
// Required method
fn evaluate<T: Borrow<Self::Input>>(
input: T,
) -> Result<Self::Output, Self::Error>;
}
Expand description
A trait for CRHF (based on ark-primitives’ definition, but self-declared for minimal dependency and easier future upgradability.)
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.