What could go wrong?

Having such a unique barcode would have many advantages. In war soldiers could easily differentiate legitimate targets in a population from non combatants.

This could prevent mistakes in identity, mistakes that result in the deaths of innocent bystanders. Weapons systems would record the code of the use, identifying how fired which shot and leading to more accountability in the field.