To do this, you need a lot of energy, it is essentially charging a battery. If this was really feasible wouldn't we be using solar panels to separate water into hydrogen on Earth? Do solar panels in space have the potential for far greater energy output due to less atmospheric constraints?