forked from cerc-io/ipld-eth-server
.. | ||
.travis.yml | ||
codecov.yml | ||
error.go | ||
go.mod | ||
interface.go | ||
LICENSE | ||
Makefile | ||
package.json | ||
README.md |
go-libp2p-interface-pnet
An interface providing abstraction of swarm protection for libp2p.
Table of Contents
Usage
Core of this interface in Protector
that is used to protect the swarm.
It makes decisions about which streams are allowed to pass.
This interface is accepted in multiple places in libp2p but most importantly in
go-libp2p-swarm NewSwarmWithProtector
and NewNetworkWithProtector
.
Implementations:
- go-libp2p-pnet - simple PSK based Protector, using XSalsa20
Contribute
PRs are welcome!
Small note: If editing the Readme, please conform to the standard-readme specification.
License
MIT © Jeromy Johnson