Skip to content

willscott/go-selfish-bitswap-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selfish Bitswap Client

A minimal retrieve-only bitswap client

This client implements a minimal bitswap session that allows retrieval of CIDs from a single known peer.

Documentation

Usage

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)

Lead Maintainer

willscott

Contributing

Contributions are welcome! This repository is governed by the ipfs contributing guidelines.

License

SPDX-License-Identifier: Apache-2.0 OR MIT

About

A minimal bitswap client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published