src/Identities/PrivateKey.php
public static function fromWif(string $wif, AbstractNetwork $network = null): EcPrivateKey
    {
        return (new PrivateKeyFactory())->fromWif($wif, $network);
    }
public static function fromWif(string $wif, AbstractNetwork $network = null): EcPrivateKey
    {
        return (new PrivateKeyFactory())->fromWif($wif, $network);
    }
public static function fromWif ( string $ wif , AbstractNetwork $ network = null ) : EcPrivateKey { return ( new PrivateKeyFactory ( ) ) -> fromWif ( $ wif , $ network ) ; }
Derive the private key for the given WIF.

@param string                                             $wif
@param \ArkEcosystem\Crypto\Networks\AbstractNetwork|null $network

@return \BitWasp\Bitcoin\Crypto\EcAdapter\Impl\PhpEcc\Key\PrivateKey
Derive the private key for the given WIF .