I want to create a mobile app which can connect to devices having the same app installed without having a server in between. The devices should act as server and client and discover nodes similar to them , like how it happens in block chain?i firstly want to know the discovery protocol that how these devices will discover each other . I have seen the samples of sockets , TCP connection but they know the ip address before , in my case we donot know the ip address , have to discover similar nodes also with security like cryptography happens in block chain so , random device don't mess up with my chain
Asked
Active
Viewed 63 times
1
-
1This may help to start the journey https://blog.harmony.one/peer-discovery-in-harmony-network/ and https://developer.bitcoin.org/devguide/p2p_network.html – kj-crypto Apr 10 '22 at 06:57
-
Great information thanks – kashyap jain Apr 11 '22 at 06:10
1 Answers
0
I am starting to learn about it, and one of the first things that came to my mind is RPC, because is how Bitcoin works: link, and you can check also de P2P section in the link.
I will follow this and update my answer with the things I'll find.
Good luck.

Rodrigo Doe
- 71
- 6
-
sure thank you, also the initial nodes are hardcoded in the bitcoin core . but i dont want to hardcode , want to create some kind of discovery protocol which would map to the device by ip and mac address maybe , something like this – kashyap jain Apr 11 '22 at 04:07
-
-