Modern BC uses the hash of the public key so the attacker needs to wait until you submit a tx to a miner then front run you