Nethermind.Libp2p 1.1.0

dotnet add package Nethermind.Libp2p --version 1.1.0
                    
NuGet\Install-Package Nethermind.Libp2p -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Nethermind.Libp2p" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nethermind.Libp2p" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Nethermind.Libp2p" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Nethermind.Libp2p --version 1.1.0
                    
#r "nuget: Nethermind.Libp2p, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Nethermind.Libp2p@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Nethermind.Libp2p&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Nethermind.Libp2p&version=1.1.0
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed