update public key