Can I use IPFS DHT to store arbitrary key-value pairs?
- Dominant language
- Go
- Stars
- 17.1k
- Forks
- 3.2k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 11
Description
I basically want to store key-value pairs in the distributed network and later retrieve value for a specific key. A related topic is already discussed here https://github.com/ipfs/notes/issues/4 but I am not sure about the current implementation status of it.
I understand IPFS stores the hash to object/block mapping in DHT using this package https://github.com/ipfs/go-ipfs/blob/master/routing/dht/dht.go. So I am wondering whether I can use the same DHT package to store my own key-value pairs. But my keys won't be hash of the value that I store in the DHT. As this is contrary to how IPFS uses the DHT I am not sure whether I can do this or will it create any problem in how IPFS functions.
So can someone tell me whether I can use the IPFS DHT to store arbitrary key-value pairs or is there a better way to do.
Contributor guide
Assessment
This issue has not been assessed yet.