multisigcollector

package
v0.0.0-...-9727c61 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewModule

func NewModule(mc ModuleConfig, params *ModuleParams, logger logging.Logger) (modules.PassiveModule, error)

NewModule creates a new instance of the multisig collector module. Multisig collector is the simplest implementation of the availability layer. Whenever an availability certificate is requested, it pulls a batch from the mempool module, sends it to all replicas and collects params.F+1 signatures confirming that other nodes have persistently stored the batch.

func NewReconfigurableModule

func NewReconfigurableModule(mc ModuleConfig, paramsTemplate ModuleParams, logger logging.Logger) modules.PassiveModule

Types

type InstanceParams

type InstanceParams mscpbtypes.InstanceParams

func (*InstanceParams) ToBytes

func (ip *InstanceParams) ToBytes() ([]byte, error)

type ModuleConfig

type ModuleConfig = common.ModuleConfig

ModuleConfig sets the module ids. All replicas are expected to use identical module configurations.

type ModuleParams

type ModuleParams = common.ModuleParams

ModuleParams sets the values for the parameters of an instance of the protocol. All replicas are expected to use identical module parameters.

func DefaultParamsTemplate

func DefaultParamsTemplate() ModuleParams

DefaultParamsTemplate returns the availability module parameters structure partially filled with default values. Fields without a meaningful default value (like InstanceUID, Epoch, and Membership) are left empty (zero values for their corresponding type).

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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