pub fn new_from_public_key(
        hash_alg: HashType,
        curve: EllipticCurveType,
        encoding: EcdsaSignatureEncoding,
        public_key: EcdsaPublicKey,
    ) -> Result<Self, TinkError> {
        let encoding = super::validate_ecdsa_params(hash_alg, curve, encoding)
            .map_err(|e| wrap_err("EcdsaVerifier", e))?;
        Ok(EcdsaVerifier {
            public_key,
            encoding,
        })
    }
/// Create a new instance of [`EcdsaVerifier`] from a public key.
Create a new instance of [`EcdsaVerifier`] from a public key.
Create a new instance of [ ` EcdsaVerifier ` ] from a public key .
pub fn new_from_public_key(
        hash_alg: HashType,
        curve: EllipticCurveType,
        encoding: EcdsaSignatureEncoding,
        public_key: EcdsaPublicKey,
    ) -> Result<Self, TinkError> {
        let encoding = super::validate_ecdsa_params(hash_alg, curve, encoding)
            .map_err(|e| wrap_err("EcdsaVerifier", e))?;
        Ok(EcdsaVerifier {
            public_key,
            encoding,
        })
    }
pub fn new_from_public_key ( hash_alg : HashType , curve : EllipticCurveType , encoding : EcdsaSignatureEncoding , public_key : EcdsaPublicKey , ) -> Result < Self , TinkError > { let encoding = super :: validate_ecdsa_params ( hash_alg , curve , encoding ) . map_err ( | e | wrap_err ( " " , e ) ) ? ; Ok ( EcdsaVerifier { public_key , encoding , } ) }
Create a new instance of [`EcdsaVerifier`] from a public key.
Create a new instance of [ ` EcdsaVerifier ` ] from a public key .
hash_alg
HashType
curve
EllipticCurveType
encoding
EcdsaSignatureEncoding
public_key
EcdsaPublicKey