Skip to content

Commit

Permalink
just changes name and added comment to explaining registering stuff (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
samlaf authored Jan 24, 2024
1 parent 2db70d4 commit ed59827
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions chainio/clients/avsregistry/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ import (
)

type AvsRegistryWriter interface {
// RegisterOperatorWithAVSRegistryCoordinator is used to register a single operator with the AVS's registry coordinator.
// TODO(samlaf): an operator that is already registered in a quorum can register with another quorum without passing signatures
// perhaps we should add another sdk function for this purpose, that just takes in a quorumNumber and socket?
// RegisterOperatorInQuorumWithAVSRegistryCoordinator is used to register a single operator with the AVS's registry coordinator.
// - operatorEcdsaPrivateKey is the operator's ecdsa private key (used to sign a message to register operator in eigenlayer's delegation manager)
// - operatorToAvsRegistrationSigSalt is a random salt used to prevent replay attacks
// - operatorToAvsRegistrationSigExpiry is the expiry time of the signature
RegisterOperatorWithAVSRegistryCoordinator(
RegisterOperatorInQuorumWithAVSRegistryCoordinator(
ctx context.Context,
operatorEcdsaPrivateKey *ecdsa.PrivateKey,
operatorToAvsRegistrationSigSalt [32]byte,
Expand Down Expand Up @@ -161,7 +163,7 @@ func BuildAvsRegistryChainWriter(
}

// TODO(samlaf): clean up this function
func (w *AvsRegistryChainWriter) RegisterOperatorWithAVSRegistryCoordinator(
func (w *AvsRegistryChainWriter) RegisterOperatorInQuorumWithAVSRegistryCoordinator(
ctx context.Context,
// we need to pass the private key explicitly and can't use the signer because registering requires signing a message which isn't a transaction
// and the signer can only signs transactions
Expand Down

0 comments on commit ed59827

Please sign in to comment.