NBip32Fast 1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package NBip32Fast --version 1.0.0
NuGet\Install-Package NBip32Fast -Version 1.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="NBip32Fast" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NBip32Fast --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NBip32Fast, 1.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.
// Install NBip32Fast as a Cake Addin #addin nuget:?package=NBip32Fast&version=1.0.0 // Install NBip32Fast as a Cake Tool #tool nuget:?package=NBip32Fast&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
NBip32Fast
High perfomance BIP-32 HD key derivation library for .NET 8
Usage
Basic
var secp256k1Key = NBip32Fast.Derivation.Secp256K1.DerivePath("m/44'/0'/0'/0/0", seed).Key;
var ed25519Key = NBip32Fast.Derivation.Ed25519.DerivePath("m/44'/0'/0'/0'/0'", seed).Key;
Optimised
var master = Derivation.Ed25519.DerivePath("m/44'/888'/0'/0", seed);
var accounts = new List<byte[]>();
for (var i = 0u; i < 5u; i++)
{
accounts.Add(Derivation.Ed25519.GetPublic(Derivation.Ed25519.Derive(master, new KeyPathElement(i, true)).Key));
}
Benchmarks
SecP256K1
Method | Mean | Error | StdDev |
---|---|---|---|
NBitcoinKey | 699.54 us | 5.756 us | 4.494 us |
NBip39FastKey | 58.37 us | 0.626 us | 0.555 us |
NetezosKey | 969.39 us | 9.176 us | 7.662 us |
Ed25519
Method | Mean | Error | StdDev |
---|---|---|---|
P3HdKey | 9.932 us | 0.1545 us | 0.1290 us |
NBip32FastKey | 7.126 us | 0.0319 us | 0.0266 us |
NetezosKey | 9.242 us | 0.0867 us | 0.0677 us |
Product | Versions 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
- BouncyCastle.Cryptography (>= 2.2.1)
- Nethermind.Crypto.SecP256k1 (>= 1.1.1)
- NSec.Cryptography (>= 23.9.0-preview.3)
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 |
|
NBip32Fast.NistP256
Blazing fast NistP256 (SecP256r1) bip-32 keypath derivation subpackage |
|
DotNut
A full C# native implementation of the Cashu protocol |
GitHub repositories
This package is not used by any popular GitHub repositories.