Add pubkey retrieving