Trait ethers::signers::yubihsm::ecdsa::sec1::ValidatePublicKey [−][src]
pub trait ValidatePublicKey: Curve where
<<Self::UInt as ArrayEncoding>::ByteSize as Add<<Self::UInt as ArrayEncoding>::ByteSize>>::Output: Add<UInt<UTerm, B1>>,
<<Self::UInt as ArrayEncoding>::ByteSize as Add<<Self::UInt as ArrayEncoding>::ByteSize>>::Output: ArrayLength<u8>,
<<<Self::UInt as ArrayEncoding>::ByteSize as Add<<Self::UInt as ArrayEncoding>::ByteSize>>::Output as Add<UInt<UTerm, B1>>>::Output: ArrayLength<u8>, {
fn validate_public_key(
secret_key: &SecretKey<Self>,
public_key: &EncodedPoint<Self>
) -> Result<(), Error> { ... }
}
Expand description
Validate that the given EncodedPoint
represents the encoded public key
value of the given secret.
Curve implementations which also impl ProjectiveArithmetic
will receive
a blanket default impl of this trait.
Provided methods
fn validate_public_key(
secret_key: &SecretKey<Self>,
public_key: &EncodedPoint<Self>
) -> Result<(), Error>
fn validate_public_key(
secret_key: &SecretKey<Self>,
public_key: &EncodedPoint<Self>
) -> Result<(), Error>
Validate that the given EncodedPoint
is a valid public key for the
provided secret value.