Electrolytic coating by surface reaction