Hey everyone,
I just put together this 3D world (chainofchains.space) using an AI tool. I’m looking to add an important feature: allowing all the nodes on BTC or other blockchains to log in and verify their identities. That way, people can check out the node info straight from this universe I’ve created.
AFAIK it's impossible. Current Bitcoin P2P Networking[1] doesn't seem to have any call to request arbitrary data (which could be stored to request proof of identity). And while i don't know what you're trying to achieve, have you checked bitnodes website[2]? They collect and combine data they could get from other Bitcoin nodes.
[1] https://developer.bitcoin.org/reference/p2p_networking.html#version
[2] https://bitnodes.io/
What is the benefit of that for the person running that node?
If all you want to represent is that node's information then they don't need to do anything. As ABCbits said, it is pretty much what sites like bitnodes do:
Peer discovery
Initial connection to seed nodes to fetch a bunch of reliable nodes' IP addresses followed by building an addr database (send getaddr and save each addr message they respond with)
Handshake
Sending the version and verack to receive the other node's version message
Parsing version message
This message contains the necessary information about the node like their IP & port, the services they provide, protocol version, client name and version, etc.
There is no reason to request identifiers from Bitcoin nodes. Get it from a Bitcoin wallet or browser extension. Since native Bitcoin doesn't have such a feature, use Lightning Network integration or (dare I say it) WalletConnect.