ChainSafe / js-libp2p-noise

Noise libp2p handshake for js-libp2p
Other
37 stars 30 forks source link

feat: add service capabilities definition #429

Closed achingbrain closed 4 months ago

achingbrain commented 4 months ago

The latest libp2p release allows services to declare their capabilities (what they provide to the node) and their dependencies (the capabilities they require other services to provide for the config to be "valid").

Adds the serviceCapabilities symbol property that says Noise provides the @libp2p/connection-encryption capability and also that it provides noise encryption as some transports (WebTransport, WebRTC) now require this module to be configured alongside them.