Bulk electrolysis