signatureaggregator

package
v1.23.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package signatureaggregator provides utilities for aggregating BLS signatures.

Index

Constants

View Source
const DefaultSignatureAggregatorPort = 8090

DefaultSignatureAggregatorPort is the default port for the signature aggregator service.

Variables

This section is empty.

Functions

func CreateSignatureAggregatorInstance

func CreateSignatureAggregatorInstance(app *application.Lux, chainID string, network models.Network, extraPeers []interface{}, logger luxlog.Logger, version string) error

CreateSignatureAggregatorInstance creates an instance of the signature aggregator. This initializes the aggregator for the specified chain and network.

func GetLatestSignatureAggregatorReleaseVersion

func GetLatestSignatureAggregatorReleaseVersion() (string, error)

GetLatestSignatureAggregatorReleaseVersion returns the latest release version of the signature aggregator.

func GetSignatureAggregatorEndpoint

func GetSignatureAggregatorEndpoint(app *application.Lux, network models.Network) (string, error)

GetSignatureAggregatorEndpoint returns the signature aggregator endpoint for the given network.

func NewSignatureAggregatorLogger

func NewSignatureAggregatorLogger(
	aggregatorLogLevel string,
	aggregatorLogToStdout bool,
	logDir string,
) (luxlog.Logger, error)

NewSignatureAggregatorLogger creates a logger for signature aggregation operations.

func SignMessage added in v1.22.9

func SignMessage(logger luxlog.Logger, endpoint string, message, justification, signingChainID string, quorumPercentage uint64) (*warp.Message, error)

SignMessage sends a message to the signature aggregator for signing. This wraps the SDK's warp.SignMessage function for convenience.

func UpdateSignatureAggregatorPeers

func UpdateSignatureAggregatorPeers(
	app *application.Lux,
	network models.Network,
	extraAggregatorPeers []string,
	logger luxlog.Logger,
) error

UpdateSignatureAggregatorPeers updates the peers for the signature aggregator.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL