VOOZH about

URL: https://www.nuget.org/packages/Nethereum.Signer.Bls/

⇱ NuGet Gallery | Nethereum.Signer.Bls 6.1.0




👁 Image
Nethereum.Signer.Bls 6.1.0

Prefix Reserved
dotnet add package Nethereum.Signer.Bls --version 6.1.0
 
 
NuGet\Install-Package Nethereum.Signer.Bls -Version 6.1.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="Nethereum.Signer.Bls" Version="6.1.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nethereum.Signer.Bls" Version="6.1.0" />
 
Directory.Packages.props
<PackageReference Include="Nethereum.Signer.Bls" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Nethereum.Signer.Bls --version 6.1.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Nethereum.Signer.Bls, 6.1.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.
#:package Nethereum.Signer.Bls@6.1.0
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Nethereum.Signer.Bls&version=6.1.0
 
Install as a Cake Addin
#tool nuget:?package=Nethereum.Signer.Bls&version=6.1.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Nethereum.Signer.Bls

Core BLS signature abstraction for Ethereum consensus layer operations (Beacon Chain, sync committees, light clients).

Overview

Nethereum.Signer.Bls provides the abstraction layer for BLS (Boneh-Lynn-Shacham) signature verification in Nethereum. BLS signatures are used in Ethereum's consensus layer (Beacon Chain) for validator signatures, sync committees, and light client protocol. This package defines interfaces that are implemented by concrete BLS libraries like Nethereum.Signer.Bls.Herumi.

Key Features:

  • BLS aggregate signature verification (consensus layer)
  • Pluggable BLS implementation architecture
  • Ethereum 2.0 sync committee signature verification
  • Light client support (verify beacon chain data)
  • Domain separation for Ethereum consensus layer

Use Cases:

  • Light clients (verify beacon chain without running full node)
  • Sync committee verification
  • Consensus layer data validation
  • Portal Network implementations
  • Verkle tree state proofs (future Ethereum upgrades)

Installation

dotnet add package Nethereum.Signer.Bls
dotnet add package Nethereum.Signer.Bls.Herumi # Concrete implementation

Dependencies

None - this is a pure abstraction package.

Implementations:

  • Nethereum.Signer.Bls.Herumi - Native Herumi BLS library wrapper

Quick Start

using Nethereum.Signer.Bls;
using Nethereum.Signer.Bls.Herumi; // Concrete implementation

// Create BLS instance with Herumi implementation
var blsBindings = new HerumiBlsBindings();
var bls = new NativeBls(blsBindings);
await bls.InitializeAsync();

// Verify aggregate BLS signature (e.g., from sync committee)
bool isValid = bls.VerifyAggregate(
 aggregateSignature: aggregateSig, // 96 bytes
 publicKeys: validatorPublicKeys, // Array of 48-byte public keys
 messages: messages, // Array of signing roots
 domain: domainSeparationTag // 32 bytes: forkDigest|domainType
);

Console.WriteLine($"Signature valid: {isValid}");

API Reference

IBls Interface

Core interface for BLS operations.

public interface IBls
{
 /// <summary>
 /// Verifies an aggregate BLS signature over one or more messages and public keys.
 /// </summary>
 bool VerifyAggregate(
 byte[] aggregateSignature, // 96 bytes
 byte[][] publicKeys, // Array of 48-byte public keys
 byte[][] messages, // Array of 32-byte message hashes
 byte[] domain // 32 bytes domain separation
 );
}

NativeBls Class

Native BLS implementation wrapper.

public class NativeBls : IBls
{
 public NativeBls(INativeBlsBindings bindings);
 public Task InitializeAsync(CancellationToken cancellationToken = default);
 public bool VerifyAggregate(byte[] aggregateSignature, byte[][] publicKeys, byte[][] messages, byte[] domain);
}

BlsImplementationKind Enum

public enum BlsImplementationKind
{
 None,
 HerumiNative, // Herumi BLS (BLST/MCL)
 Managed // Future: pure C# implementation
}

Important Notes

BLS12-381 Curve

  • Ethereum consensus layer uses BLS12-381 curve (NOT secp256k1)
  • Public keys: 48 bytes (compressed G1 point)
  • Signatures: 96 bytes (compressed G2 point)
  • Different from execution layer (which uses secp256k1/ECDSA)

Domain Separation

Ethereum consensus layer uses domain separation to prevent signature reuse:

domain = fork_version || domain_type

Common domain types:

  • DOMAIN_BEACON_PROPOSER = 0x00000000 - Block proposals
  • DOMAIN_BEACON_ATTESTER = 0x01000000 - Attestations
  • DOMAIN_SYNC_COMMITTEE = 0x07000000 - Sync committee signatures

Aggregate Signatures

BLS supports signature aggregation - multiple signatures can be combined into one:

  • Input: N signatures from N validators
  • Output: 1 aggregate signature (still 96 bytes)
  • Verification: Verify all N signatures at once

Performance

  • Aggregate verification is faster than verifying N signatures individually
  • ~50-100ms to verify 512-validator sync committee on modern hardware
  • Native implementations (Herumi/BLST) are 100x faster than pure managed code

Consensus Layer Use Cases

Use Case Description
Sync Committees 512 validators sign each beacon block
Light Clients Verify beacon chain without full node
Portal Network P2P light client network
Validator Signatures Attest to beacon chain state
Verkle Proofs Future: stateless client verification

Related Packages

Implementations

  • Nethereum.Signer.Bls.Herumi - Native Herumi BLS (production-ready)

Used By

  • Nethereum.Consensus.Ssz - SSZ encoding/decoding
  • Light client implementations
  • Beacon chain tools

Additional Resources

Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 is compatible.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 was computed. 
.NET Framework net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 was computed.  net48 net48 was computed.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Nethereum.Signer.Bls:

Package Downloads
Nethereum.Signer.Bls.Herumi

Herumi-backed native BLS implementation for Nethereum.

Nethereum.Consensus.LightClient

Beacon light client orchestration (bootstrap, updates, trusted execution headers).

Nethereum.Wallet

Core wallet services for managing accounts, vaults, and configuration across the Nethereum stack.

Nethereum.AccountAbstraction.Bundler

Nethereum AccountAbstraction Bundler - ERC-4337 bundler with UserOperation validation, mempool, gas estimation, and bundle submission

Nethereum.EVM.Precompiles.Bls

BLS12-381 precompile implementations for Nethereum EVM using Herumi MCL native library.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.1.0 910 3/25/2026
6.0.4 378 3/18/2026
6.0.3 336 3/18/2026
6.0.1 355 3/17/2026
6.0.0 357 3/16/2026
5.8.0 338 1/6/2026