adds public key to request