The technology exploits the fact that individual metals have affinities for different electrical currents, called reduction potentials.