A minimal retrieve-only bitswap client
This client implements a minimal bitswap session that allows retrieval of CIDs from a single known peer.
import (
bitswap "github.com/willscott/go-selfish-bitswap-client"
)
session := bitswap.New(libp2p.Host, peer.ID)
defer session.Close()
bytes, err := session.Get(cid.Cid)
Contributions are welcome! This repository is governed by the ipfs contributing guidelines.