func (sc *SignerClient) IsConnected() bool {
	return sc.endpoint.IsConnected()
}
IsConnected indicates with the signer is connected to a remote signing service
package privval
import (
	"context"
	"fmt"
	"time"
	"github.com/tendermint/tendermint/crypto"
	"github.com/tendermint/tendermint/crypto/encoding"
	privvalproto "github.com/tendermint/tendermint/proto/tendermint/privval"
	tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
	"github.com/tendermint/tendermint/types"
)
type SignerClient struct {
	endpoint *SignerListenerEndpoint
	chainID  string
}
var _ types.PrivValidator = (*SignerClient)(nil)
func NewSignerClient(endpoint *SignerListenerEndpoint, chainID string) (*SignerClient, error) {
	if !endpoint.IsRunning() {
		if err := endpoint.Start(); err != nil {
			return nil, fmt.Errorf("failed to start listener endpoint: %w", err)
		}
	}
	return &SignerClient{endpoint: endpoint, chainID: chainID}, nil
}
func (sc *SignerClient) Close() error {
	return sc.endpoint.Close()
}