-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add bls signer abstraction from eigensdk #985
add bls signer abstraction from eigensdk #985
Conversation
abb4631
to
1c92ed0
Compare
2abf113
to
7c7c900
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from initial review, will take another look tomorrow. Did we test on a deployed node already?
I have tested it with one of my preprod node using the remote signer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! few comments
@@ -96,7 +96,7 @@ func setup(t *testing.T) { | |||
if err != nil { | |||
t.Fatal(err) | |||
} | |||
logger := logging.NewNoopLogger() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is NewNoopLogger
gone from eigensdk?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is. it's gone. poof. that's why I had to replace with test logger I defined in test_utils
core/chainio.go
Outdated
@@ -6,6 +6,7 @@ import ( | |||
"math/big" | |||
|
|||
"github.com/Layr-Labs/eigenda/api/grpc/churner" | |||
sdkSigner "github.com/Layr-Labs/eigensdk-go/signer/bls" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: blsSigner
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea that's better - will update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually blssigner
(i think package names are all lowercase)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
core/eth/writer.go
Outdated
@@ -62,14 +64,15 @@ func NewWriter( | |||
func (t *Writer) RegisterOperator( | |||
ctx context.Context, | |||
keypair *core.KeyPair, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we remove keypair
now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
core/eth/writer.go
Outdated
@@ -102,6 +105,7 @@ func (t *Writer) RegisterOperator( | |||
func (t *Writer) RegisterOperatorWithChurn( | |||
ctx context.Context, | |||
keypair *core.KeyPair, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
node/node.go
Outdated
@@ -76,7 +73,9 @@ type Node struct { | |||
PubIPProvider pubip.Provider | |||
OperatorSocketsFilterer indexer.OperatorSocketsFilterer | |||
ChainID *big.Int | |||
BLSSigner blssignerV1.SignerClient | |||
BLSPublicKeyHex string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need this as a separate field? could we infer this from BlsSigner
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point. No. will remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
node/node.go
Outdated
BLSSigner blssignerV1.SignerClient | ||
BLSPublicKeyHex string | ||
|
||
BlsSigner sdkSigner.Signer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: BLSSigner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update eigensdk to that commit upgrade logger to remove noop fix testmode fix nil pointers rebase and fix rebase update to new eigensdk add bls signer to plugin fix unit tests fix g2 point deser fix file signer fix copying remove unused code
b3075cc
to
41a573a
Compare
@@ -14,7 +14,7 @@ import ( | |||
"github.com/Layr-Labs/eigenda/encoding/kzg" | |||
"github.com/Layr-Labs/eigenda/node/flags" | |||
|
|||
"github.com/Layr-Labs/eigensdk-go/crypto/bls" | |||
blssignerTypes "github.com/Layr-Labs/eigensdk-go/signer/bls/types" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: all lowercase
Why are these changes needed?
1.21.13
since some dependency needs it. Since it's a patch version upgrades, this should be good.TESTING
Checks