update pub and private keys;