Documentation
¶
Index ¶
- Constants
- func RegisterOperator(ctx context.Context, configuration *config.OperatorConfig, ...) error
- type AggregatorRpcClient
- type Operator
- func (o *Operator) ProcessNewBatchLog(newBatchLog *servicemanager.ContractAlignedLayerServiceManagerNewBatch) error
- func (o *Operator) ProcessNewBatchLogV2(newBatchLog *servicemanager.ContractAlignedLayerServiceManagerNewBatchV2) error
- func (o *Operator) SignTaskResponse(batchIdentifierHash [32]byte) *bls.Signature
- func (o *Operator) Start(ctx context.Context) error
- func (o *Operator) SubscribeToNewTasks() (chan error, error)
- func (o *Operator) SubscribeToNewTasksV2() (chan error, error)
- type VerificationData
Constants ¶
const ( MaxRetries = 10 RetryInterval = 10 * time.Second )
const (
BatchDownloadTimeout = 1 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
func RegisterOperator ¶ added in v0.1.5
func RegisterOperator( ctx context.Context, configuration *config.OperatorConfig, operatorToAvsRegistrationSigSalt [32]byte, ) error
RegisterOperator operator registers the operator with the given public key for the given quorum IDs. RegisterOperator registers a new operator with the given public key and socket with the provided quorum ids. If the operator is already registered with a given quorum id, the transaction will fail (noop) and an error will be returned.
Types ¶
type AggregatorRpcClient ¶
type AggregatorRpcClient struct {
// contains filtered or unexported fields
}
AggregatorRpcClient is the client to communicate with the aggregator via RPC
func NewAggregatorRpcClient ¶
func NewAggregatorRpcClient(aggregatorIpPortAddr string, logger logging.Logger) (*AggregatorRpcClient, error)
func (*AggregatorRpcClient) SendSignedTaskResponseToAggregator ¶
func (c *AggregatorRpcClient) SendSignedTaskResponseToAggregator(signedTaskResponse *types.SignedTaskResponse)
SendSignedTaskResponseToAggregator is the method called by operators via RPC to send their signed task response.
func (*AggregatorRpcClient) SendSignedTaskResponseToAggregatorV2 ¶ added in v0.5.0
func (c *AggregatorRpcClient) SendSignedTaskResponseToAggregatorV2(signedTaskResponse *types.SignedTaskResponseV2)
type Operator ¶
type Operator struct {
Config config.OperatorConfig
Address ethcommon.Address
Socket string
Timeout time.Duration
PrivKey *ecdsa.PrivateKey
KeyPair *bls.KeyPair
OperatorId eigentypes.OperatorId
NewTaskCreatedChan chan *servicemanager.ContractAlignedLayerServiceManagerNewBatch
NewTaskCreatedChanV2 chan *servicemanager.ContractAlignedLayerServiceManagerNewBatchV2
Logger logging.Logger
// contains filtered or unexported fields
}
func NewOperatorFromConfig ¶
func NewOperatorFromConfig(configuration config.OperatorConfig) (*Operator, error)
func (*Operator) ProcessNewBatchLog ¶ added in v0.1.2
func (o *Operator) ProcessNewBatchLog(newBatchLog *servicemanager.ContractAlignedLayerServiceManagerNewBatch) error
Takes a NewTaskCreatedLog struct as input and returns a TaskResponseHeader struct. The TaskResponseHeader struct is the struct that is signed and sent to the contract as a task response.
func (*Operator) ProcessNewBatchLogV2 ¶ added in v0.5.0
func (o *Operator) ProcessNewBatchLogV2(newBatchLog *servicemanager.ContractAlignedLayerServiceManagerNewBatchV2) error