Application of electrolysis