probe-lab / zikade

A Go implementation of the libp2p Kademlia DHT specification
Other
10 stars 3 forks source link

Provide Interface #41

Open iand opened 1 year ago

iand commented 1 year ago

Description

Update dependencies EVERYWHERE (https://github.com/ipfs/kubo, https://github.com/libp2p/go-libp2p, https://github.com/libp2p/go-libp2p-kad-dht, https://github.com/libp2p/go-libp2p-routing-helpers, https://github.com/ipfs/go-ipfs-provider, etc.) and make sure to have the DHT responsible to Reprovide content (where necessary).

It shouldn’t be to IPFS implementations (Kubo) to handle persistence in the different content routers.

The proposed interface contains the following functions StartProvide([]cid.Cid) error, StopProvide([]cid.Cid) error, ListProvide() []cid.Cid or similar. The interface still needs to be discussed with other stakeholders.

guillaumemichel commented 1 year ago

see https://github.com/libp2p/go-libp2p/issues/2175, https://github.com/libp2p/go-libp2p-kad-dht/issues/824, https://github.com/ipfs/go-ipfs-provider/issues/49