adding public key generator
test fixes