Hi! I am a student who wants to study p2p networks using libp2p, but I am lost for where to start now.
I want to know for following resources to begin adopting the technology:
By default, libp2p transports are “upgraded” with a multiplexer and a security option. For the time being, that security option is our own secio. Eventually, we aim to make it TLS1.3. Off the bat, you’ve got security!
Adding high level subsystems like the DHT is actually pretty straightforward, too! Construct a new DHT object wrapping your host and you’re more or less off to the races. One thing I’d add is it’s useful to call Bootstrap to start populating your routing table with random peers! From there you can enjoy the DHT’s API for making Put, Get, and Provide calls.
As a go-libp2p contributor, I’m quite a bit less familiar with the JavaScript side of things, but they’ve got a quite complete implementation as well! Perhaps @jacobheun or @vasco-santos could provide some color!
There’s a basic chat example for js at https://github.com/libp2p/js-libp2p/tree/v0.25.0-rc.5/examples/chat. TCP would need to get removed from the configuration in order to not break in the browsers. DHT is already added in the config, it just needs to be turned on and configured there.
There’s an overview of what peer ids are all about at https://docs.libp2p.io/concepts/peer-id/ - let me know if anything is confusing there or if you have other questions! Some of the links might be to stub articles - I’m working on filling in the blanks now.
Thank you @yusef I think it would be better if there is a description on how public/private key is used to identify oneself using an example(e.g. chat).
Also, information for multiaddress(multiaddr) is scarce. even in glossary the separate link goes to the glossary itself. Can you describe more on its use or definition in the glossary? or is the link for multiaddress is in WIP?
Hi @raul , I am trying to get chat functionality in a matrimonial app ( made in Golang n Flutter) that me and my friends are trying to build… but have no idea about making chat service and using libp2p would actually be a dream come true