@@ -6,17 +6,19 @@ import (
6
6
"encoding/hex"
7
7
"encoding/json"
8
8
"fmt"
9
- "github.com/Layr-Labs/eigenda/api"
10
- dreg "github.com/Layr-Labs/eigenda/contracts/bindings/EigenDADisperserRegistry"
11
9
"log"
12
10
"math/big"
13
11
12
+ "github.com/Layr-Labs/eigenda/api"
13
+ dreg "github.com/Layr-Labs/eigenda/contracts/bindings/EigenDADisperserRegistry"
14
+
14
15
"github.com/Layr-Labs/eigenda/api/grpc/churner"
15
16
"github.com/Layr-Labs/eigenda/common"
16
17
eigendasrvmg "github.com/Layr-Labs/eigenda/contracts/bindings/EigenDAServiceManager"
17
18
regcoordinator "github.com/Layr-Labs/eigenda/contracts/bindings/RegistryCoordinator"
18
19
"github.com/Layr-Labs/eigenda/core"
19
20
"github.com/Layr-Labs/eigensdk-go/logging"
21
+ blssigner "github.com/Layr-Labs/eigensdk-go/signer/bls"
20
22
"github.com/ethereum/go-ethereum/accounts/abi/bind"
21
23
gethcommon "github.com/ethereum/go-ethereum/common"
22
24
"github.com/ethereum/go-ethereum/core/types"
@@ -61,15 +63,15 @@ func NewWriter(
61
63
// will be returned.
62
64
func (t * Writer ) RegisterOperator (
63
65
ctx context.Context ,
64
- keypair * core. KeyPair ,
66
+ signer blssigner. Signer ,
65
67
socket string ,
66
68
quorumIds []core.QuorumID ,
67
69
operatorEcdsaPrivateKey * ecdsa.PrivateKey ,
68
70
operatorToAvsRegistrationSigSalt [32 ]byte ,
69
71
operatorToAvsRegistrationSigExpiry * big.Int ,
70
72
) error {
71
73
72
- params , operatorSignature , err := t .getRegistrationParams (ctx , keypair , operatorEcdsaPrivateKey , operatorToAvsRegistrationSigSalt , operatorToAvsRegistrationSigExpiry )
74
+ params , operatorSignature , err := t .getRegistrationParams (ctx , signer , operatorEcdsaPrivateKey , operatorToAvsRegistrationSigSalt , operatorToAvsRegistrationSigExpiry )
73
75
if err != nil {
74
76
t .logger .Error ("Failed to get registration params" , "err" , err )
75
77
return err
@@ -101,7 +103,7 @@ func (t *Writer) RegisterOperator(
101
103
// with the provided signature from the churner
102
104
func (t * Writer ) RegisterOperatorWithChurn (
103
105
ctx context.Context ,
104
- keypair * core. KeyPair ,
106
+ signer blssigner. Signer ,
105
107
socket string ,
106
108
quorumIds []core.QuorumID ,
107
109
operatorEcdsaPrivateKey * ecdsa.PrivateKey ,
@@ -110,7 +112,7 @@ func (t *Writer) RegisterOperatorWithChurn(
110
112
churnReply * churner.ChurnReply ,
111
113
) error {
112
114
113
- params , operatorSignature , err := t .getRegistrationParams (ctx , keypair , operatorEcdsaPrivateKey , operatorToAvsRegistrationSigSalt , operatorToAvsRegistrationSigExpiry )
115
+ params , operatorSignature , err := t .getRegistrationParams (ctx , signer , operatorEcdsaPrivateKey , operatorToAvsRegistrationSigSalt , operatorToAvsRegistrationSigExpiry )
114
116
if err != nil {
115
117
t .logger .Error ("Failed to get registration params" , "err" , err )
116
118
return err
0 commit comments