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