ValidityCheck

Trait ValidityCheck 

Source
pub(crate) trait ValidityCheck {
    // Required method
    fn is_valid(&self) -> bool;
}
Expand description

Trait for checking whether a point is on the curve.

This trait is only for debugging/testing, since it should be impossible for a curve25519-dalek user to construct an invalid point.

Required Methods§

Source

fn is_valid(&self) -> bool

Checks whether the point is on the curve. Not CT.

Implementors§