def METHOD_NAME(xpub: str) -> str:
    """
    Get the public key as a string from the extended public key.
    :param xpub: The extended pubkey
    :return: The pubkey hex string
    """
    data = decode(xpub)
    pubkey = data[-36:-4]
    return hexlify(pubkey).decode()