import hashlib


def publicToPublicHash(keyHex):
    """ Converts a 512-bit ECDSA public key to a RIPEMD160 hash """
    ripemd160 = hashlib.new("ripemd160")
    ripemd160.update(hashlib.sha256(keyHex.decode('hex')).digest())
    return ripemd160.hexdigest()