NBip32Fast 1.0.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package NBip32Fast --version 1.0.5                
NuGet\Install-Package NBip32Fast -Version 1.0.5                
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="NBip32Fast" Version="1.0.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NBip32Fast --version 1.0.5                
#r "nuget: NBip32Fast, 1.0.5"                
#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.
// Install NBip32Fast as a Cake Addin
#addin nuget:?package=NBip32Fast&version=1.0.5

// Install NBip32Fast as a Cake Tool
#tool nuget:?package=NBip32Fast&version=1.0.5                

NBip32Fast

High perfomance BIP-32 HD key derivation library for .NET 8

Usage

Basic

var secp256k1Key = Secp256K1.Secp256K1HdKey.Instance.DerivePath("m/44'/0'/0'/0/0", seed).Key;
var nistP256Key = NistP256.NistP256HdKey.Instance.DerivePath("m/44'/0'/0'/0/0", seed).Key;
var ed25519Key = Ed25519.Ed25519HdKey.Instance.DerivePath("m/44'/0'/0'/0'/0'", seed).Key;

Optimised

var master = Ed25519.Ed25519HdKey.Instance.DerivePath("m/44'/888'/0'/0'", seed);
var accounts = new List<byte[]>();

for (var i = 0u; i < 5u; i++)
{
    accounts.Add(Ed25519.Ed25519HdKey.Instance.GetPublic(Ed25519.Ed25519HdKey.Instance.Derive(master, new KeyPathElement(i, true)).Key));
}

Benchmarks

Intel Core i9-14900K, 1 CPU, 32 logical and 24 physical cores

SecP256K1

Method Mean Error StdDev
NBip39FastKey 38.10 us 0.329 us 0.308 us
NBitcoinKey 454.49 us 0.789 us 0.700 us
NetezosKey 647.82 us 4.799 us 4.254 us

Ed25519

Method Mean Error StdDev
NBip32FastKey 4.561 us 0.0242 us 0.0227 us
NetezosKey 5.962 us 0.0300 us 0.0281 us
P3HdKey 6.264 us 0.1115 us 0.1489 us

NistP256

Method Mean Error StdDev
NBip39FastKey 163.8 us 0.26 us 0.32 us
NetezosKey 1,447.5 us 5.16 us 4.57 us

Benchmark code

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on NBip32Fast:

Package Downloads
NBip32Fast.Secp256K1

Blazing fast SecP256k1 bip-32 keypath derivation subpackage

NBip32Fast.Ed25519

Blazing fast Ed25519 bip-32 keypath derivation subpackage

DotNut

A full C# native implementation of the Cashu protocol

NBip32Fast.NistP256

Blazing fast NistP256 (SecP256r1) bip-32 keypath derivation subpackage

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.3 41 11/24/2024
2.0.2 72 11/14/2024
2.0.0 74 11/13/2024
1.0.7 146 4/11/2024
1.0.5 192 2/27/2024
1.0.4 357 2/3/2024
1.0.3 88 1/19/2024
1.0.1 77 1/17/2024
1.0.0 74 1/17/2024