This package contains the network middleware to abstract libp2p for the Topology Protocol.
To do so, we define a TopologyNetworkNode
where we can pass the configs that we want and it "magically" configures libp2p and gives connectivity to the Topology Network.
This package is intended to be used as a dependency for the Topology Protocol. However, you can use it as a standalone package. For that, you can install it using:
# yarn
yarn add @topology-foundation/network
# npm
npm install @topology-foundation/network
To build the package, you can run:
yarn build
To run the tests, you can run:
yarn test