pub(crate) fn new(
        curve: EcCurve,
        public_key: &EcPointRef,
    ) -> Result<Self, openssl::error::ErrorStack> {
        let group: EcGroup = curve.try_into()?;

        Ok(Self {
            key: EcKey::from_public_key(&group, public_key)?,
            curve,
        })
    }
/// Create the EcDSA public key from the elliptic curve and the public point
Create the EcDSA public key from the elliptic curve and the public point
Create the EcDSA public key from the elliptic curve and the public point
pub(crate) fn new(
        curve: EcCurve,
        public_key: &EcPointRef,
    ) -> Result<Self, openssl::error::ErrorStack> {
        let group: EcGroup = curve.try_into()?;
        Ok(Self {
            key: EcKey::from_public_key(&group, public_key)?,
            curve,
        })
    }
pub ( crate ) fn new ( curve : EcCurve , public_key : & EcPointRef , ) -> Result < Self , openssl :: error :: ErrorStack > { let group : EcGroup = curve . try_into ( ) ? ; Ok ( Self { key : EcKey :: from_public_key ( & group , public_key ) ? , curve , } ) }
Create the EcDSA public key from the elliptic curve and the public point
Create the EcDSA public key from the elliptic curve and the public point
curve
EcCurve
public_key
&EcPointRef
curve
EcCurve
public_key
&EcPointRef