Wallet address verification without blockchain interaction

Web3 wallet authentication via web3.js - does web3.eth.accounts.recover interacts with real blockchain to retrieve the ethereum address or is it just an interaction with wallet to get the address?

In other words, Verifying a wallet address can be done without any interaction with the blockchain or not? Can it be done by using only cryptographic operations and interaction with wallet?

if you provide a message and a signature to this function then there is no interaction with the blockchain

you don’t have to interact with blockchain to validate a wallet address

Do we need a provider to perform authentication with wallet?
With metamask, even if I don’t provide any provider it is working but with WalletConnect it gives the error that “Provider not set or invalid”

you need to sign a message for authentication, I don’t know where from that error is with wallet connect, in order to sign a message you don’t connect to the blockchain, but you could use a wallet application to sign that message like metamask

From web3.js, while initializing a web3 object it requires a provider and for walletconnect it has to be either infura or custom RPC nodes. So, my question is that even for connecting to wallet via walletconnect requires me to specify a provider/rpc node.

wallet connect may require that RPC url for other reasons, a RPC url is not needed to sign a message