chia-dotnet-bls
1.3.2
See the version list below for details.
dotnet add package chia-dotnet-bls --version 1.3.2
NuGet\Install-Package chia-dotnet-bls -Version 1.3.2
<PackageReference Include="chia-dotnet-bls" Version="1.3.2" />
paket add chia-dotnet-bls --version 1.3.2
#r "nuget: chia-dotnet-bls, 1.3.2"
// Install chia-dotnet-bls as a Cake Addin #addin nuget:?package=chia-dotnet-bls&version=1.3.2 // Install chia-dotnet-bls as a Cake Tool #tool nuget:?package=chia-dotnet-bls&version=1.3.2
chia-dotnet-bls
.NET BLS Library
Introduction
Many thanks to Rigidity who's code this is a direct port of and and helped immensely along the way.
This is a direct port of the chia bls typescript library. Coding style and naming have been converted to C# conventions but otherwise it is very similar in API.
See Also
Example Usage
using chia.dotnet.bls;
using dotnetstandard_bip39; // https://www.nuget.org/packages/dotnetstandard-bip39/
const string MNEMONIC = "abandon abandon abandon";
const string MESSAGE = "hello world";
// create a secret key from a mnemonic
var bip39 = new BIP39();
var seed = bip39.MnemonicToSeedHex(MNEMONIC, "");
var sk = PrivateKey.FromSeed(seed);
// sign the message
var signature = sk.Sign(MESSAGE);
// verify the signature
var pk = sk.GetG1();
var result = pk.Verify(MESSAGE, signature);
Console.WriteLine($"Signature is valid: {result}");
chia and its logo are the registered trademark or trademark of Chia Network, Inc. in the United States and worldwide.
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. |
-
net8.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on chia-dotnet-bls:
Package | Downloads |
---|---|
chia-dotnet-clvm
A dotnet native Chia CLVM implementation |
|
chia-dotnet-wallet
.NET implementation of chia wallet |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.8-alpha.1 | 83 | 4/2/2024 |
1.3.2 | 334 | 2/2/2024 |
Version 1.3.2 Fix signed bug in Decode int