pub trait ValidatePublicKey{
// Provided method
fn validate_public_key(
secret_key: &SecretKey<Self>,
public_key: &Sec1Point<Self>,
) -> Result<()> { ... }
}Expand description
Validate that the given Sec1Point represents the encoded public key
value of the given secret.
Curve implementations which also impl CurveArithmetic will receive a blanket default impl of
this trait.
Provided 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.
Implementors§
impl<C> ValidatePublicKey for Cwhere
C: CurveArithmetic,
AffinePoint<C>: FromSec1Point<C> + ToSec1Point<C>,
FieldBytesSize<C>: ModulusSize,
Available on crate feature
arithmetic only.