src/Identities/Address.php
public static function fromPublicKey(string $publicKey, $network = null): string
    {
        $network = $network ?? NetworkConfiguration::get();

        $ripemd160 = Hash::ripemd160(PublicKey::fromHex($publicKey)->getBuffer());
        $seed = Writer::bit8(Helpers::version($network)).$ripemd160->getBinary();

        return Base58::encodeCheck(new Buffer($seed));
    }
public static function fromPublicKey(string $publicKey, $network = null): string
    {
        $network = $network ?? NetworkConfiguration::get();

        $ripemd160 = Hash::ripemd160(PublicKey::fromHex($publicKey)->getBuffer());
        $seed = Writer::bit8(Helpers::version($network)).$ripemd160->getBinary();

        return Base58::encodeCheck(new Buffer($seed));
    }
public static function fromPublicKey ( string $ publicKey , $ network = null ) : string { $ network = $ network ?? NetworkConfiguration :: get ( ) ; $ ripemd160 = Hash :: ripemd160 ( PublicKey :: fromHex ( $ publicKey ) -> getBuffer ( ) ) ; $ seed = Writer :: bit8 ( Helpers :: version ( $ network ) ) . $ ripemd160 -> getBinary ( ) ; return Base58 :: encodeCheck ( new Buffer ( $ seed ) ) ; }
Derive the address from the given public key.

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

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