Terminology question: Peer Store versus DHT #3380
Unanswered
ross-spencer
asked this question in
Q&A
Replies: 2 comments 3 replies
-
The peer store is a local database for your local view of peers on the network. The DHT is a distributed database. If you know all the peers on the network, then you should load those identities into the peer store. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Once you have your [Host](https://pkg.go.dev/github.com/libp2p/[email protected]/core/host#Host) you can call `.Peerstore()`. Refer to the go docs from there.;
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Quite new to libp2p and have been doing a lot of reading and trying to understand the examples but it's slow going.
I have a closed network that will be max 100 nodes (known IP and ports -- their identity might be changed manually and updated dynamically (and cryptographically validated) outside of the node's init functions.
I believe, at a minimum,
This will then allow me to connect each node to each other node and data can be sent to all.
i.e. that each node becomes a bootstrap node, and also a "participating" node? (again terminology might not be right)
Does the terminology here sound correct? And is is a DHT the same as a Peer Store? Do I load identities into a DHT, or a Peer Store?
One similar demo app in the code-base is the routed-echo, is that a good point of reference for this type of app?
Beta Was this translation helpful? Give feedback.
All reactions