// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: proto/privval/msgs.proto
|
|
|
|
package privval
|
|
|
|
import (
|
|
fmt "fmt"
|
|
_ "github.com/gogo/protobuf/gogoproto"
|
|
proto "github.com/gogo/protobuf/proto"
|
|
keys "github.com/tendermint/tendermint/proto/crypto/keys"
|
|
types "github.com/tendermint/tendermint/proto/types"
|
|
io "io"
|
|
math "math"
|
|
math_bits "math/bits"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
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 (m *RemoteSignerError) Reset() { *m = RemoteSignerError{} }
|
|
func (m *RemoteSignerError) String() string { return proto.CompactTextString(m) }
|
|
func (*RemoteSignerError) ProtoMessage() {}
|
|
func (*RemoteSignerError) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9ec52cc5e378f9a4, []int{0}
|
|
}
|
|
func (m *RemoteSignerError) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *RemoteSignerError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_RemoteSignerError.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *RemoteSignerError) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RemoteSignerError.Merge(m, src)
|
|
}
|
|
func (m *RemoteSignerError) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *RemoteSignerError) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RemoteSignerError.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RemoteSignerError proto.InternalMessageInfo
|
|
|
|
func (m *RemoteSignerError) GetCode() int32 {
|
|
if m != nil {
|
|
return m.Code
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *RemoteSignerError) GetDescription() string {
|
|
if m != nil {
|
|
return m.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// PubKeyRequest requests the consensus public key from the remote signer.
|
|
type PubKeyRequest struct {
|
|
}
|
|
|
|
func (m *PubKeyRequest) Reset() { *m = PubKeyRequest{} }
|
|
func (m *PubKeyRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*PubKeyRequest) ProtoMessage() {}
|
|
func (*PubKeyRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9ec52cc5e378f9a4, []int{1}
|
|
}
|
|
func (m *PubKeyRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *PubKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_PubKeyRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *PubKeyRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PubKeyRequest.Merge(m, src)
|
|
}
|
|
func (m *PubKeyRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *PubKeyRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PubKeyRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PubKeyRequest proto.InternalMessageInfo
|
|
|
|
// PubKeyResponse is a response message containing the public key.
|
|
type PubKeyResponse struct {
|
|
PubKey *keys.PublicKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
|
|
Error *RemoteSignerError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
|
|
}
|
|
|
|
func (m *PubKeyResponse) Reset() { *m = PubKeyResponse{} }
|
|
func (m *PubKeyResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*PubKeyResponse) ProtoMessage() {}
|
|
func (*PubKeyResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9ec52cc5e378f9a4, []int{2}
|
|
}
|
|
func (m *PubKeyResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *PubKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_PubKeyResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *PubKeyResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PubKeyResponse.Merge(m, src)
|
|
}
|
|
func (m *PubKeyResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *PubKeyResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PubKeyResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PubKeyResponse proto.InternalMessageInfo
|
|
|
|
func (m *PubKeyResponse) GetPubKey() *keys.PublicKey {
|
|
if m != nil {
|
|
return m.PubKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *PubKeyResponse) GetError() *RemoteSignerError {
|
|
if m != nil {
|
|
return m.Error
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SignVoteRequest is a request to sign a vote
|
|
type SignVoteRequest struct {
|
|
Vote *types.Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"`
|
|
}
|
|
|
|
func (m *SignVoteRequest) Reset() { *m = SignVoteRequest{} }
|
|
func (m *SignVoteRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*SignVoteRequest) ProtoMessage() {}
|
|
func (*SignVoteRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9ec52cc5e378f9a4, []int{3}
|
|
}
|
|
func (m *SignVoteRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *SignVoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_SignVoteRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *SignVoteRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SignVoteRequest.Merge(m, src)
|
|
}
|
|
func (m *SignVoteRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *SignVoteRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SignVoteRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SignVoteRequest proto.InternalMessageInfo
|
|
|
|
func (m *SignVoteRequest) GetVote() *types.Vote {
|
|
if m != nil {
|
|
return m.Vote
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SignedVoteResponse is a response containing a signed vote or an error
|
|
type SignedVoteResponse struct {
|
|
Vote *types.Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"`
|
|
Error *RemoteSignerError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
|
|
}
|
|
|
|
func (m *SignedVoteResponse) Reset() { *m = SignedVoteResponse{} }
|
|
func (m *SignedVoteResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*SignedVoteResponse) ProtoMessage() {}
|
|
func (*SignedVoteResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9ec52cc5e378f9a4, []int{4}
|
|
}
|
|
func (m *SignedVoteResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *SignedVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_SignedVoteResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *SignedVoteResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SignedVoteResponse.Merge(m, src)
|
|
}
|
|
func (m *SignedVoteResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *SignedVoteResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SignedVoteResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SignedVoteResponse proto.InternalMessageInfo
|
|
|
|
func (m *SignedVoteResponse) GetVote() *types.Vote {
|
|
if m != nil {
|
|
return m.Vote
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *SignedVoteResponse) GetError() *RemoteSignerError {
|
|
if m != nil {
|
|
return m.Error
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SignProposalRequest is a request to sign a proposal
|
|
type SignProposalRequest struct {
|
|
Proposal types.Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal"`
|
|
}
|
|
|
|
func (m *SignProposalRequest) Reset() { *m = SignProposalRequest{} }
|
|
func (m *SignProposalRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*SignProposalRequest) ProtoMessage() {}
|
|
func (*SignProposalRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9ec52cc5e378f9a4, []int{5}
|
|
}
|
|
func (m *SignProposalRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *SignProposalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_SignProposalRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *SignProposalRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SignProposalRequest.Merge(m, src)
|
|
}
|
|
func (m *SignProposalRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *SignProposalRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SignProposalRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SignProposalRequest proto.InternalMessageInfo
|
|
|
|
func (m *SignProposalRequest) GetProposal() types.Proposal {
|
|
if m != nil {
|
|
return m.Proposal
|
|
}
|
|
return types.Proposal{}
|
|
}
|
|
|
|
// SignedProposalResponse is response containing a signed proposal or an error
|
|
type SignedProposalResponse struct {
|
|
Proposal *types.Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
|
|
Error *RemoteSignerError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
|
|
}
|
|
|
|
func (m *SignedProposalResponse) Reset() { *m = SignedProposalResponse{} }
|
|
func (m *SignedProposalResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*SignedProposalResponse) ProtoMessage() {}
|
|
func (*SignedProposalResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9ec52cc5e378f9a4, []int{6}
|
|
}
|
|
func (m *SignedProposalResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *SignedProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_SignedProposalResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *SignedProposalResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SignedProposalResponse.Merge(m, src)
|
|
}
|
|
func (m *SignedProposalResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *SignedProposalResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SignedProposalResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SignedProposalResponse proto.InternalMessageInfo
|
|
|
|
func (m *SignedProposalResponse) GetProposal() *types.Proposal {
|
|
if m != nil {
|
|
return m.Proposal
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *SignedProposalResponse) GetError() *RemoteSignerError {
|
|
if m != nil {
|
|
return m.Error
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// PingRequest is a request to confirm that the connection is alive.
|
|
type PingRequest struct {
|
|
}
|
|
|
|
func (m *PingRequest) Reset() { *m = PingRequest{} }
|
|
func (m *PingRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*PingRequest) ProtoMessage() {}
|
|
func (*PingRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9ec52cc5e378f9a4, []int{7}
|
|
}
|
|
func (m *PingRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_PingRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *PingRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PingRequest.Merge(m, src)
|
|
}
|
|
func (m *PingRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *PingRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PingRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PingRequest proto.InternalMessageInfo
|
|
|
|
// PingResponse is a response to confirm that the connection is alive.
|
|
type PingResponse struct {
|
|
}
|
|
|
|
func (m *PingResponse) Reset() { *m = PingResponse{} }
|
|
func (m *PingResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*PingResponse) ProtoMessage() {}
|
|
func (*PingResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9ec52cc5e378f9a4, []int{8}
|
|
}
|
|
func (m *PingResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *PingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_PingResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *PingResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PingResponse.Merge(m, src)
|
|
}
|
|
func (m *PingResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *PingResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PingResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PingResponse proto.InternalMessageInfo
|
|
|
|
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
|
|
Sum isMessage_Sum `protobuf_oneof:"sum"`
|
|
}
|
|
|
|
func (m *Message) Reset() { *m = Message{} }
|
|
func (m *Message) String() string { return proto.CompactTextString(m) }
|
|
func (*Message) ProtoMessage() {}
|
|
func (*Message) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_9ec52cc5e378f9a4, []int{9}
|
|
}
|
|
func (m *Message) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_Message.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *Message) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Message.Merge(m, src)
|
|
}
|
|
func (m *Message) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *Message) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Message.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Message proto.InternalMessageInfo
|
|
|
|
type isMessage_Sum interface {
|
|
isMessage_Sum()
|
|
MarshalTo([]byte) (int, error)
|
|
Size() int
|
|
}
|
|
|
|
type Message_PubKeyRequest struct {
|
|
PubKeyRequest *PubKeyRequest `protobuf:"bytes,1,opt,name=pub_key_request,json=pubKeyRequest,proto3,oneof" json:"pub_key_request,omitempty"`
|
|
}
|
|
type Message_PubKeyResponse struct {
|
|
PubKeyResponse *PubKeyResponse `protobuf:"bytes,2,opt,name=pub_key_response,json=pubKeyResponse,proto3,oneof" json:"pub_key_response,omitempty"`
|
|
}
|
|
type Message_SignVoteRequest struct {
|
|
SignVoteRequest *SignVoteRequest `protobuf:"bytes,3,opt,name=sign_vote_request,json=signVoteRequest,proto3,oneof" json:"sign_vote_request,omitempty"`
|
|
}
|
|
type Message_SignedVoteResponse struct {
|
|
SignedVoteResponse *SignedVoteResponse `protobuf:"bytes,4,opt,name=signed_vote_response,json=signedVoteResponse,proto3,oneof" json:"signed_vote_response,omitempty"`
|
|
}
|
|
type Message_SignProposalRequest struct {
|
|
SignProposalRequest *SignProposalRequest `protobuf:"bytes,5,opt,name=sign_proposal_request,json=signProposalRequest,proto3,oneof" json:"sign_proposal_request,omitempty"`
|
|
}
|
|
type Message_SignedProposalResponse struct {
|
|
SignedProposalResponse *SignedProposalResponse `protobuf:"bytes,6,opt,name=signed_proposal_response,json=signedProposalResponse,proto3,oneof" json:"signed_proposal_response,omitempty"`
|
|
}
|
|
type Message_PingRequest struct {
|
|
PingRequest *PingRequest `protobuf:"bytes,7,opt,name=ping_request,json=pingRequest,proto3,oneof" json:"ping_request,omitempty"`
|
|
}
|
|
type Message_PingResponse struct {
|
|
PingResponse *PingResponse `protobuf:"bytes,8,opt,name=ping_response,json=pingResponse,proto3,oneof" json:"ping_response,omitempty"`
|
|
}
|
|
|
|
func (*Message_PubKeyRequest) isMessage_Sum() {}
|
|
func (*Message_PubKeyResponse) isMessage_Sum() {}
|
|
func (*Message_SignVoteRequest) isMessage_Sum() {}
|
|
func (*Message_SignedVoteResponse) isMessage_Sum() {}
|
|
func (*Message_SignProposalRequest) isMessage_Sum() {}
|
|
func (*Message_SignedProposalResponse) isMessage_Sum() {}
|
|
func (*Message_PingRequest) isMessage_Sum() {}
|
|
func (*Message_PingResponse) isMessage_Sum() {}
|
|
|
|
func (m *Message) GetSum() isMessage_Sum {
|
|
if m != nil {
|
|
return m.Sum
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Message) GetPubKeyRequest() *PubKeyRequest {
|
|
if x, ok := m.GetSum().(*Message_PubKeyRequest); ok {
|
|
return x.PubKeyRequest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Message) GetPubKeyResponse() *PubKeyResponse {
|
|
if x, ok := m.GetSum().(*Message_PubKeyResponse); ok {
|
|
return x.PubKeyResponse
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Message) GetSignVoteRequest() *SignVoteRequest {
|
|
if x, ok := m.GetSum().(*Message_SignVoteRequest); ok {
|
|
return x.SignVoteRequest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Message) GetSignedVoteResponse() *SignedVoteResponse {
|
|
if x, ok := m.GetSum().(*Message_SignedVoteResponse); ok {
|
|
return x.SignedVoteResponse
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Message) GetSignProposalRequest() *SignProposalRequest {
|
|
if x, ok := m.GetSum().(*Message_SignProposalRequest); ok {
|
|
return x.SignProposalRequest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Message) GetSignedProposalResponse() *SignedProposalResponse {
|
|
if x, ok := m.GetSum().(*Message_SignedProposalResponse); ok {
|
|
return x.SignedProposalResponse
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Message) GetPingRequest() *PingRequest {
|
|
if x, ok := m.GetSum().(*Message_PingRequest); ok {
|
|
return x.PingRequest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Message) GetPingResponse() *PingResponse {
|
|
if x, ok := m.GetSum().(*Message_PingResponse); ok {
|
|
return x.PingResponse
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*Message) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*Message_PubKeyRequest)(nil),
|
|
(*Message_PubKeyResponse)(nil),
|
|
(*Message_SignVoteRequest)(nil),
|
|
(*Message_SignedVoteResponse)(nil),
|
|
(*Message_SignProposalRequest)(nil),
|
|
(*Message_SignedProposalResponse)(nil),
|
|
(*Message_PingRequest)(nil),
|
|
(*Message_PingResponse)(nil),
|
|
}
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*RemoteSignerError)(nil), "tendermint.privval.RemoteSignerError")
|
|
proto.RegisterType((*PubKeyRequest)(nil), "tendermint.privval.PubKeyRequest")
|
|
proto.RegisterType((*PubKeyResponse)(nil), "tendermint.privval.PubKeyResponse")
|
|
proto.RegisterType((*SignVoteRequest)(nil), "tendermint.privval.SignVoteRequest")
|
|
proto.RegisterType((*SignedVoteResponse)(nil), "tendermint.privval.SignedVoteResponse")
|
|
proto.RegisterType((*SignProposalRequest)(nil), "tendermint.privval.SignProposalRequest")
|
|
proto.RegisterType((*SignedProposalResponse)(nil), "tendermint.privval.SignedProposalResponse")
|
|
proto.RegisterType((*PingRequest)(nil), "tendermint.privval.PingRequest")
|
|
proto.RegisterType((*PingResponse)(nil), "tendermint.privval.PingResponse")
|
|
proto.RegisterType((*Message)(nil), "tendermint.privval.Message")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("proto/privval/msgs.proto", fileDescriptor_9ec52cc5e378f9a4) }
|
|
|
|
var fileDescriptor_9ec52cc5e378f9a4 = []byte{
|
|
// 625 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x95, 0x4d, 0x6b, 0x13, 0x41,
|
|
0x18, 0xc7, 0x77, 0x6d, 0xd2, 0xd6, 0x27, 0x4d, 0x63, 0xa7, 0x5a, 0x43, 0xc0, 0x34, 0xae, 0x58,
|
|
0x4b, 0x0f, 0xbb, 0x50, 0xc1, 0x83, 0x2f, 0x97, 0xa2, 0xb8, 0x52, 0x94, 0x38, 0x05, 0x0f, 0x05,
|
|
0x09, 0x79, 0x19, 0xb7, 0x4b, 0x9b, 0x9d, 0x71, 0x66, 0xb6, 0xb0, 0x07, 0x3f, 0x80, 0x07, 0xc1,
|
|
0xcf, 0xe2, 0xa7, 0xe8, 0xb1, 0x47, 0x4f, 0x22, 0xcd, 0x17, 0x91, 0x9d, 0x99, 0xcd, 0x6e, 0xde,
|
|
0x84, 0xd2, 0xdb, 0xce, 0x33, 0xf3, 0xfc, 0xe6, 0xf7, 0x64, 0xfe, 0x10, 0xa8, 0x33, 0x4e, 0x25,
|
|
0xf5, 0x18, 0x0f, 0xcf, 0xcf, 0xbb, 0x67, 0xde, 0x50, 0x04, 0xc2, 0x55, 0x25, 0x84, 0x24, 0x89,
|
|
0x06, 0x84, 0x0f, 0xc3, 0x48, 0xba, 0x66, 0xbb, 0xb1, 0x23, 0x4f, 0x42, 0x3e, 0xe8, 0xb0, 0x2e,
|
|
0x97, 0x89, 0xa7, 0x3b, 0x03, 0x1a, 0xd0, 0xfc, 0x4b, 0xf7, 0x36, 0x1e, 0xe8, 0x4a, 0x9f, 0x27,
|
|
0x4c, 0x52, 0xef, 0x94, 0x24, 0xc2, 0x93, 0x09, 0x23, 0x06, 0xdd, 0xb8, 0xaf, 0xb7, 0x55, 0xa9,
|
|
0xb8, 0xe1, 0xbc, 0x83, 0x0d, 0x4c, 0x86, 0x54, 0x92, 0xa3, 0x30, 0x88, 0x08, 0x7f, 0xc3, 0x39,
|
|
0xe5, 0x08, 0x41, 0xa9, 0x4f, 0x07, 0xa4, 0x6e, 0xb7, 0xec, 0xdd, 0x32, 0x56, 0xdf, 0xa8, 0x05,
|
|
0x95, 0x01, 0x11, 0x7d, 0x1e, 0x32, 0x19, 0xd2, 0xa8, 0x7e, 0xab, 0x65, 0xef, 0xde, 0xc6, 0xc5,
|
|
0x92, 0x53, 0x83, 0x6a, 0x3b, 0xee, 0x1d, 0x92, 0x04, 0x93, 0xaf, 0x31, 0x11, 0xd2, 0xf9, 0x6e,
|
|
0xc3, 0x7a, 0x56, 0x11, 0x8c, 0x46, 0x82, 0xa0, 0xe7, 0xb0, 0xc2, 0xe2, 0x5e, 0xe7, 0x94, 0x24,
|
|
0x0a, 0x5e, 0xd9, 0x7f, 0xe8, 0x16, 0x86, 0xd6, 0xf6, 0x6e, 0x6a, 0xef, 0xb6, 0xe3, 0xde, 0x59,
|
|
0xd8, 0x4f, 0x7b, 0x97, 0x99, 0x62, 0xa0, 0x17, 0x50, 0x26, 0xa9, 0x9e, 0xba, 0xbb, 0xb2, 0xff,
|
|
0xd8, 0x9d, 0xfd, 0xb9, 0xdc, 0x99, 0x59, 0xb0, 0xee, 0x71, 0x5e, 0x41, 0x2d, 0xad, 0x7e, 0xa2,
|
|
0x92, 0x18, 0x3d, 0xb4, 0x07, 0xa5, 0x73, 0x2a, 0x89, 0x11, 0xd9, 0x2a, 0xe2, 0xf4, 0x2f, 0xa4,
|
|
0x0e, 0xab, 0x33, 0xce, 0x37, 0x40, 0x0a, 0x3a, 0xd0, 0x00, 0x33, 0xcd, 0x35, 0x08, 0x37, 0xb3,
|
|
0x3f, 0x82, 0xcd, 0xb4, 0xda, 0xe6, 0x94, 0x51, 0xd1, 0x3d, 0xcb, 0x26, 0x78, 0x09, 0xab, 0xcc,
|
|
0x94, 0x8c, 0x43, 0x63, 0xd6, 0x21, 0x6b, 0x3a, 0x28, 0x5d, 0xfc, 0xd9, 0xb6, 0xf0, 0xb8, 0xc3,
|
|
0xf9, 0x61, 0xc3, 0x96, 0x1e, 0x2a, 0xe7, 0x9a, 0xc1, 0x9e, 0x5d, 0x07, 0x9c, 0x23, 0x6f, 0x36,
|
|
0x64, 0x15, 0x2a, 0xed, 0x30, 0x0a, 0xb2, 0xf4, 0xac, 0xc3, 0x9a, 0x5e, 0x6a, 0x27, 0xe7, 0x57,
|
|
0x19, 0x56, 0xde, 0x13, 0x21, 0xba, 0x01, 0x41, 0x87, 0x50, 0x33, 0x31, 0xea, 0x70, 0x7d, 0x7c,
|
|
0x5e, 0x9c, 0xb2, 0x1b, 0x27, 0x52, 0xe9, 0x5b, 0xb8, 0xca, 0x8a, 0x05, 0xf4, 0x01, 0xee, 0xe4,
|
|
0x30, 0x7d, 0x99, 0xf1, 0x77, 0xfe, 0x47, 0xd3, 0x27, 0x7d, 0x0b, 0xaf, 0xb3, 0xc9, 0x8c, 0x7f,
|
|
0x84, 0x0d, 0x11, 0x06, 0x51, 0x27, 0x7d, 0xf6, 0xb1, 0xde, 0x92, 0x02, 0x3e, 0x9a, 0x07, 0x9c,
|
|
0xca, 0xa5, 0x6f, 0xe1, 0x9a, 0x98, 0x8a, 0xea, 0x31, 0xdc, 0x15, 0xea, 0xa5, 0x32, 0xa8, 0xd1,
|
|
0x2c, 0x29, 0xea, 0xce, 0x22, 0xea, 0x64, 0x5c, 0x7d, 0x0b, 0x23, 0x31, 0x1b, 0xe2, 0xcf, 0x70,
|
|
0x4f, 0xe9, 0x66, 0x8f, 0x38, 0x56, 0x2e, 0x2b, 0xf8, 0x93, 0x45, 0xf0, 0xa9, 0x30, 0xfa, 0x16,
|
|
0xde, 0x14, 0x73, 0x32, 0xfa, 0x05, 0xea, 0x46, 0xbd, 0x70, 0x81, 0xd1, 0x5f, 0x56, 0x37, 0xec,
|
|
0x2d, 0xd6, 0x9f, 0x0e, 0xa6, 0x6f, 0xe1, 0x2d, 0x31, 0x3f, 0xb2, 0xaf, 0x61, 0x8d, 0x85, 0x51,
|
|
0x30, 0xb6, 0x5f, 0x51, 0xec, 0xed, 0xb9, 0x2f, 0x98, 0xa7, 0xcc, 0xb7, 0x70, 0x85, 0xe5, 0x4b,
|
|
0xf4, 0x16, 0xaa, 0x86, 0x62, 0x14, 0x57, 0x15, 0xa6, 0xb5, 0x18, 0x33, 0x16, 0x5b, 0x63, 0x85,
|
|
0xf5, 0x41, 0x19, 0x96, 0x44, 0x3c, 0x3c, 0xf0, 0x2f, 0xae, 0x9a, 0xf6, 0xe5, 0x55, 0xd3, 0xfe,
|
|
0x7b, 0xd5, 0xb4, 0x7f, 0x8e, 0x9a, 0xd6, 0xe5, 0xa8, 0x69, 0xfd, 0x1e, 0x35, 0xad, 0x63, 0x37,
|
|
0x08, 0xe5, 0x49, 0xdc, 0x73, 0xfb, 0x74, 0xe8, 0xe5, 0xf0, 0xe2, 0xe7, 0xc4, 0xff, 0x44, 0x6f,
|
|
0x59, 0x2d, 0x9f, 0xfe, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x49, 0xf1, 0xd7, 0x3f, 0x06, 0x00,
|
|
0x00,
|
|
}
|
|
|
|
func (m *RemoteSignerError) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *RemoteSignerError) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *RemoteSignerError) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Description) > 0 {
|
|
i -= len(m.Description)
|
|
copy(dAtA[i:], m.Description)
|
|
i = encodeVarintMsgs(dAtA, i, uint64(len(m.Description)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.Code != 0 {
|
|
i = encodeVarintMsgs(dAtA, i, uint64(m.Code))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *PubKeyRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *PubKeyRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *PubKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *PubKeyResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *PubKeyResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *PubKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Error != nil {
|
|
{
|
|
size, err := m.Error.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMsgs(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.PubKey != nil {
|
|
{
|
|
size, err := m.PubKey.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMsgs(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *SignVoteRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *SignVoteRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *SignVoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Vote != nil {
|
|
{
|
|
size, err := m.Vote.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMsgs(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *SignedVoteResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *SignedVoteResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *SignedVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Error != nil {
|
|
{
|
|
size, err := m.Error.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMsgs(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.Vote != nil {
|
|
{
|
|
size, err := m.Vote.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMsgs(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *SignProposalRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *SignProposalRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *SignProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
{
|
|
size, err := m.Proposal.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMsgs(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *SignedProposalResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *SignedProposalResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *SignedProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Error != nil {
|
|
{
|
|
size, err := m.Error.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMsgs(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.Proposal != nil {
|
|
{
|
|
size, err := m.Proposal.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMsgs(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *PingRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *PingRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *PingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *PingResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *PingResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *PingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *Message) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *Message) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Sum != nil {
|
|
{
|
|
size := m.Sum.Size()
|
|
i -= size
|
|
if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil {
|
|
return 0, err
|
|
}
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *Message_PubKeyRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Message_PubKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
if m.PubKeyRequest != nil {
|
|
{
|
|
size, err := m.PubKeyRequest.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMsgs(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *Message_PubKeyResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Message_PubKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
if m.PubKeyResponse != nil {
|
|
{
|
|
size, err := m.PubKeyResponse.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMsgs(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *Message_SignVoteRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Message_SignVoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
if m.SignVoteRequest != nil {
|
|
{
|
|
size, err := m.SignVoteRequest.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMsgs(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *Message_SignedVoteResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Message_SignedVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
if m.SignedVoteResponse != nil {
|
|
{
|
|
size, err := m.SignedVoteResponse.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMsgs(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *Message_SignProposalRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Message_SignProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
if m.SignProposalRequest != nil {
|
|
{
|
|
size, err := m.SignProposalRequest.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMsgs(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *Message_SignedProposalResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Message_SignedProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
if m.SignedProposalResponse != nil {
|
|
{
|
|
size, err := m.SignedProposalResponse.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMsgs(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x32
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *Message_PingRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Message_PingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
if m.PingRequest != nil {
|
|
{
|
|
size, err := m.PingRequest.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMsgs(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x3a
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func (m *Message_PingResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Message_PingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
if m.PingResponse != nil {
|
|
{
|
|
size, err := m.PingResponse.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintMsgs(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x42
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
func encodeVarintMsgs(dAtA []byte, offset int, v uint64) int {
|
|
offset -= sovMsgs(v)
|
|
base := offset
|
|
for v >= 1<<7 {
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
v >>= 7
|
|
offset++
|
|
}
|
|
dAtA[offset] = uint8(v)
|
|
return base
|
|
}
|
|
func (m *RemoteSignerError) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Code != 0 {
|
|
n += 1 + sovMsgs(uint64(m.Code))
|
|
}
|
|
l = len(m.Description)
|
|
if l > 0 {
|
|
n += 1 + l + sovMsgs(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *PubKeyRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
return n
|
|
}
|
|
|
|
func (m *PubKeyResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.PubKey != nil {
|
|
l = m.PubKey.Size()
|
|
n += 1 + l + sovMsgs(uint64(l))
|
|
}
|
|
if m.Error != nil {
|
|
l = m.Error.Size()
|
|
n += 1 + l + sovMsgs(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *SignVoteRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Vote != nil {
|
|
l = m.Vote.Size()
|
|
n += 1 + l + sovMsgs(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *SignedVoteResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Vote != nil {
|
|
l = m.Vote.Size()
|
|
n += 1 + l + sovMsgs(uint64(l))
|
|
}
|
|
if m.Error != nil {
|
|
l = m.Error.Size()
|
|
n += 1 + l + sovMsgs(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *SignProposalRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = m.Proposal.Size()
|
|
n += 1 + l + sovMsgs(uint64(l))
|
|
return n
|
|
}
|
|
|
|
func (m *SignedProposalResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Proposal != nil {
|
|
l = m.Proposal.Size()
|
|
n += 1 + l + sovMsgs(uint64(l))
|
|
}
|
|
if m.Error != nil {
|
|
l = m.Error.Size()
|
|
n += 1 + l + sovMsgs(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *PingRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
return n
|
|
}
|
|
|
|
func (m *PingResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
return n
|
|
}
|
|
|
|
func (m *Message) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Sum != nil {
|
|
n += m.Sum.Size()
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *Message_PubKeyRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.PubKeyRequest != nil {
|
|
l = m.PubKeyRequest.Size()
|
|
n += 1 + l + sovMsgs(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
func (m *Message_PubKeyResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.PubKeyResponse != nil {
|
|
l = m.PubKeyResponse.Size()
|
|
n += 1 + l + sovMsgs(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
func (m *Message_SignVoteRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.SignVoteRequest != nil {
|
|
l = m.SignVoteRequest.Size()
|
|
n += 1 + l + sovMsgs(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
func (m *Message_SignedVoteResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.SignedVoteResponse != nil {
|
|
l = m.SignedVoteResponse.Size()
|
|
n += 1 + l + sovMsgs(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
func (m *Message_SignProposalRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.SignProposalRequest != nil {
|
|
l = m.SignProposalRequest.Size()
|
|
n += 1 + l + sovMsgs(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
func (m *Message_SignedProposalResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.SignedProposalResponse != nil {
|
|
l = m.SignedProposalResponse.Size()
|
|
n += 1 + l + sovMsgs(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
func (m *Message_PingRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.PingRequest != nil {
|
|
l = m.PingRequest.Size()
|
|
n += 1 + l + sovMsgs(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
func (m *Message_PingResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.PingResponse != nil {
|
|
l = m.PingResponse.Size()
|
|
n += 1 + l + sovMsgs(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func sovMsgs(x uint64) (n int) {
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
}
|
|
func sozMsgs(x uint64) (n int) {
|
|
return sovMsgs(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
}
|
|
func (m *RemoteSignerError) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: RemoteSignerError: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: RemoteSignerError: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
|
|
}
|
|
m.Code = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Code |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Description = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipMsgs(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *PubKeyRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: PubKeyRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: PubKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipMsgs(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *PubKeyResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: PubKeyResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: PubKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.PubKey == nil {
|
|
m.PubKey = &keys.PublicKey{}
|
|
}
|
|
if err := m.PubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Error == nil {
|
|
m.Error = &RemoteSignerError{}
|
|
}
|
|
if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipMsgs(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *SignVoteRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: SignVoteRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: SignVoteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Vote == nil {
|
|
m.Vote = &types.Vote{}
|
|
}
|
|
if err := m.Vote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipMsgs(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *SignedVoteResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: SignedVoteResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: SignedVoteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Vote == nil {
|
|
m.Vote = &types.Vote{}
|
|
}
|
|
if err := m.Vote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Error == nil {
|
|
m.Error = &RemoteSignerError{}
|
|
}
|
|
if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipMsgs(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *SignProposalRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: SignProposalRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: SignProposalRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipMsgs(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *SignedProposalResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: SignedProposalResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: SignedProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Proposal == nil {
|
|
m.Proposal = &types.Proposal{}
|
|
}
|
|
if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Error == nil {
|
|
m.Error = &RemoteSignerError{}
|
|
}
|
|
if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipMsgs(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *PingRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: PingRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: PingRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipMsgs(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *PingResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: PingResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: PingResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipMsgs(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *Message) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: Message: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PubKeyRequest", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v := &PubKeyRequest{}
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
m.Sum = &Message_PubKeyRequest{v}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PubKeyResponse", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v := &PubKeyResponse{}
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
m.Sum = &Message_PubKeyResponse{v}
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SignVoteRequest", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v := &SignVoteRequest{}
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
m.Sum = &Message_SignVoteRequest{v}
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SignedVoteResponse", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v := &SignedVoteResponse{}
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
m.Sum = &Message_SignedVoteResponse{v}
|
|
iNdEx = postIndex
|
|
case 5:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SignProposalRequest", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v := &SignProposalRequest{}
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
m.Sum = &Message_SignProposalRequest{v}
|
|
iNdEx = postIndex
|
|
case 6:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SignedProposalResponse", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v := &SignedProposalResponse{}
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
m.Sum = &Message_SignedProposalResponse{v}
|
|
iNdEx = postIndex
|
|
case 7:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PingRequest", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v := &PingRequest{}
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
m.Sum = &Message_PingRequest{v}
|
|
iNdEx = postIndex
|
|
case 8:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PingResponse", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
v := &PingResponse{}
|
|
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
m.Sum = &Message_PingResponse{v}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipMsgs(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if skippy < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if (iNdEx + skippy) < 0 {
|
|
return ErrInvalidLengthMsgs
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func skipMsgs(dAtA []byte) (n int, err error) {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
depth := 0
|
|
for iNdEx < l {
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
wireType := int(wire & 0x7)
|
|
switch wireType {
|
|
case 0:
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx++
|
|
if dAtA[iNdEx-1] < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 1:
|
|
iNdEx += 8
|
|
case 2:
|
|
var length int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowMsgs
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
length |= (int(b) & 0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if length < 0 {
|
|
return 0, ErrInvalidLengthMsgs
|
|
}
|
|
iNdEx += length
|
|
case 3:
|
|
depth++
|
|
case 4:
|
|
if depth == 0 {
|
|
return 0, ErrUnexpectedEndOfGroupMsgs
|
|
}
|
|
depth--
|
|
case 5:
|
|
iNdEx += 4
|
|
default:
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
}
|
|
if iNdEx < 0 {
|
|
return 0, ErrInvalidLengthMsgs
|
|
}
|
|
if depth == 0 {
|
|
return iNdEx, nil
|
|
}
|
|
}
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
|
|
var (
|
|
ErrInvalidLengthMsgs = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
ErrIntOverflowMsgs = fmt.Errorf("proto: integer overflow")
|
|
ErrUnexpectedEndOfGroupMsgs = fmt.Errorf("proto: unexpected end of group")
|
|
)
|