diff --git a/p2p/integrationtest/provider/client.go b/p2p/integrationtest/provider/client.go index 01bab1b70..d7233e858 100644 --- a/p2p/integrationtest/provider/client.go +++ b/p2p/integrationtest/provider/client.go @@ -149,6 +149,9 @@ func (b *ProviderClient) CheckAndStake(_ []string) error { b.logger.Error("failed to marshal public key", "error", err) return fmt.Errorf("failed to marshal public key: %w", err) } + b.logger.Info("generated BLS key pair", + "public_key", hex.EncodeToString(pubkeyb), + "signature", hex.EncodeToString(signature)) // Register a provider _, err = b.client.Stake(context.Background(), &providerapiv1.StakeRequest{ diff --git a/p2p/pkg/rpc/provider/service.go b/p2p/pkg/rpc/provider/service.go index 5a30648ae..36035e681 100644 --- a/p2p/pkg/rpc/provider/service.go +++ b/p2p/pkg/rpc/provider/service.go @@ -279,6 +279,8 @@ func (s *Service) Stake( if err != nil { return nil, status.Errorf(codes.Internal, "decoding bls signature: %v", err) } + + s.logger.Info("adding verified bls key", "blsPublicKey", hex.EncodeToString(blsPublicKey), "blsSignature", hex.EncodeToString(blsSignature)) tx, txErr = s.registryContract.AddVerifiedBLSKey(opts, blsPublicKey, blsSignature) if txErr != nil { return nil, status.Errorf(codes.Internal, "adding verified bls key: %v", txErr)