def METHOD_NAME(self):
    g, gp = group.random(G1), group.random(G2)
    alpha, beta = group.random(ZR), group.random(ZR)
    # initialize pre-processing for generators
    g.initPP(); gp.initPP()
    h = g ** beta; f = g ** ~beta
    e_gg_alpha = pair(g, gp ** alpha)
    pk = { 'g':g, 'g2':gp, 'h':h, 'f':f, 'e_gg_alpha':e_gg_alpha }
    mk = {'beta':beta, 'g2_alpha':gp ** alpha }
    return (pk, mk)