You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
The same way that the dag API is the IPLD API, we should have a Net API that is the libp2p API. This follows proposals such as https://github.com/ipfs/interface-ipfs-core/issues/249 and the need from apps such as PeerPad to actually have access to libp2p APIs and today it is accessing IPFS internals (antipattern).
This means that a) we would remove the ipfs swarm APIs, change the scope of the PubSub API and create a new ipfs net with commands such as (example of potential calls):
ipfs.net.dial
ipfs.net.hangup
ipfs.net.pubsub.publish
ipfs.net.pubsub.subscribe
ipfs.net.pubsub.ls
ipfs.net.peerRouting.findPeers
ipfs.net.contentRouting.findProviders
ipfs.net.contentRouting.provide
and so forth..
FAQ:
Why net? - Comes from Network. IPFS exposes a Network API and uses libp2p to do so.
Why not p2p? - calling something ipfs.p2p sort of implies that everything else is not p2p, it also doesn't communicates correctly why some commands are under the p2p scope. The word Network/Net does a better job.
The text was updated successfully, but these errors were encountered:
The same way that the
dag
API is the IPLD API, we should have aNet
API that is the libp2p API. This follows proposals such as https://github.com/ipfs/interface-ipfs-core/issues/249 and the need from apps such as PeerPad to actually have access to libp2p APIs and today it is accessing IPFS internals (antipattern).This means that a) we would remove the
ipfs swarm
APIs, change the scope of the PubSub API and create a newipfs net
with commands such as (example of potential calls):FAQ:
net
? - Comes from Network. IPFS exposes a Network API and uses libp2p to do so.p2p
? - calling somethingipfs.p2p
sort of implies that everything else is not p2p, it also doesn't communicates correctly why some commands are under the p2p scope. The word Network/Net does a better job.The text was updated successfully, but these errors were encountered: