src/Identities/Address.php
public static function fromPrivateKey(EccPrivateKey $privateKey, AbstractNetwork $network = null): string
    {
        $digest = Hash::ripemd160($privateKey->getPublicKey()->getBuffer());

        return (new PayToPubKeyHashAddress($digest))->getAddress($network);
    }
public static function fromPrivateKey(EccPrivateKey $privateKey, AbstractNetwork $network = null): string
    {
        $digest = Hash::ripemd160($privateKey->getPublicKey()->getBuffer());

        return (new PayToPubKeyHashAddress($digest))->getAddress($network);
    }
public static function fromPrivateKey ( EccPrivateKey $ privateKey , AbstractNetwork $ network = null ) : string { $ digest = Hash :: ripemd160 ( $ privateKey -> getPublicKey ( ) -> getBuffer ( ) ) ; return ( new PayToPubKeyHashAddress ( $ digest ) ) -> getAddress ( $ network ) ; }
Derive the address from the given private key.

@param \BitWasp\Bitcoin\Crypto\EcAdapter\Impl\PhpEcc\Key\PrivateKey $privateKey
@param ArkEcosystem\Crypto\Networks\AbstractNetwork|null            $network

@return string
Derive the address from the given private key .