File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package pkg
33import (
44 "context"
55 "encoding/hex"
6+ "errors"
67 "fmt"
78 "net/http"
89 "net/rpc"
@@ -48,6 +49,17 @@ func (agg *Aggregator) ProcessOperatorSignedTaskResponseV2(signedTaskResponse *t
4849 "SenderAddress" , "0x" + hex .EncodeToString (signedTaskResponse .SenderAddress [:]),
4950 "BatchIdentifierHash" , "0x" + hex .EncodeToString (signedTaskResponse .BatchIdentifierHash [:]),
5051 "operatorId" , hex .EncodeToString (signedTaskResponse .OperatorId [:]))
52+
53+ if signedTaskResponse .BlsSignature .G1Point == nil {
54+ agg .logger .Warn ("invalid operator response with nil signature" ,
55+ "BatchMerkleRoot" , "0x" + hex .EncodeToString (signedTaskResponse .BatchMerkleRoot [:]),
56+ "SenderAddress" , "0x" + hex .EncodeToString (signedTaskResponse .SenderAddress [:]),
57+ "BatchIdentifierHash" , "0x" + hex .EncodeToString (signedTaskResponse .BatchIdentifierHash [:]),
58+ "operatorId" , hex .EncodeToString (signedTaskResponse .OperatorId [:]))
59+ * reply = 1
60+ return errors .New ("invalid response: nil signature" )
61+ }
62+
5163 taskIndex := uint32 (0 )
5264
5365 // The Aggregator may receive the Task Identifier after the operators.
You can’t perform that action at this time.
0 commit comments