Nethermind.Libp2p
1.1.0
dotnet add package Nethermind.Libp2p --version 1.1.0
NuGet\Install-Package Nethermind.Libp2p -Version 1.1.0
<PackageReference Include="Nethermind.Libp2p" Version="1.1.0" />
<PackageVersion Include="Nethermind.Libp2p" Version="1.1.0" />
<PackageReference Include="Nethermind.Libp2p" />
paket add Nethermind.Libp2p --version 1.1.0
#r "nuget: Nethermind.Libp2p, 1.1.0"
#:package Nethermind.Libp2p@1.1.0
#addin nuget:?package=Nethermind.Libp2p&version=1.1.0
#tool nuget:?package=Nethermind.Libp2p&version=1.1.0
The libp2p stack
The entry point API for libp2p
Derive from Libp2pPeerFactoryBuilder to customize individual stack choices while
inheriting the standard negotiation order and wiring. Override Identify,
IdentifyPush or Ping to replace a core protocol, or return null to omit it.
Automatic Identify and Push dials use the installed protocol's standard wire
identifier. Replacements should keep that identifier and implement
ISessionProtocol for Identify or ISessionProtocol<ulong, ulong> for Push.
Omitting either protocol also omits its automatic dials.
Override StreamTransports, DatagramTransports, Encryption, Muxers, Relay
or Pubsub to return the protocols offered by that layer, in order.
Datagram transports connect directly to the application selector; stream
transports use security and multiplexing negotiation. An empty transport set
omits that transport family. An empty security or multiplexer set leaves no
protocol to negotiate on stream transports.
For example, this builder omits Ping and offers only TCP, keeping the rest of the standard stack:
public class TcpPeerFactoryBuilder(IServiceProvider provider)
: Libp2pPeerFactoryBuilder(provider)
{
protected override ProtocolRef? Ping() => null;
protected override ProtocolRef[] StreamTransports() => [Get<IpTcpProtocol>()];
protected override ProtocolRef[] DatagramTransports() => [];
}
Register a derived builder with services.AddLibp2p<TcpPeerFactoryBuilder>().
The existing With* options continue to control the base hook implementations.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Libp2p.Protocols.KadDht (>= 1.1.0)
- Microsoft.Extensions.DependencyInjection (>= 10.0.0)
- Microsoft.Extensions.Logging (>= 10.0.0)
- Microsoft.Extensions.Logging.Console (>= 10.0.0)
- Nethermind.Libp2p.Core (>= 1.1.0)
- Nethermind.Libp2p.Protocols.Identify (>= 1.1.0)
- Nethermind.Libp2p.Protocols.IpTcp (>= 1.1.0)
- Nethermind.Libp2p.Protocols.MDns (>= 1.1.0)
- Nethermind.Libp2p.Protocols.Multistream (>= 1.1.0)
- Nethermind.Libp2p.Protocols.Noise (>= 1.1.0)
- Nethermind.Libp2p.Protocols.Ping (>= 1.1.0)
- Nethermind.Libp2p.Protocols.Plaintext (>= 1.1.0)
- Nethermind.Libp2p.Protocols.Pubsub (>= 1.1.0)
- Nethermind.Libp2p.Protocols.PubsubPeerDiscovery (>= 1.1.0)
- Nethermind.Libp2p.Protocols.Relay (>= 1.1.0)
- Nethermind.Libp2p.Protocols.RequestResponse (>= 1.1.0)
- Nethermind.Libp2p.Protocols.Tls (>= 1.1.0)
- Nethermind.Libp2p.Protocols.WebRtc (>= 1.1.0)
- Nethermind.Libp2p.Protocols.WebSockets (>= 1.1.0)
- Nethermind.Libp2p.Protocols.Yamux (>= 1.1.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Nethermind.Libp2p:
| Package | Downloads |
|---|---|
|
STTech.BytesIO.P2P
这是一个基于 Libp2p 协议的 .NET P2P 字节流通信库,作为 STTech.BytesIO 的扩展库,提供了统一的编程模型。 支持 TCP/QUIC 传输、Noise/TLS 加密、DHT 节点发现、Relay 中继穿透等 P2P 网络特性。 通过 PeerClient 和 BootstrapServer 两个核心类,快速构建去中心化点对点通信应用。 |
|
|
GeniusLoci.Common
Common startup and discovery |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Nethermind.Libp2p:
| Repository | Stars |
|---|---|
|
NethermindEth/nethermind
A robust, high-performance execution client for Ethereum node operators.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.0 | 33 | 10/20/2026 |
| 1.0.5 | 77 | 10/19/2026 |
| 1.0.4 | 103 | 10/15/2026 |
| 1.0.3 | 107 | 10/6/2026 |
| 1.0.2 | 98 | 10/3/2026 |
| 1.0.1 | 94 | 10/2/2026 |
| 1.0.0 | 105 | 10/1/2026 |
| 1.0.0-preview.51 | 6,266 | 11/11/2025 |
| 1.0.0-preview.50 | 177 | 11/7/2025 |
| 1.0.0-preview.49 | 219 | 11/6/2025 |
| 1.0.0-preview.48 | 208 | 11/6/2025 |
| 1.0.0-preview.45 | 1,958,929 | 5/13/2025 |
| 1.0.0-preview.44 | 1,154 | 5/9/2025 |
| 1.0.0-preview.43 | 164 | 5/9/2025 |
| 1.0.0-preview.37 | 203 | 2/18/2025 |
| 1.0.0-preview.36 | 46,166 | 2/10/2025 |
| 1.0.0-preview.35 | 218 | 2/10/2025 |
| 1.0.0-preview.34 | 50,466 | 10/24/2024 |
| 1.0.0-preview.33 | 11,563 | 9/11/2024 |
| 1.0.0-preview.32 | 232 | 9/9/2024 |