privval

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Errors_name = map[int32]string{
	0: "ERRORS_UNKNOWN",
	1: "ERRORS_UNEXPECTED_RESPONSE",
	2: "ERRORS_NO_CONNECTION",
	3: "ERRORS_CONNECTION_TIMEOUT",
	4: "ERRORS_READ_TIMEOUT",
	5: "ERRORS_WRITE_TIMEOUT",
}
View Source
var Errors_value = map[string]int32{
	"ERRORS_UNKNOWN":             0,
	"ERRORS_UNEXPECTED_RESPONSE": 1,
	"ERRORS_NO_CONNECTION":       2,
	"ERRORS_CONNECTION_TIMEOUT":  3,
	"ERRORS_READ_TIMEOUT":        4,
	"ERRORS_WRITE_TIMEOUT":       5,
}

Functions

func RegisterPrivValidatorAPIServer

func RegisterPrivValidatorAPIServer(s *grpc.Server, srv PrivValidatorAPIServer)

Types

type AuthSigMessage

type AuthSigMessage struct {
	PubKey crypto.PublicKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key"`
	Sig    []byte           `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
}

AuthSigMessage is duplicated from p2p prior to the P2P refactor. It is used for the SecretConnection until we migrate privval to gRPC. https://github.com/tendermint/tendermint/issues/4698

func (*AuthSigMessage) Descriptor

func (*AuthSigMessage) Descriptor() ([]byte, []int)

func (*AuthSigMessage) GetPubKey

func (m *AuthSigMessage) GetPubKey() crypto.PublicKey

func (*AuthSigMessage) GetSig

func (m *AuthSigMessage) GetSig() []byte

func (*AuthSigMessage) Marshal

func (m *AuthSigMessage) Marshal() (dAtA []byte, err error)

func (*AuthSigMessage) MarshalTo

func (m *AuthSigMessage) MarshalTo(dAtA []byte) (int, error)

func (*AuthSigMessage) MarshalToSizedBuffer

func (m *AuthSigMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuthSigMessage) ProtoMessage

func (*AuthSigMessage) ProtoMessage()

func (*AuthSigMessage) Reset

func (m *AuthSigMessage) Reset()

func (*AuthSigMessage) Size

func (m *AuthSigMessage) Size() (n int)

func (*AuthSigMessage) String

func (m *AuthSigMessage) String() string

func (*AuthSigMessage) Unmarshal

func (m *AuthSigMessage) Unmarshal(dAtA []byte) error

func (*AuthSigMessage) XXX_DiscardUnknown

func (m *AuthSigMessage) XXX_DiscardUnknown()

func (*AuthSigMessage) XXX_Marshal

func (m *AuthSigMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthSigMessage) XXX_Merge

func (m *AuthSigMessage) XXX_Merge(src proto.Message)

func (*AuthSigMessage) XXX_Size

func (m *AuthSigMessage) XXX_Size() int

func (*AuthSigMessage) XXX_Unmarshal

func (m *AuthSigMessage) XXX_Unmarshal(b []byte) error

type Errors

type Errors int32
const (
	Errors_ERRORS_UNKNOWN             Errors = 0
	Errors_ERRORS_UNEXPECTED_RESPONSE Errors = 1
	Errors_ERRORS_NO_CONNECTION       Errors = 2
	Errors_ERRORS_CONNECTION_TIMEOUT  Errors = 3
	Errors_ERRORS_READ_TIMEOUT        Errors = 4
	Errors_ERRORS_WRITE_TIMEOUT       Errors = 5
)

func (Errors) EnumDescriptor

func (Errors) EnumDescriptor() ([]byte, []int)

func (Errors) String

func (x Errors) String() string

type Message

type Message struct {
	// Types that are valid to be assigned to Sum:
	//	*Message_PubKeyRequest
	//	*Message_PubKeyResponse
	//	*Message_SignVoteRequest
	//	*Message_SignedVoteResponse
	//	*Message_SignProposalRequest
	//	*Message_SignedProposalResponse
	//	*Message_PingRequest
	//	*Message_PingResponse
	//	*Message_ProTxHashRequest
	//	*Message_ProTxHashResponse
	//	*Message_ThresholdPubKeyRequest
	//	*Message_ThresholdPubKeyResponse
	Sum isMessage_Sum `protobuf_oneof:"sum"`
}

func (*Message) Descriptor

func (*Message) Descriptor() ([]byte, []int)

func (*Message) GetPingRequest

func (m *Message) GetPingRequest() *PingRequest

func (*Message) GetPingResponse

func (m *Message) GetPingResponse() *PingResponse

func (*Message) GetProTxHashRequest

func (m *Message) GetProTxHashRequest() *ProTxHashRequest

func (*Message) GetProTxHashResponse

func (m *Message) GetProTxHashResponse() *ProTxHashResponse

func (*Message) GetPubKeyRequest

func (m *Message) GetPubKeyRequest() *PubKeyRequest

func (*Message) GetPubKeyResponse

func (m *Message) GetPubKeyResponse() *PubKeyResponse

func (*Message) GetSignProposalRequest

func (m *Message) GetSignProposalRequest() *SignProposalRequest

func (*Message) GetSignVoteRequest

func (m *Message) GetSignVoteRequest() *SignVoteRequest

func (*Message) GetSignedProposalResponse

func (m *Message) GetSignedProposalResponse() *SignedProposalResponse

func (*Message) GetSignedVoteResponse

func (m *Message) GetSignedVoteResponse() *SignedVoteResponse

func (*Message) GetSum

func (m *Message) GetSum() isMessage_Sum

func (*Message) GetThresholdPubKeyRequest

func (m *Message) GetThresholdPubKeyRequest() *ThresholdPubKeyRequest

func (*Message) GetThresholdPubKeyResponse

func (m *Message) GetThresholdPubKeyResponse() *ThresholdPubKeyResponse

func (*Message) Marshal

func (m *Message) Marshal() (dAtA []byte, err error)

func (*Message) MarshalTo

func (m *Message) MarshalTo(dAtA []byte) (int, error)

func (*Message) MarshalToSizedBuffer

func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) Size

func (m *Message) Size() (n int)

func (*Message) String

func (m *Message) String() string

func (*Message) Unmarshal

func (m *Message) Unmarshal(dAtA []byte) error

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message) XXX_Merge

func (m *Message) XXX_Merge(src proto.Message)

func (*Message) XXX_OneofWrappers

func (*Message) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

func (m *Message) XXX_Unmarshal(b []byte) error

type Message_PingRequest

type Message_PingRequest struct {
	PingRequest *PingRequest `protobuf:"bytes,7,opt,name=ping_request,json=pingRequest,proto3,oneof" json:"ping_request,omitempty"`
}

func (*Message_PingRequest) MarshalTo

func (m *Message_PingRequest) MarshalTo(dAtA []byte) (int, error)

func (*Message_PingRequest) MarshalToSizedBuffer

func (m *Message_PingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_PingRequest) Size

func (m *Message_PingRequest) Size() (n int)

type Message_PingResponse

type Message_PingResponse struct {
	PingResponse *PingResponse `protobuf:"bytes,8,opt,name=ping_response,json=pingResponse,proto3,oneof" json:"ping_response,omitempty"`
}

func (*Message_PingResponse) MarshalTo

func (m *Message_PingResponse) MarshalTo(dAtA []byte) (int, error)

func (*Message_PingResponse) MarshalToSizedBuffer

func (m *Message_PingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_PingResponse) Size

func (m *Message_PingResponse) Size() (n int)

type Message_ProTxHashRequest

type Message_ProTxHashRequest struct {
	ProTxHashRequest *ProTxHashRequest `protobuf:"bytes,9,opt,name=pro_tx_hash_request,json=proTxHashRequest,proto3,oneof" json:"pro_tx_hash_request,omitempty"`
}

func (*Message_ProTxHashRequest) MarshalTo

func (m *Message_ProTxHashRequest) MarshalTo(dAtA []byte) (int, error)

func (*Message_ProTxHashRequest) MarshalToSizedBuffer

func (m *Message_ProTxHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_ProTxHashRequest) Size

func (m *Message_ProTxHashRequest) Size() (n int)

type Message_ProTxHashResponse

type Message_ProTxHashResponse struct {
	ProTxHashResponse *ProTxHashResponse `protobuf:"bytes,10,opt,name=pro_tx_hash_response,json=proTxHashResponse,proto3,oneof" json:"pro_tx_hash_response,omitempty"`
}

func (*Message_ProTxHashResponse) MarshalTo

func (m *Message_ProTxHashResponse) MarshalTo(dAtA []byte) (int, error)

func (*Message_ProTxHashResponse) MarshalToSizedBuffer

func (m *Message_ProTxHashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_ProTxHashResponse) Size

func (m *Message_ProTxHashResponse) Size() (n int)

type Message_PubKeyRequest

type Message_PubKeyRequest struct {
	PubKeyRequest *PubKeyRequest `protobuf:"bytes,1,opt,name=pub_key_request,json=pubKeyRequest,proto3,oneof" json:"pub_key_request,omitempty"`
}

func (*Message_PubKeyRequest) MarshalTo

func (m *Message_PubKeyRequest) MarshalTo(dAtA []byte) (int, error)

func (*Message_PubKeyRequest) MarshalToSizedBuffer

func (m *Message_PubKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_PubKeyRequest) Size

func (m *Message_PubKeyRequest) Size() (n int)

type Message_PubKeyResponse

type Message_PubKeyResponse struct {
	PubKeyResponse *PubKeyResponse `protobuf:"bytes,2,opt,name=pub_key_response,json=pubKeyResponse,proto3,oneof" json:"pub_key_response,omitempty"`
}

func (*Message_PubKeyResponse) MarshalTo

func (m *Message_PubKeyResponse) MarshalTo(dAtA []byte) (int, error)

func (*Message_PubKeyResponse) MarshalToSizedBuffer

func (m *Message_PubKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_PubKeyResponse) Size

func (m *Message_PubKeyResponse) Size() (n int)

type Message_SignProposalRequest

type Message_SignProposalRequest struct {
	SignProposalRequest *SignProposalRequest `` /* 126-byte string literal not displayed */
}

func (*Message_SignProposalRequest) MarshalTo

func (m *Message_SignProposalRequest) MarshalTo(dAtA []byte) (int, error)

func (*Message_SignProposalRequest) MarshalToSizedBuffer

func (m *Message_SignProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_SignProposalRequest) Size

func (m *Message_SignProposalRequest) Size() (n int)

type Message_SignVoteRequest

type Message_SignVoteRequest struct {
	SignVoteRequest *SignVoteRequest `protobuf:"bytes,3,opt,name=sign_vote_request,json=signVoteRequest,proto3,oneof" json:"sign_vote_request,omitempty"`
}

func (*Message_SignVoteRequest) MarshalTo

func (m *Message_SignVoteRequest) MarshalTo(dAtA []byte) (int, error)

func (*Message_SignVoteRequest) MarshalToSizedBuffer

func (m *Message_SignVoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_SignVoteRequest) Size

func (m *Message_SignVoteRequest) Size() (n int)

type Message_SignedProposalResponse

type Message_SignedProposalResponse struct {
	SignedProposalResponse *SignedProposalResponse `` /* 135-byte string literal not displayed */
}

func (*Message_SignedProposalResponse) MarshalTo

func (m *Message_SignedProposalResponse) MarshalTo(dAtA []byte) (int, error)

func (*Message_SignedProposalResponse) MarshalToSizedBuffer

func (m *Message_SignedProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_SignedProposalResponse) Size

func (m *Message_SignedProposalResponse) Size() (n int)

type Message_SignedVoteResponse

type Message_SignedVoteResponse struct {
	SignedVoteResponse *SignedVoteResponse `protobuf:"bytes,4,opt,name=signed_vote_response,json=signedVoteResponse,proto3,oneof" json:"signed_vote_response,omitempty"`
}

func (*Message_SignedVoteResponse) MarshalTo

func (m *Message_SignedVoteResponse) MarshalTo(dAtA []byte) (int, error)

func (*Message_SignedVoteResponse) MarshalToSizedBuffer

func (m *Message_SignedVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_SignedVoteResponse) Size

func (m *Message_SignedVoteResponse) Size() (n int)

type Message_ThresholdPubKeyRequest

type Message_ThresholdPubKeyRequest struct {
	ThresholdPubKeyRequest *ThresholdPubKeyRequest `` /* 138-byte string literal not displayed */
}

func (*Message_ThresholdPubKeyRequest) MarshalTo

func (m *Message_ThresholdPubKeyRequest) MarshalTo(dAtA []byte) (int, error)

func (*Message_ThresholdPubKeyRequest) MarshalToSizedBuffer

func (m *Message_ThresholdPubKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_ThresholdPubKeyRequest) Size

func (m *Message_ThresholdPubKeyRequest) Size() (n int)

type Message_ThresholdPubKeyResponse

type Message_ThresholdPubKeyResponse struct {
	ThresholdPubKeyResponse *ThresholdPubKeyResponse `` /* 141-byte string literal not displayed */
}

func (*Message_ThresholdPubKeyResponse) MarshalTo

func (m *Message_ThresholdPubKeyResponse) MarshalTo(dAtA []byte) (int, error)

func (*Message_ThresholdPubKeyResponse) MarshalToSizedBuffer

func (m *Message_ThresholdPubKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_ThresholdPubKeyResponse) Size

func (m *Message_ThresholdPubKeyResponse) Size() (n int)

type PingRequest

type PingRequest struct {
}

PingRequest is a request to confirm that the connection is alive.

func (*PingRequest) Descriptor

func (*PingRequest) Descriptor() ([]byte, []int)

func (*PingRequest) Marshal

func (m *PingRequest) Marshal() (dAtA []byte, err error)

func (*PingRequest) MarshalTo

func (m *PingRequest) MarshalTo(dAtA []byte) (int, error)

func (*PingRequest) MarshalToSizedBuffer

func (m *PingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) Reset

func (m *PingRequest) Reset()

func (*PingRequest) Size

func (m *PingRequest) Size() (n int)

func (*PingRequest) String

func (m *PingRequest) String() string

func (*PingRequest) Unmarshal

func (m *PingRequest) Unmarshal(dAtA []byte) error

func (*PingRequest) XXX_DiscardUnknown

func (m *PingRequest) XXX_DiscardUnknown()

func (*PingRequest) XXX_Marshal

func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PingRequest) XXX_Merge

func (m *PingRequest) XXX_Merge(src proto.Message)

func (*PingRequest) XXX_Size

func (m *PingRequest) XXX_Size() int

func (*PingRequest) XXX_Unmarshal

func (m *PingRequest) XXX_Unmarshal(b []byte) error

type PingResponse

type PingResponse struct {
}

PingResponse is a response to confirm that the connection is alive.

func (*PingResponse) Descriptor

func (*PingResponse) Descriptor() ([]byte, []int)

func (*PingResponse) Marshal

func (m *PingResponse) Marshal() (dAtA []byte, err error)

func (*PingResponse) MarshalTo

func (m *PingResponse) MarshalTo(dAtA []byte) (int, error)

func (*PingResponse) MarshalToSizedBuffer

func (m *PingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PingResponse) ProtoMessage

func (*PingResponse) ProtoMessage()

func (*PingResponse) Reset

func (m *PingResponse) Reset()

func (*PingResponse) Size

func (m *PingResponse) Size() (n int)

func (*PingResponse) String

func (m *PingResponse) String() string

func (*PingResponse) Unmarshal

func (m *PingResponse) Unmarshal(dAtA []byte) error

func (*PingResponse) XXX_DiscardUnknown

func (m *PingResponse) XXX_DiscardUnknown()

func (*PingResponse) XXX_Marshal

func (m *PingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PingResponse) XXX_Merge

func (m *PingResponse) XXX_Merge(src proto.Message)

func (*PingResponse) XXX_Size

func (m *PingResponse) XXX_Size() int

func (*PingResponse) XXX_Unmarshal

func (m *PingResponse) XXX_Unmarshal(b []byte) error

type PrivValidatorAPIClient

type PrivValidatorAPIClient interface {
	GetPubKey(ctx context.Context, in *PubKeyRequest, opts ...grpc.CallOption) (*PubKeyResponse, error)
	GetProTxHash(ctx context.Context, in *ProTxHashRequest, opts ...grpc.CallOption) (*ProTxHashResponse, error)
	GetThresholdPubKey(ctx context.Context, in *ThresholdPubKeyRequest, opts ...grpc.CallOption) (*ThresholdPubKeyResponse, error)
	SignVote(ctx context.Context, in *SignVoteRequest, opts ...grpc.CallOption) (*SignedVoteResponse, error)
	SignProposal(ctx context.Context, in *SignProposalRequest, opts ...grpc.CallOption) (*SignedProposalResponse, error)
}

PrivValidatorAPIClient is the client API for PrivValidatorAPI service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewPrivValidatorAPIClient

func NewPrivValidatorAPIClient(cc *grpc.ClientConn) PrivValidatorAPIClient

type PrivValidatorAPIServer

PrivValidatorAPIServer is the server API for PrivValidatorAPI service.

type ProTxHashRequest

type ProTxHashRequest struct {
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}

ProTxHashRequest requests the consensus proTxHash from the remote signer.

func (*ProTxHashRequest) Descriptor

func (*ProTxHashRequest) Descriptor() ([]byte, []int)

func (*ProTxHashRequest) GetChainId

func (m *ProTxHashRequest) GetChainId() string

func (*ProTxHashRequest) Marshal

func (m *ProTxHashRequest) Marshal() (dAtA []byte, err error)

func (*ProTxHashRequest) MarshalTo

func (m *ProTxHashRequest) MarshalTo(dAtA []byte) (int, error)

func (*ProTxHashRequest) MarshalToSizedBuffer

func (m *ProTxHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProTxHashRequest) ProtoMessage

func (*ProTxHashRequest) ProtoMessage()

func (*ProTxHashRequest) Reset

func (m *ProTxHashRequest) Reset()

func (*ProTxHashRequest) Size

func (m *ProTxHashRequest) Size() (n int)

func (*ProTxHashRequest) String

func (m *ProTxHashRequest) String() string

func (*ProTxHashRequest) Unmarshal

func (m *ProTxHashRequest) Unmarshal(dAtA []byte) error

func (*ProTxHashRequest) XXX_DiscardUnknown

func (m *ProTxHashRequest) XXX_DiscardUnknown()

func (*ProTxHashRequest) XXX_Marshal

func (m *ProTxHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProTxHashRequest) XXX_Merge

func (m *ProTxHashRequest) XXX_Merge(src proto.Message)

func (*ProTxHashRequest) XXX_Size

func (m *ProTxHashRequest) XXX_Size() int

func (*ProTxHashRequest) XXX_Unmarshal

func (m *ProTxHashRequest) XXX_Unmarshal(b []byte) error

type ProTxHashResponse

type ProTxHashResponse struct {
	ProTxHash []byte             `protobuf:"bytes,1,opt,name=pro_tx_hash,json=proTxHash,proto3" json:"pro_tx_hash,omitempty"`
	Error     *RemoteSignerError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
}

ProTxHashResponse is a response message containing the protxhash.

func (*ProTxHashResponse) Descriptor

func (*ProTxHashResponse) Descriptor() ([]byte, []int)

func (*ProTxHashResponse) GetError

func (m *ProTxHashResponse) GetError() *RemoteSignerError

func (*ProTxHashResponse) GetProTxHash

func (m *ProTxHashResponse) GetProTxHash() []byte

func (*ProTxHashResponse) Marshal

func (m *ProTxHashResponse) Marshal() (dAtA []byte, err error)

func (*ProTxHashResponse) MarshalTo

func (m *ProTxHashResponse) MarshalTo(dAtA []byte) (int, error)

func (*ProTxHashResponse) MarshalToSizedBuffer

func (m *ProTxHashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProTxHashResponse) ProtoMessage

func (*ProTxHashResponse) ProtoMessage()

func (*ProTxHashResponse) Reset

func (m *ProTxHashResponse) Reset()

func (*ProTxHashResponse) Size

func (m *ProTxHashResponse) Size() (n int)

func (*ProTxHashResponse) String

func (m *ProTxHashResponse) String() string

func (*ProTxHashResponse) Unmarshal

func (m *ProTxHashResponse) Unmarshal(dAtA []byte) error

func (*ProTxHashResponse) XXX_DiscardUnknown

func (m *ProTxHashResponse) XXX_DiscardUnknown()

func (*ProTxHashResponse) XXX_Marshal

func (m *ProTxHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProTxHashResponse) XXX_Merge

func (m *ProTxHashResponse) XXX_Merge(src proto.Message)

func (*ProTxHashResponse) XXX_Size

func (m *ProTxHashResponse) XXX_Size() int

func (*ProTxHashResponse) XXX_Unmarshal

func (m *ProTxHashResponse) XXX_Unmarshal(b []byte) error

type PubKeyRequest

type PubKeyRequest struct {
	ChainId    string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	QuorumHash []byte `protobuf:"bytes,2,opt,name=quorum_hash,json=quorumHash,proto3" json:"quorum_hash,omitempty"`
}

PubKeyRequest requests the consensus public key from the remote signer.

func (*PubKeyRequest) Descriptor

func (*PubKeyRequest) Descriptor() ([]byte, []int)

func (*PubKeyRequest) GetChainId

func (m *PubKeyRequest) GetChainId() string

func (*PubKeyRequest) GetQuorumHash

func (m *PubKeyRequest) GetQuorumHash() []byte

func (*PubKeyRequest) Marshal

func (m *PubKeyRequest) Marshal() (dAtA []byte, err error)

func (*PubKeyRequest) MarshalTo

func (m *PubKeyRequest) MarshalTo(dAtA []byte) (int, error)

func (*PubKeyRequest) MarshalToSizedBuffer

func (m *PubKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PubKeyRequest) ProtoMessage

func (*PubKeyRequest) ProtoMessage()

func (*PubKeyRequest) Reset

func (m *PubKeyRequest) Reset()

func (*PubKeyRequest) Size

func (m *PubKeyRequest) Size() (n int)

func (*PubKeyRequest) String

func (m *PubKeyRequest) String() string

func (*PubKeyRequest) Unmarshal

func (m *PubKeyRequest) Unmarshal(dAtA []byte) error

func (*PubKeyRequest) XXX_DiscardUnknown

func (m *PubKeyRequest) XXX_DiscardUnknown()

func (*PubKeyRequest) XXX_Marshal

func (m *PubKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PubKeyRequest) XXX_Merge

func (m *PubKeyRequest) XXX_Merge(src proto.Message)

func (*PubKeyRequest) XXX_Size

func (m *PubKeyRequest) XXX_Size() int

func (*PubKeyRequest) XXX_Unmarshal

func (m *PubKeyRequest) XXX_Unmarshal(b []byte) error

type PubKeyResponse

type PubKeyResponse struct {
	PubKey crypto.PublicKey   `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key"`
	Error  *RemoteSignerError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
}

PubKeyResponse is a response message containing the public key.

func (*PubKeyResponse) Descriptor

func (*PubKeyResponse) Descriptor() ([]byte, []int)

func (*PubKeyResponse) GetError

func (m *PubKeyResponse) GetError() *RemoteSignerError

func (*PubKeyResponse) GetPubKey

func (m *PubKeyResponse) GetPubKey() crypto.PublicKey

func (*PubKeyResponse) Marshal

func (m *PubKeyResponse) Marshal() (dAtA []byte, err error)

func (*PubKeyResponse) MarshalTo

func (m *PubKeyResponse) MarshalTo(dAtA []byte) (int, error)

func (*PubKeyResponse) MarshalToSizedBuffer

func (m *PubKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PubKeyResponse) ProtoMessage

func (*PubKeyResponse) ProtoMessage()

func (*PubKeyResponse) Reset

func (m *PubKeyResponse) Reset()

func (*PubKeyResponse) Size

func (m *PubKeyResponse) Size() (n int)

func (*PubKeyResponse) String

func (m *PubKeyResponse) String() string

func (*PubKeyResponse) Unmarshal

func (m *PubKeyResponse) Unmarshal(dAtA []byte) error

func (*PubKeyResponse) XXX_DiscardUnknown

func (m *PubKeyResponse) XXX_DiscardUnknown()

func (*PubKeyResponse) XXX_Marshal

func (m *PubKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PubKeyResponse) XXX_Merge

func (m *PubKeyResponse) XXX_Merge(src proto.Message)

func (*PubKeyResponse) XXX_Size

func (m *PubKeyResponse) XXX_Size() int

func (*PubKeyResponse) XXX_Unmarshal

func (m *PubKeyResponse) XXX_Unmarshal(b []byte) error

type RemoteSignerError

type RemoteSignerError struct {
	Code        int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
}

func (*RemoteSignerError) Descriptor

func (*RemoteSignerError) Descriptor() ([]byte, []int)

func (*RemoteSignerError) GetCode

func (m *RemoteSignerError) GetCode() int32

func (*RemoteSignerError) GetDescription

func (m *RemoteSignerError) GetDescription() string

func (*RemoteSignerError) Marshal

func (m *RemoteSignerError) Marshal() (dAtA []byte, err error)

func (*RemoteSignerError) MarshalTo

func (m *RemoteSignerError) MarshalTo(dAtA []byte) (int, error)

func (*RemoteSignerError) MarshalToSizedBuffer

func (m *RemoteSignerError) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RemoteSignerError) ProtoMessage

func (*RemoteSignerError) ProtoMessage()

func (*RemoteSignerError) Reset

func (m *RemoteSignerError) Reset()

func (*RemoteSignerError) Size

func (m *RemoteSignerError) Size() (n int)

func (*RemoteSignerError) String

func (m *RemoteSignerError) String() string

func (*RemoteSignerError) Unmarshal

func (m *RemoteSignerError) Unmarshal(dAtA []byte) error

func (*RemoteSignerError) XXX_DiscardUnknown

func (m *RemoteSignerError) XXX_DiscardUnknown()

func (*RemoteSignerError) XXX_Marshal

func (m *RemoteSignerError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RemoteSignerError) XXX_Merge

func (m *RemoteSignerError) XXX_Merge(src proto.Message)

func (*RemoteSignerError) XXX_Size

func (m *RemoteSignerError) XXX_Size() int

func (*RemoteSignerError) XXX_Unmarshal

func (m *RemoteSignerError) XXX_Unmarshal(b []byte) error

type SignProposalRequest

type SignProposalRequest struct {
	Proposal   *types.Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
	ChainId    string          `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	QuorumType int32           `protobuf:"varint,3,opt,name=quorum_type,json=quorumType,proto3" json:"quorum_type,omitempty"`
	QuorumHash []byte          `protobuf:"bytes,4,opt,name=quorum_hash,json=quorumHash,proto3" json:"quorum_hash,omitempty"`
}

SignProposalRequest is a request to sign a proposal

func (*SignProposalRequest) Descriptor

func (*SignProposalRequest) Descriptor() ([]byte, []int)

func (*SignProposalRequest) GetChainId

func (m *SignProposalRequest) GetChainId() string

func (*SignProposalRequest) GetProposal

func (m *SignProposalRequest) GetProposal() *types.Proposal

func (*SignProposalRequest) GetQuorumHash

func (m *SignProposalRequest) GetQuorumHash() []byte

func (*SignProposalRequest) GetQuorumType

func (m *SignProposalRequest) GetQuorumType() int32

func (*SignProposalRequest) Marshal

func (m *SignProposalRequest) Marshal() (dAtA []byte, err error)

func (*SignProposalRequest) MarshalTo

func (m *SignProposalRequest) MarshalTo(dAtA []byte) (int, error)

func (*SignProposalRequest) MarshalToSizedBuffer

func (m *SignProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SignProposalRequest) ProtoMessage

func (*SignProposalRequest) ProtoMessage()

func (*SignProposalRequest) Reset

func (m *SignProposalRequest) Reset()

func (*SignProposalRequest) Size

func (m *SignProposalRequest) Size() (n int)

func (*SignProposalRequest) String

func (m *SignProposalRequest) String() string

func (*SignProposalRequest) Unmarshal

func (m *SignProposalRequest) Unmarshal(dAtA []byte) error

func (*SignProposalRequest) XXX_DiscardUnknown

func (m *SignProposalRequest) XXX_DiscardUnknown()

func (*SignProposalRequest) XXX_Marshal

func (m *SignProposalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignProposalRequest) XXX_Merge

func (m *SignProposalRequest) XXX_Merge(src proto.Message)

func (*SignProposalRequest) XXX_Size

func (m *SignProposalRequest) XXX_Size() int

func (*SignProposalRequest) XXX_Unmarshal

func (m *SignProposalRequest) XXX_Unmarshal(b []byte) error

type SignVoteRequest

type SignVoteRequest struct {
	Vote       *types.Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"`
	ChainId    string      `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	QuorumType int32       `protobuf:"varint,3,opt,name=quorum_type,json=quorumType,proto3" json:"quorum_type,omitempty"`
	QuorumHash []byte      `protobuf:"bytes,4,opt,name=quorum_hash,json=quorumHash,proto3" json:"quorum_hash,omitempty"`
}

SignVoteRequest is a request to sign a vote

func (*SignVoteRequest) Descriptor

func (*SignVoteRequest) Descriptor() ([]byte, []int)

func (*SignVoteRequest) GetChainId

func (m *SignVoteRequest) GetChainId() string

func (*SignVoteRequest) GetQuorumHash

func (m *SignVoteRequest) GetQuorumHash() []byte

func (*SignVoteRequest) GetQuorumType

func (m *SignVoteRequest) GetQuorumType() int32

func (*SignVoteRequest) GetVote

func (m *SignVoteRequest) GetVote() *types.Vote

func (*SignVoteRequest) Marshal

func (m *SignVoteRequest) Marshal() (dAtA []byte, err error)

func (*SignVoteRequest) MarshalTo

func (m *SignVoteRequest) MarshalTo(dAtA []byte) (int, error)

func (*SignVoteRequest) MarshalToSizedBuffer

func (m *SignVoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SignVoteRequest) ProtoMessage

func (*SignVoteRequest) ProtoMessage()

func (*SignVoteRequest) Reset

func (m *SignVoteRequest) Reset()

func (*SignVoteRequest) Size

func (m *SignVoteRequest) Size() (n int)

func (*SignVoteRequest) String

func (m *SignVoteRequest) String() string

func (*SignVoteRequest) Unmarshal

func (m *SignVoteRequest) Unmarshal(dAtA []byte) error

func (*SignVoteRequest) XXX_DiscardUnknown

func (m *SignVoteRequest) XXX_DiscardUnknown()

func (*SignVoteRequest) XXX_Marshal

func (m *SignVoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignVoteRequest) XXX_Merge

func (m *SignVoteRequest) XXX_Merge(src proto.Message)

func (*SignVoteRequest) XXX_Size

func (m *SignVoteRequest) XXX_Size() int

func (*SignVoteRequest) XXX_Unmarshal

func (m *SignVoteRequest) XXX_Unmarshal(b []byte) error

type SignedProposalResponse

type SignedProposalResponse struct {
	Proposal types.Proposal     `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal"`
	Error    *RemoteSignerError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
}

SignedProposalResponse is response containing a signed proposal or an error

func (*SignedProposalResponse) Descriptor

func (*SignedProposalResponse) Descriptor() ([]byte, []int)

func (*SignedProposalResponse) GetError

func (*SignedProposalResponse) GetProposal

func (m *SignedProposalResponse) GetProposal() types.Proposal

func (*SignedProposalResponse) Marshal

func (m *SignedProposalResponse) Marshal() (dAtA []byte, err error)

func (*SignedProposalResponse) MarshalTo

func (m *SignedProposalResponse) MarshalTo(dAtA []byte) (int, error)

func (*SignedProposalResponse) MarshalToSizedBuffer

func (m *SignedProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SignedProposalResponse) ProtoMessage

func (*SignedProposalResponse) ProtoMessage()

func (*SignedProposalResponse) Reset

func (m *SignedProposalResponse) Reset()

func (*SignedProposalResponse) Size

func (m *SignedProposalResponse) Size() (n int)

func (*SignedProposalResponse) String

func (m *SignedProposalResponse) String() string

func (*SignedProposalResponse) Unmarshal

func (m *SignedProposalResponse) Unmarshal(dAtA []byte) error

func (*SignedProposalResponse) XXX_DiscardUnknown

func (m *SignedProposalResponse) XXX_DiscardUnknown()

func (*SignedProposalResponse) XXX_Marshal

func (m *SignedProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignedProposalResponse) XXX_Merge

func (m *SignedProposalResponse) XXX_Merge(src proto.Message)

func (*SignedProposalResponse) XXX_Size

func (m *SignedProposalResponse) XXX_Size() int

func (*SignedProposalResponse) XXX_Unmarshal

func (m *SignedProposalResponse) XXX_Unmarshal(b []byte) error

type SignedVoteResponse

type SignedVoteResponse struct {
	Vote  types.Vote         `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote"`
	Error *RemoteSignerError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
}

SignedVoteResponse is a response containing a signed vote or an error

func (*SignedVoteResponse) Descriptor

func (*SignedVoteResponse) Descriptor() ([]byte, []int)

func (*SignedVoteResponse) GetError

func (m *SignedVoteResponse) GetError() *RemoteSignerError

func (*SignedVoteResponse) GetVote

func (m *SignedVoteResponse) GetVote() types.Vote

func (*SignedVoteResponse) Marshal

func (m *SignedVoteResponse) Marshal() (dAtA []byte, err error)

func (*SignedVoteResponse) MarshalTo

func (m *SignedVoteResponse) MarshalTo(dAtA []byte) (int, error)

func (*SignedVoteResponse) MarshalToSizedBuffer

func (m *SignedVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SignedVoteResponse) ProtoMessage

func (*SignedVoteResponse) ProtoMessage()

func (*SignedVoteResponse) Reset

func (m *SignedVoteResponse) Reset()

func (*SignedVoteResponse) Size

func (m *SignedVoteResponse) Size() (n int)

func (*SignedVoteResponse) String

func (m *SignedVoteResponse) String() string

func (*SignedVoteResponse) Unmarshal

func (m *SignedVoteResponse) Unmarshal(dAtA []byte) error

func (*SignedVoteResponse) XXX_DiscardUnknown

func (m *SignedVoteResponse) XXX_DiscardUnknown()

func (*SignedVoteResponse) XXX_Marshal

func (m *SignedVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignedVoteResponse) XXX_Merge

func (m *SignedVoteResponse) XXX_Merge(src proto.Message)

func (*SignedVoteResponse) XXX_Size

func (m *SignedVoteResponse) XXX_Size() int

func (*SignedVoteResponse) XXX_Unmarshal

func (m *SignedVoteResponse) XXX_Unmarshal(b []byte) error

type ThresholdPubKeyRequest

type ThresholdPubKeyRequest struct {
	ChainId    string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	QuorumHash []byte `protobuf:"bytes,2,opt,name=quorum_hash,json=quorumHash,proto3" json:"quorum_hash,omitempty"`
}

PubKeyRequest requests the consensus public key from the remote signer.

func (*ThresholdPubKeyRequest) Descriptor

func (*ThresholdPubKeyRequest) Descriptor() ([]byte, []int)

func (*ThresholdPubKeyRequest) GetChainId

func (m *ThresholdPubKeyRequest) GetChainId() string

func (*ThresholdPubKeyRequest) GetQuorumHash

func (m *ThresholdPubKeyRequest) GetQuorumHash() []byte

func (*ThresholdPubKeyRequest) Marshal

func (m *ThresholdPubKeyRequest) Marshal() (dAtA []byte, err error)

func (*ThresholdPubKeyRequest) MarshalTo

func (m *ThresholdPubKeyRequest) MarshalTo(dAtA []byte) (int, error)

func (*ThresholdPubKeyRequest) MarshalToSizedBuffer

func (m *ThresholdPubKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ThresholdPubKeyRequest) ProtoMessage

func (*ThresholdPubKeyRequest) ProtoMessage()

func (*ThresholdPubKeyRequest) Reset

func (m *ThresholdPubKeyRequest) Reset()

func (*ThresholdPubKeyRequest) Size

func (m *ThresholdPubKeyRequest) Size() (n int)

func (*ThresholdPubKeyRequest) String

func (m *ThresholdPubKeyRequest) String() string

func (*ThresholdPubKeyRequest) Unmarshal

func (m *ThresholdPubKeyRequest) Unmarshal(dAtA []byte) error

func (*ThresholdPubKeyRequest) XXX_DiscardUnknown

func (m *ThresholdPubKeyRequest) XXX_DiscardUnknown()

func (*ThresholdPubKeyRequest) XXX_Marshal

func (m *ThresholdPubKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ThresholdPubKeyRequest) XXX_Merge

func (m *ThresholdPubKeyRequest) XXX_Merge(src proto.Message)

func (*ThresholdPubKeyRequest) XXX_Size

func (m *ThresholdPubKeyRequest) XXX_Size() int

func (*ThresholdPubKeyRequest) XXX_Unmarshal

func (m *ThresholdPubKeyRequest) XXX_Unmarshal(b []byte) error

type ThresholdPubKeyResponse

type ThresholdPubKeyResponse struct {
	PubKey crypto.PublicKey   `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key"`
	Error  *RemoteSignerError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
}

PubKeyResponse is a response message containing the public key.

func (*ThresholdPubKeyResponse) Descriptor

func (*ThresholdPubKeyResponse) Descriptor() ([]byte, []int)

func (*ThresholdPubKeyResponse) GetError

func (*ThresholdPubKeyResponse) GetPubKey

func (m *ThresholdPubKeyResponse) GetPubKey() crypto.PublicKey

func (*ThresholdPubKeyResponse) Marshal

func (m *ThresholdPubKeyResponse) Marshal() (dAtA []byte, err error)

func (*ThresholdPubKeyResponse) MarshalTo

func (m *ThresholdPubKeyResponse) MarshalTo(dAtA []byte) (int, error)

func (*ThresholdPubKeyResponse) MarshalToSizedBuffer

func (m *ThresholdPubKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ThresholdPubKeyResponse) ProtoMessage

func (*ThresholdPubKeyResponse) ProtoMessage()

func (*ThresholdPubKeyResponse) Reset

func (m *ThresholdPubKeyResponse) Reset()

func (*ThresholdPubKeyResponse) Size

func (m *ThresholdPubKeyResponse) Size() (n int)

func (*ThresholdPubKeyResponse) String

func (m *ThresholdPubKeyResponse) String() string

func (*ThresholdPubKeyResponse) Unmarshal

func (m *ThresholdPubKeyResponse) Unmarshal(dAtA []byte) error

func (*ThresholdPubKeyResponse) XXX_DiscardUnknown

func (m *ThresholdPubKeyResponse) XXX_DiscardUnknown()

func (*ThresholdPubKeyResponse) XXX_Marshal

func (m *ThresholdPubKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ThresholdPubKeyResponse) XXX_Merge

func (m *ThresholdPubKeyResponse) XXX_Merge(src proto.Message)

func (*ThresholdPubKeyResponse) XXX_Size

func (m *ThresholdPubKeyResponse) XXX_Size() int

func (*ThresholdPubKeyResponse) XXX_Unmarshal

func (m *ThresholdPubKeyResponse) XXX_Unmarshal(b []byte) error

type UnimplementedPrivValidatorAPIServer

type UnimplementedPrivValidatorAPIServer struct {
}

UnimplementedPrivValidatorAPIServer can be embedded to have forward compatible implementations.

func (*UnimplementedPrivValidatorAPIServer) GetProTxHash

func (*UnimplementedPrivValidatorAPIServer) GetPubKey

func (*UnimplementedPrivValidatorAPIServer) GetThresholdPubKey

func (*UnimplementedPrivValidatorAPIServer) SignProposal

func (*UnimplementedPrivValidatorAPIServer) SignVote

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL