generator: add hash keys generation for callbacks