Re: Info about PEERSTORE service
Christian Grothoff <[email protected]> Thu, 1 Feb 2024 22:42:26 +0100
| Newsgroups | gmane.network.gnunet.general |
|---|---|
| Message-ID | <[email protected]> |
Hi BB, Peerstore is just a local database for information a peer keeps about other peers (by their PeerIds, and yes, that's what you get as the CORE ID and via the connect callbacks), it is *not* a DHT. The DHT is a separate subsystem. As it is the local (trusted) code storing information locally, the expiration time is whatever the local code wants it to be. I *think* the current implementation _may_ have a value size limit around 64k, but in principle that could be fixed if desired. I hope this answers your questions! Happy hacking! Christian On 2/1/24 21:29, Big Boy wrote: > Good day, I looked at the current documentation of GNUnet and I have > some questions regarding the PEERSTORE service: > - how is the PEERSTORE supposed to work? Is it like a DHT, where some > info is kept on each peer? Is it a reference of the said information > kept locally on each peer? I looked at the bibliography available and I > haven't yet seen a reference regarding how the peerstore service is > supposed to work. > - what is the maximum size of the stored data in a key? And is there a > TTL similar to DHT for stored data? > - what PeerIdentity can I use in order to store data as signed? I would > imagine that the CORE identity that's created during the connects() > method could work, but does it remain the same for each peer or is it > changing constantly? > > Thank you in advance!