Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregator ¶
type Aggregator interface {
// CollectResponseSignature is a method that collects the response signature from the operator
CollectResponseSignature(response *ResponseWithSignature, result chan<- ValidatedResponse) error
}
type AggregatorConfig ¶
type AggregatorConfig struct {
AggregatorRPCServer string `json:"aggregator_rpc_server"`
OperatorResponseTimeout string `json:"operator_response_timeout"`
}
func LoadConfig ¶
func LoadConfig(filePath string) (*AggregatorConfig, error)
LoadConfig loads the aggregator configuration from the specified file path
func (*AggregatorConfig) GetOperatorResponseTimeout ¶
func (c *AggregatorConfig) GetOperatorResponseTimeout() (time.Duration, error)
GetOperatorResponseTimeout returns OperatorResponseTimeout as time.Duration
type ChainConfig ¶
type ChainConfig struct {
ChainID ChainID `json:"-"`
RPCURL string `json:"rpc_url"`
OperatorInfoProviderAddress common.Address `json:"operator_info_provider_address"`
OperatorKeyManagerAddress common.Address `json:"operator_key_manager_address"`
CentralSchedulerAddress common.Address `json:"central_scheduler_address"`
}
ChainConfig struct for storing chain-specific configuration
type ResponseWithSignature ¶
type ValidatedResponse ¶
type ValidatedResponse struct {
Data []byte
Err error
Hash []byte
NonSignersPubkeysG1 []*bls.G1Point
GroupApksG1 []*bls.G1Point
SignersApkG2 *bls.G2Point
SignersAggSigG1 *bls.Signature
NonSignerGroupBitmapIndices []uint32
GroupApkIndices []uint32
TotalStakeIndices []uint32
NonSignerStakeIndices [][]uint32
}
Click to show internal directories.
Click to hide internal directories.