Versions in this module Expand all Collapse all v0 v0.0.2 May 13, 2020 v0.0.1 May 13, 2020 Changes in this version + var ErrConnTimeout = errors.New("remote signer timed out") + var ErrConnWaitTimeout = errors.New("waited for remote signer for too long") + var ErrDialRetryMax = errors.New("dialed maximum retries") + func RegisterSocketPVMsg(cdc *amino.Codec) + type FilePV struct + Address crypto.Address + LastHeight int64 + LastRound int + LastSignBytes cmn.HexBytes + LastSignature crypto.Signature + LastStep int8 + PrivKey crypto.PrivKey + PubKey crypto.PubKey + func GenFilePV(filePath string) *FilePV + func LoadFilePV(filePath string) *FilePV + func LoadOrGenFilePV(filePath string) *FilePV + func (pv *FilePV) GetAddress() crypto.Address + func (pv *FilePV) GetPubKey() crypto.PubKey + func (pv *FilePV) Reset() + func (pv *FilePV) Save() + func (pv *FilePV) SignHeartbeat(chainID string, heartbeat *types.Heartbeat) error + func (pv *FilePV) SignProposal(chainID string, proposal *types.Proposal) error + func (pv *FilePV) SignVote(chainID string, vote *types.Vote) error + func (pv *FilePV) String() string + type PubKeyMsg struct + PubKey crypto.PubKey + type RemoteSigner struct + func NewRemoteSigner(logger log.Logger, chainID, socketAddr string, privVal types.PrivValidator, ...) *RemoteSigner + func (rs *RemoteSigner) OnStart() error + func (rs *RemoteSigner) OnStop() + type RemoteSignerOption func(*RemoteSigner) + func RemoteSignerConnDeadline(deadline time.Duration) RemoteSignerOption + func RemoteSignerConnRetries(retries int) RemoteSignerOption + type SignHeartbeatMsg struct + Heartbeat *types.Heartbeat + type SignProposalMsg struct + Proposal *types.Proposal + type SignVoteMsg struct + Vote *types.Vote + type SocketPV struct + func NewSocketPV(logger log.Logger, socketAddr string, privKey crypto.PrivKeyEd25519) *SocketPV + func (sc *SocketPV) GetAddress() crypto.Address + func (sc *SocketPV) GetPubKey() crypto.PubKey + func (sc *SocketPV) OnStart() error + func (sc *SocketPV) OnStop() + func (sc *SocketPV) SignHeartbeat(chainID string, heartbeat *types.Heartbeat) error + func (sc *SocketPV) SignProposal(chainID string, proposal *types.Proposal) error + func (sc *SocketPV) SignVote(chainID string, vote *types.Vote) error + type SocketPVMsg interface + type SocketPVOption func(*SocketPV) + func SocketPVAcceptDeadline(deadline time.Duration) SocketPVOption + func SocketPVConnDeadline(deadline time.Duration) SocketPVOption + func SocketPVConnWait(timeout time.Duration) SocketPVOption + func SocketPVHeartbeat(period time.Duration) SocketPVOption