Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions aggregator/pkg/server.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,6 +3,7 @@ package pkg
import (
"context"
"encoding/hex"
"errors"
"fmt"
"net/http"
"net/rpc"
Expand DownExpand Up@@ -48,6 +49,17 @@ func (agg *Aggregator) ProcessOperatorSignedTaskResponseV2(signedTaskResponse *t
"SenderAddress", "0x"+hex.EncodeToString(signedTaskResponse.SenderAddress[:]),
"BatchIdentifierHash", "0x"+hex.EncodeToString(signedTaskResponse.BatchIdentifierHash[:]),
"operatorId", hex.EncodeToString(signedTaskResponse.OperatorId[:]))

if signedTaskResponse.BlsSignature.G1Point == nil {
agg.logger.Warn("invalid operator response with nil signature",
"BatchMerkleRoot", "0x"+hex.EncodeToString(signedTaskResponse.BatchMerkleRoot[:]),
"SenderAddress", "0x"+hex.EncodeToString(signedTaskResponse.SenderAddress[:]),
"BatchIdentifierHash", "0x"+hex.EncodeToString(signedTaskResponse.BatchIdentifierHash[:]),
"operatorId", hex.EncodeToString(signedTaskResponse.OperatorId[:]))
*reply = 1
return errors.New("invalid response: nil signature")
}

taskIndex := uint32(0)

// The Aggregator may receive the Task Identifier after the operators.
Expand Down