Versions in this module Expand all Collapse all v0 v0.31.5 Apr 16, 2019 Changes in this version + var ErrConnTimeout = fmt.Errorf("remote signer timed out") + var ErrDialRetryMax = errors.New("dialed maximum retries") + var ErrUnexpectedResponse = fmt.Errorf("received unexpected response") + func IsConnTimeout(err error) bool + func NewTCPListener(ln net.Listener, secretConnKey ed25519.PrivKeyEd25519) *tcpListener + func NewUnixListener(ln net.Listener) *unixListener + func RegisterRemoteSignerMsg(cdc *amino.Codec) + type FilePV struct + Key FilePVKey + LastSignState FilePVLastSignState + func GenFilePV(keyFilePath, stateFilePath string) *FilePV + func LoadFilePV(keyFilePath, stateFilePath string) *FilePV + func LoadFilePVEmptyState(keyFilePath, stateFilePath string) *FilePV + func LoadOrGenFilePV(keyFilePath, stateFilePath string) *FilePV + func (pv *FilePV) GetAddress() types.Address + func (pv *FilePV) GetPubKey() crypto.PubKey + func (pv *FilePV) Reset() + func (pv *FilePV) Save() + 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 FilePVKey struct + Address types.Address + PrivKey crypto.PrivKey + PubKey crypto.PubKey + func (pvKey FilePVKey) Save() + type FilePVLastSignState struct + Height int64 + Round int + SignBytes cmn.HexBytes + Signature []byte + Step int8 + func (lss *FilePVLastSignState) CheckHRS(height int64, round int, step int8) (bool, error) + func (lss *FilePVLastSignState) Save() + type OldFilePV struct + Address types.Address + LastHeight int64 + LastRound int + LastSignBytes cmn.HexBytes + LastSignature []byte + LastStep int8 + PrivKey crypto.PrivKey + PubKey crypto.PubKey + func LoadOldFilePV(filePath string) (*OldFilePV, error) + func (oldFilePV *OldFilePV) Upgrade(keyFilePath, stateFilePath string) *FilePV + type PingRequest struct + type PingResponse struct + type PubKeyRequest struct + type PubKeyResponse struct + Error *RemoteSignerError + PubKey crypto.PubKey + type RemoteSignerError struct + Code int + Description string + func (e *RemoteSignerError) Error() string + type RemoteSignerMsg interface + type SignProposalRequest struct + Proposal *types.Proposal + type SignVoteRequest struct + Vote *types.Vote + type SignedProposalResponse struct + Error *RemoteSignerError + Proposal *types.Proposal + type SignedVoteResponse struct + Error *RemoteSignerError + Vote *types.Vote + type SignerRemote struct + func NewSignerRemote(conn net.Conn) (*SignerRemote, error) + func (sc *SignerRemote) Close() error + func (sc *SignerRemote) GetPubKey() crypto.PubKey + func (sc *SignerRemote) Ping() error + func (sc *SignerRemote) SignProposal(chainID string, proposal *types.Proposal) error + func (sc *SignerRemote) SignVote(chainID string, vote *types.Vote) error + type SignerServiceEndpoint struct + func NewSignerServiceEndpoint(logger log.Logger, chainID string, privVal types.PrivValidator, ...) *SignerServiceEndpoint + func (se *SignerServiceEndpoint) OnStart() error + func (se *SignerServiceEndpoint) OnStop() + type SignerServiceEndpointOption func(*SignerServiceEndpoint) + func SignerServiceEndpointConnRetries(retries int) SignerServiceEndpointOption + func SignerServiceEndpointTimeoutReadWrite(timeout time.Duration) SignerServiceEndpointOption + type SignerValidatorEndpoint struct + func NewSignerValidatorEndpoint(logger log.Logger, listener net.Listener) *SignerValidatorEndpoint + func (ve *SignerValidatorEndpoint) Close() + func (ve *SignerValidatorEndpoint) GetPubKey() crypto.PubKey + func (ve *SignerValidatorEndpoint) OnStart() error + func (ve *SignerValidatorEndpoint) OnStop() + func (ve *SignerValidatorEndpoint) Ping() error + func (ve *SignerValidatorEndpoint) SignProposal(chainID string, proposal *types.Proposal) error + func (ve *SignerValidatorEndpoint) SignVote(chainID string, vote *types.Vote) error + type SignerValidatorEndpointOption func(*SignerValidatorEndpoint) + func SignerValidatorEndpointSetHeartbeat(period time.Duration) SignerValidatorEndpointOption + type SocketDialer func() (net.Conn, error) + func DialTCPFn(addr string, timeoutReadWrite time.Duration, privKey ed25519.PrivKeyEd25519) SocketDialer + func DialUnixFn(addr string) SocketDialer + type TCPListenerOption func(*tcpListener) + func TCPListenerTimeoutAccept(timeout time.Duration) TCPListenerOption + func TCPListenerTimeoutReadWrite(timeout time.Duration) TCPListenerOption + type UnixListenerOption func(*unixListener) + func UnixListenerTimeoutAccept(timeout time.Duration) UnixListenerOption + func UnixListenerTimeoutReadWrite(timeout time.Duration) UnixListenerOption