Documentation
¶
Overview ¶
Package signatureaggregator provides utilities for aggregating BLS signatures.
Index ¶
- Constants
- func CreateSignatureAggregatorInstance(app *application.Lux, chainID string, network models.Network, ...) error
- func GetLatestSignatureAggregatorReleaseVersion() (string, error)
- func GetSignatureAggregatorEndpoint(app *application.Lux, network models.Network) (string, error)
- func NewSignatureAggregatorLogger(aggregatorLogLevel string, aggregatorLogToStdout bool, logDir string) (luxlog.Logger, error)
- func SignMessage(logger luxlog.Logger, endpoint string, ...) (*warp.Message, error)
- func UpdateSignatureAggregatorPeers(app *application.Lux, network models.Network, extraAggregatorPeers []string, ...) error
Constants ¶
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 ¶
GetLatestSignatureAggregatorReleaseVersion returns the latest release version of the signature aggregator.
func GetSignatureAggregatorEndpoint ¶
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.