added feature to store the generator after commitment