NBip32Fast 1.0.7

dotnet add package NBip32Fast --version 1.0.7                
NuGet\Install-Package NBip32Fast -Version 1.0.7                
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.7" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NBip32Fast --version 1.0.7                
#r "nuget: NBip32Fast, 1.0.7"                
#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.7

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

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

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on NBip32Fast:

Package Downloads
DotNut

A full C# native implementation of the Cashu protocol

NBip32Fast.Secp256K1

Blazing fast SecP256k1 bip-32 keypath derivation subpackage

NBip32Fast.Ed25519

Blazing fast Ed25519 bip-32 keypath derivation subpackage

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
1.0.7 141 4/11/2024
1.0.5 190 2/27/2024
1.0.4 356 2/3/2024
1.0.3 85 1/19/2024
1.0.1 76 1/17/2024
1.0.0 73 1/17/2024