add public key to index