Trait VerifyEq

Source
pub trait VerifyEq {
    // Required method
    fn verify_eq(&self, other: &Self) -> bool;
}
Expand description

Trait for equivalence verification. Implemented for all types implementing Eq. For non-Eq types this trait provides way to implement custom equivalence verification used during commitment verification procedure.

Required Methods§

Source

fn verify_eq(&self, other: &Self) -> bool

Verifies commit-equivalence of two instances of the same type.

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.

Implementors§

Source§

impl<T> VerifyEq for T
where T: Eq,