public static function createFromEccKey(PrivateKeyInterface $eccKey) : self
    {
        $key = new self();
        $key->eccKey = $eccKey;

        return $key;
    }
public static function createFromEccKey(PrivateKeyInterface $eccKey) : self
    {
        $key = new self();
        $key->eccKey = $eccKey;

        return $key;
    }
public static function createFromEccKey ( PrivateKeyInterface $ eccKey ) : self { $ key = new self ( ) ; $ key -> eccKey = $ eccKey ; return $ key ; }
Create a private key from a Mdanter Ecc Private Key.

@param PrivateKeyInterface $eccKey

@return self
Create a private key from a Mdanter Ecc Private Key .