src/Identities/PrivateKey.php
public static function fromPassphrase(string $passphrase): EcPrivateKey
    {
        $passphrase = Hash::sha256(new Buffer($passphrase));

        return (new PrivateKeyFactory())->fromHexCompressed($passphrase->getHex());
    }
public static function fromPassphrase(string $passphrase): EcPrivateKey
    {
        $passphrase = Hash::sha256(new Buffer($passphrase));

        return (new PrivateKeyFactory())->fromHexCompressed($passphrase->getHex());
    }
public static function fromPassphrase ( string $ passphrase ) : EcPrivateKey { $ passphrase = Hash :: sha256 ( new Buffer ( $ passphrase ) ) ; return ( new PrivateKeyFactory ( ) ) -> fromHexCompressed ( $ passphrase -> getHex ( ) ) ; }
Derive the private key for the given passphrase.

@param string $passphrase

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