public token gen