AetherNet.BitTorrent 3.0.0

dotnet add package AetherNet.BitTorrent --version 3.0.0
                    
NuGet\Install-Package AetherNet.BitTorrent -Version 3.0.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="AetherNet.BitTorrent" Version="3.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AetherNet.BitTorrent" Version="3.0.0" />
                    
Directory.Packages.props
<PackageReference Include="AetherNet.BitTorrent" />
                    
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 AetherNet.BitTorrent --version 3.0.0
                    
#r "nuget: AetherNet.BitTorrent, 3.0.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 AetherNet.BitTorrent@3.0.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=AetherNet.BitTorrent&version=3.0.0
                    
Install as a Cake Addin
#tool nuget:?package=AetherNet.BitTorrent&version=3.0.0
                    
Install as a Cake Tool

AetherNet.BitTorrent

A from-scratch, interoperable BitTorrent implementation for .NET — the real protocol, not a look-alike. It speaks bencode, .torrent/magnet parsing, the SHA-1 info-hash, the BEP-3 peer-wire with rarest-first piece selection, HTTP + UDP trackers (BEP-3/15/23), Mainline DHT + PEX + ut_metadata (BEP-5/11/9/10), µTP (BEP-29), and BitTorrent v2 SHA-256 merkle hashing (BEP-52). Verified against MonoTorrent: given the same file, both compute the identical info-hash, so any real torrent client interoperates with it.

dotnet add package AetherNet.BitTorrent
using AetherNet.BitTorrent.Metainfo;

// Build a .torrent from a single file, then read back its info-hash
byte[] torrent = TorrentBuilder.CreateSingleFile("release.iso", fileBytes, pieceLength: 262144);
TorrentMetainfo meta = TorrentMetainfo.Parse(torrent);
Console.WriteLine(meta.InfoHashV1Hex);   // 40-hex SHA-1 — identical to any real BitTorrent client

// Parse a magnet link
MagnetLink magnet = MagnetLink.Parse("magnet:?xt=urn:btih:...");
Console.WriteLine(magnet.InfoHashV1Hex);

Part of aether-protocol — an open-source, offline-first mesh networking protocol. See the BitTorrent section for how a node joins a real swarm and bridges content into the offline mesh; AetherNet.BitTorrent.Gateway provides that mesh bridge.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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.
  • net10.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on AetherNet.BitTorrent:

Package Downloads
AetherNet.BitTorrent.Gateway

Gateway bridging external BitTorrent swarms into the AetherNet mesh: translates BitTorrent (SHA-1) pieces to AetherNet SHA-256 content chunks and back, so an internet-connected node can ingest a torrent and re-seed it to offline peers over the mesh chunk protocol.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.0 147 7/18/2026