chia-dotnet-bls 1.3.2

There is a newer prerelease version of this package available.
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                
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="chia-dotnet-bls" Version="1.3.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add chia-dotnet-bls --version 1.3.2                
#r "nuget: chia-dotnet-bls, 1.3.2"                
#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 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

.NET CodeQL Nuget

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 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 (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 78 4/2/2024
1.3.2 329 2/2/2024

Version 1.3.2 Fix signed bug in Decode int