You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1801 lines
42 KiB

  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: proto/privval/msgs.proto
  3. package privval
  4. import (
  5. fmt "fmt"
  6. _ "github.com/gogo/protobuf/gogoproto"
  7. proto "github.com/gogo/protobuf/proto"
  8. keys "github.com/tendermint/tendermint/proto/crypto/keys"
  9. types "github.com/tendermint/tendermint/proto/types"
  10. io "io"
  11. math "math"
  12. math_bits "math/bits"
  13. )
  14. // Reference imports to suppress errors if they are not otherwise used.
  15. var _ = proto.Marshal
  16. var _ = fmt.Errorf
  17. var _ = math.Inf
  18. // This is a compile-time assertion to ensure that this generated file
  19. // is compatible with the proto package it is being compiled against.
  20. // A compilation error at this line likely means your copy of the
  21. // proto package needs to be updated.
  22. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  23. type RemoteSignerError struct {
  24. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  25. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
  26. }
  27. func (m *RemoteSignerError) Reset() { *m = RemoteSignerError{} }
  28. func (m *RemoteSignerError) String() string { return proto.CompactTextString(m) }
  29. func (*RemoteSignerError) ProtoMessage() {}
  30. func (*RemoteSignerError) Descriptor() ([]byte, []int) {
  31. return fileDescriptor_9ec52cc5e378f9a4, []int{0}
  32. }
  33. func (m *RemoteSignerError) XXX_Unmarshal(b []byte) error {
  34. return m.Unmarshal(b)
  35. }
  36. func (m *RemoteSignerError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  37. if deterministic {
  38. return xxx_messageInfo_RemoteSignerError.Marshal(b, m, deterministic)
  39. } else {
  40. b = b[:cap(b)]
  41. n, err := m.MarshalToSizedBuffer(b)
  42. if err != nil {
  43. return nil, err
  44. }
  45. return b[:n], nil
  46. }
  47. }
  48. func (m *RemoteSignerError) XXX_Merge(src proto.Message) {
  49. xxx_messageInfo_RemoteSignerError.Merge(m, src)
  50. }
  51. func (m *RemoteSignerError) XXX_Size() int {
  52. return m.Size()
  53. }
  54. func (m *RemoteSignerError) XXX_DiscardUnknown() {
  55. xxx_messageInfo_RemoteSignerError.DiscardUnknown(m)
  56. }
  57. var xxx_messageInfo_RemoteSignerError proto.InternalMessageInfo
  58. func (m *RemoteSignerError) GetCode() int32 {
  59. if m != nil {
  60. return m.Code
  61. }
  62. return 0
  63. }
  64. func (m *RemoteSignerError) GetDescription() string {
  65. if m != nil {
  66. return m.Description
  67. }
  68. return ""
  69. }
  70. // PubKeyRequest requests the consensus public key from the remote signer.
  71. type PubKeyRequest struct {
  72. }
  73. func (m *PubKeyRequest) Reset() { *m = PubKeyRequest{} }
  74. func (m *PubKeyRequest) String() string { return proto.CompactTextString(m) }
  75. func (*PubKeyRequest) ProtoMessage() {}
  76. func (*PubKeyRequest) Descriptor() ([]byte, []int) {
  77. return fileDescriptor_9ec52cc5e378f9a4, []int{1}
  78. }
  79. func (m *PubKeyRequest) XXX_Unmarshal(b []byte) error {
  80. return m.Unmarshal(b)
  81. }
  82. func (m *PubKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  83. if deterministic {
  84. return xxx_messageInfo_PubKeyRequest.Marshal(b, m, deterministic)
  85. } else {
  86. b = b[:cap(b)]
  87. n, err := m.MarshalToSizedBuffer(b)
  88. if err != nil {
  89. return nil, err
  90. }
  91. return b[:n], nil
  92. }
  93. }
  94. func (m *PubKeyRequest) XXX_Merge(src proto.Message) {
  95. xxx_messageInfo_PubKeyRequest.Merge(m, src)
  96. }
  97. func (m *PubKeyRequest) XXX_Size() int {
  98. return m.Size()
  99. }
  100. func (m *PubKeyRequest) XXX_DiscardUnknown() {
  101. xxx_messageInfo_PubKeyRequest.DiscardUnknown(m)
  102. }
  103. var xxx_messageInfo_PubKeyRequest proto.InternalMessageInfo
  104. // PubKeyResponse is a response message containing the public key.
  105. type PubKeyResponse struct {
  106. PubKey keys.PublicKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key"`
  107. Error *RemoteSignerError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
  108. }
  109. func (m *PubKeyResponse) Reset() { *m = PubKeyResponse{} }
  110. func (m *PubKeyResponse) String() string { return proto.CompactTextString(m) }
  111. func (*PubKeyResponse) ProtoMessage() {}
  112. func (*PubKeyResponse) Descriptor() ([]byte, []int) {
  113. return fileDescriptor_9ec52cc5e378f9a4, []int{2}
  114. }
  115. func (m *PubKeyResponse) XXX_Unmarshal(b []byte) error {
  116. return m.Unmarshal(b)
  117. }
  118. func (m *PubKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  119. if deterministic {
  120. return xxx_messageInfo_PubKeyResponse.Marshal(b, m, deterministic)
  121. } else {
  122. b = b[:cap(b)]
  123. n, err := m.MarshalToSizedBuffer(b)
  124. if err != nil {
  125. return nil, err
  126. }
  127. return b[:n], nil
  128. }
  129. }
  130. func (m *PubKeyResponse) XXX_Merge(src proto.Message) {
  131. xxx_messageInfo_PubKeyResponse.Merge(m, src)
  132. }
  133. func (m *PubKeyResponse) XXX_Size() int {
  134. return m.Size()
  135. }
  136. func (m *PubKeyResponse) XXX_DiscardUnknown() {
  137. xxx_messageInfo_PubKeyResponse.DiscardUnknown(m)
  138. }
  139. var xxx_messageInfo_PubKeyResponse proto.InternalMessageInfo
  140. func (m *PubKeyResponse) GetPubKey() keys.PublicKey {
  141. if m != nil {
  142. return m.PubKey
  143. }
  144. return keys.PublicKey{}
  145. }
  146. func (m *PubKeyResponse) GetError() *RemoteSignerError {
  147. if m != nil {
  148. return m.Error
  149. }
  150. return nil
  151. }
  152. // SignVoteRequest is a request to sign a vote
  153. type SignVoteRequest struct {
  154. Vote types.Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote"`
  155. }
  156. func (m *SignVoteRequest) Reset() { *m = SignVoteRequest{} }
  157. func (m *SignVoteRequest) String() string { return proto.CompactTextString(m) }
  158. func (*SignVoteRequest) ProtoMessage() {}
  159. func (*SignVoteRequest) Descriptor() ([]byte, []int) {
  160. return fileDescriptor_9ec52cc5e378f9a4, []int{3}
  161. }
  162. func (m *SignVoteRequest) XXX_Unmarshal(b []byte) error {
  163. return m.Unmarshal(b)
  164. }
  165. func (m *SignVoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  166. if deterministic {
  167. return xxx_messageInfo_SignVoteRequest.Marshal(b, m, deterministic)
  168. } else {
  169. b = b[:cap(b)]
  170. n, err := m.MarshalToSizedBuffer(b)
  171. if err != nil {
  172. return nil, err
  173. }
  174. return b[:n], nil
  175. }
  176. }
  177. func (m *SignVoteRequest) XXX_Merge(src proto.Message) {
  178. xxx_messageInfo_SignVoteRequest.Merge(m, src)
  179. }
  180. func (m *SignVoteRequest) XXX_Size() int {
  181. return m.Size()
  182. }
  183. func (m *SignVoteRequest) XXX_DiscardUnknown() {
  184. xxx_messageInfo_SignVoteRequest.DiscardUnknown(m)
  185. }
  186. var xxx_messageInfo_SignVoteRequest proto.InternalMessageInfo
  187. func (m *SignVoteRequest) GetVote() types.Vote {
  188. if m != nil {
  189. return m.Vote
  190. }
  191. return types.Vote{}
  192. }
  193. // SignedVoteResponse is a response containing a signed vote or an error
  194. type SignVoteResponse struct {
  195. Vote types.Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote"`
  196. Error *RemoteSignerError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
  197. }
  198. func (m *SignVoteResponse) Reset() { *m = SignVoteResponse{} }
  199. func (m *SignVoteResponse) String() string { return proto.CompactTextString(m) }
  200. func (*SignVoteResponse) ProtoMessage() {}
  201. func (*SignVoteResponse) Descriptor() ([]byte, []int) {
  202. return fileDescriptor_9ec52cc5e378f9a4, []int{4}
  203. }
  204. func (m *SignVoteResponse) XXX_Unmarshal(b []byte) error {
  205. return m.Unmarshal(b)
  206. }
  207. func (m *SignVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  208. if deterministic {
  209. return xxx_messageInfo_SignVoteResponse.Marshal(b, m, deterministic)
  210. } else {
  211. b = b[:cap(b)]
  212. n, err := m.MarshalToSizedBuffer(b)
  213. if err != nil {
  214. return nil, err
  215. }
  216. return b[:n], nil
  217. }
  218. }
  219. func (m *SignVoteResponse) XXX_Merge(src proto.Message) {
  220. xxx_messageInfo_SignVoteResponse.Merge(m, src)
  221. }
  222. func (m *SignVoteResponse) XXX_Size() int {
  223. return m.Size()
  224. }
  225. func (m *SignVoteResponse) XXX_DiscardUnknown() {
  226. xxx_messageInfo_SignVoteResponse.DiscardUnknown(m)
  227. }
  228. var xxx_messageInfo_SignVoteResponse proto.InternalMessageInfo
  229. func (m *SignVoteResponse) GetVote() types.Vote {
  230. if m != nil {
  231. return m.Vote
  232. }
  233. return types.Vote{}
  234. }
  235. func (m *SignVoteResponse) GetError() *RemoteSignerError {
  236. if m != nil {
  237. return m.Error
  238. }
  239. return nil
  240. }
  241. // SignProposalRequest is a request to sign a proposal
  242. type SignProposalRequest struct {
  243. Proposal types.Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal"`
  244. }
  245. func (m *SignProposalRequest) Reset() { *m = SignProposalRequest{} }
  246. func (m *SignProposalRequest) String() string { return proto.CompactTextString(m) }
  247. func (*SignProposalRequest) ProtoMessage() {}
  248. func (*SignProposalRequest) Descriptor() ([]byte, []int) {
  249. return fileDescriptor_9ec52cc5e378f9a4, []int{5}
  250. }
  251. func (m *SignProposalRequest) XXX_Unmarshal(b []byte) error {
  252. return m.Unmarshal(b)
  253. }
  254. func (m *SignProposalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  255. if deterministic {
  256. return xxx_messageInfo_SignProposalRequest.Marshal(b, m, deterministic)
  257. } else {
  258. b = b[:cap(b)]
  259. n, err := m.MarshalToSizedBuffer(b)
  260. if err != nil {
  261. return nil, err
  262. }
  263. return b[:n], nil
  264. }
  265. }
  266. func (m *SignProposalRequest) XXX_Merge(src proto.Message) {
  267. xxx_messageInfo_SignProposalRequest.Merge(m, src)
  268. }
  269. func (m *SignProposalRequest) XXX_Size() int {
  270. return m.Size()
  271. }
  272. func (m *SignProposalRequest) XXX_DiscardUnknown() {
  273. xxx_messageInfo_SignProposalRequest.DiscardUnknown(m)
  274. }
  275. var xxx_messageInfo_SignProposalRequest proto.InternalMessageInfo
  276. func (m *SignProposalRequest) GetProposal() types.Proposal {
  277. if m != nil {
  278. return m.Proposal
  279. }
  280. return types.Proposal{}
  281. }
  282. // SignedProposalResponse is response containing a signed proposal or an error
  283. type SignedProposalResponse struct {
  284. Proposal types.Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal"`
  285. Error *RemoteSignerError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
  286. }
  287. func (m *SignedProposalResponse) Reset() { *m = SignedProposalResponse{} }
  288. func (m *SignedProposalResponse) String() string { return proto.CompactTextString(m) }
  289. func (*SignedProposalResponse) ProtoMessage() {}
  290. func (*SignedProposalResponse) Descriptor() ([]byte, []int) {
  291. return fileDescriptor_9ec52cc5e378f9a4, []int{6}
  292. }
  293. func (m *SignedProposalResponse) XXX_Unmarshal(b []byte) error {
  294. return m.Unmarshal(b)
  295. }
  296. func (m *SignedProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  297. if deterministic {
  298. return xxx_messageInfo_SignedProposalResponse.Marshal(b, m, deterministic)
  299. } else {
  300. b = b[:cap(b)]
  301. n, err := m.MarshalToSizedBuffer(b)
  302. if err != nil {
  303. return nil, err
  304. }
  305. return b[:n], nil
  306. }
  307. }
  308. func (m *SignedProposalResponse) XXX_Merge(src proto.Message) {
  309. xxx_messageInfo_SignedProposalResponse.Merge(m, src)
  310. }
  311. func (m *SignedProposalResponse) XXX_Size() int {
  312. return m.Size()
  313. }
  314. func (m *SignedProposalResponse) XXX_DiscardUnknown() {
  315. xxx_messageInfo_SignedProposalResponse.DiscardUnknown(m)
  316. }
  317. var xxx_messageInfo_SignedProposalResponse proto.InternalMessageInfo
  318. func (m *SignedProposalResponse) GetProposal() types.Proposal {
  319. if m != nil {
  320. return m.Proposal
  321. }
  322. return types.Proposal{}
  323. }
  324. func (m *SignedProposalResponse) GetError() *RemoteSignerError {
  325. if m != nil {
  326. return m.Error
  327. }
  328. return nil
  329. }
  330. // PingRequest is a request to confirm that the connection is alive.
  331. type PingRequest struct {
  332. }
  333. func (m *PingRequest) Reset() { *m = PingRequest{} }
  334. func (m *PingRequest) String() string { return proto.CompactTextString(m) }
  335. func (*PingRequest) ProtoMessage() {}
  336. func (*PingRequest) Descriptor() ([]byte, []int) {
  337. return fileDescriptor_9ec52cc5e378f9a4, []int{7}
  338. }
  339. func (m *PingRequest) XXX_Unmarshal(b []byte) error {
  340. return m.Unmarshal(b)
  341. }
  342. func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  343. if deterministic {
  344. return xxx_messageInfo_PingRequest.Marshal(b, m, deterministic)
  345. } else {
  346. b = b[:cap(b)]
  347. n, err := m.MarshalToSizedBuffer(b)
  348. if err != nil {
  349. return nil, err
  350. }
  351. return b[:n], nil
  352. }
  353. }
  354. func (m *PingRequest) XXX_Merge(src proto.Message) {
  355. xxx_messageInfo_PingRequest.Merge(m, src)
  356. }
  357. func (m *PingRequest) XXX_Size() int {
  358. return m.Size()
  359. }
  360. func (m *PingRequest) XXX_DiscardUnknown() {
  361. xxx_messageInfo_PingRequest.DiscardUnknown(m)
  362. }
  363. var xxx_messageInfo_PingRequest proto.InternalMessageInfo
  364. // PingResponse is a response to confirm that the connection is alive.
  365. type PingResponse struct {
  366. }
  367. func (m *PingResponse) Reset() { *m = PingResponse{} }
  368. func (m *PingResponse) String() string { return proto.CompactTextString(m) }
  369. func (*PingResponse) ProtoMessage() {}
  370. func (*PingResponse) Descriptor() ([]byte, []int) {
  371. return fileDescriptor_9ec52cc5e378f9a4, []int{8}
  372. }
  373. func (m *PingResponse) XXX_Unmarshal(b []byte) error {
  374. return m.Unmarshal(b)
  375. }
  376. func (m *PingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  377. if deterministic {
  378. return xxx_messageInfo_PingResponse.Marshal(b, m, deterministic)
  379. } else {
  380. b = b[:cap(b)]
  381. n, err := m.MarshalToSizedBuffer(b)
  382. if err != nil {
  383. return nil, err
  384. }
  385. return b[:n], nil
  386. }
  387. }
  388. func (m *PingResponse) XXX_Merge(src proto.Message) {
  389. xxx_messageInfo_PingResponse.Merge(m, src)
  390. }
  391. func (m *PingResponse) XXX_Size() int {
  392. return m.Size()
  393. }
  394. func (m *PingResponse) XXX_DiscardUnknown() {
  395. xxx_messageInfo_PingResponse.DiscardUnknown(m)
  396. }
  397. var xxx_messageInfo_PingResponse proto.InternalMessageInfo
  398. func init() {
  399. proto.RegisterType((*RemoteSignerError)(nil), "tendermint.proto.privval.RemoteSignerError")
  400. proto.RegisterType((*PubKeyRequest)(nil), "tendermint.proto.privval.PubKeyRequest")
  401. proto.RegisterType((*PubKeyResponse)(nil), "tendermint.proto.privval.PubKeyResponse")
  402. proto.RegisterType((*SignVoteRequest)(nil), "tendermint.proto.privval.SignVoteRequest")
  403. proto.RegisterType((*SignVoteResponse)(nil), "tendermint.proto.privval.SignVoteResponse")
  404. proto.RegisterType((*SignProposalRequest)(nil), "tendermint.proto.privval.SignProposalRequest")
  405. proto.RegisterType((*SignedProposalResponse)(nil), "tendermint.proto.privval.SignedProposalResponse")
  406. proto.RegisterType((*PingRequest)(nil), "tendermint.proto.privval.PingRequest")
  407. proto.RegisterType((*PingResponse)(nil), "tendermint.proto.privval.PingResponse")
  408. }
  409. func init() { proto.RegisterFile("proto/privval/msgs.proto", fileDescriptor_9ec52cc5e378f9a4) }
  410. var fileDescriptor_9ec52cc5e378f9a4 = []byte{
  411. // 430 bytes of a gzipped FileDescriptorProto
  412. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0x41, 0x6b, 0xd4, 0x40,
  413. 0x14, 0xc7, 0x77, 0x64, 0x5b, 0xf5, 0xad, 0x6d, 0x35, 0x82, 0x86, 0x45, 0x63, 0xc8, 0x41, 0x0b,
  414. 0xc2, 0x04, 0x2a, 0x78, 0x77, 0x41, 0xb1, 0xf4, 0x12, 0x22, 0x08, 0x7a, 0x29, 0x9b, 0xe4, 0x91,
  415. 0x0e, 0xdd, 0x64, 0xc6, 0x99, 0xc9, 0x42, 0x3e, 0x84, 0xe0, 0xdd, 0x83, 0x5f, 0xa7, 0xc7, 0x1e,
  416. 0x3d, 0x89, 0xec, 0x7e, 0x11, 0xc9, 0xcc, 0xc4, 0xac, 0x2c, 0xbd, 0xc8, 0xde, 0xde, 0xfc, 0xe7,
  417. 0xbd, 0xff, 0xfb, 0xff, 0x86, 0x04, 0x7c, 0x21, 0xb9, 0xe6, 0xb1, 0x90, 0x6c, 0xb9, 0x9c, 0x2f,
  418. 0xe2, 0x4a, 0x95, 0x8a, 0x1a, 0xc9, 0xf3, 0x35, 0xd6, 0x05, 0xca, 0x8a, 0xd5, 0xda, 0x2a, 0xd4,
  419. 0x35, 0x4d, 0x9f, 0xeb, 0x0b, 0x26, 0x8b, 0x73, 0x31, 0x97, 0xba, 0x8d, 0xed, 0x7c, 0xc9, 0x4b,
  420. 0x3e, 0x54, 0xb6, 0x7f, 0xfa, 0xd4, 0x2a, 0xb9, 0x6c, 0x85, 0xe6, 0xf1, 0x25, 0xb6, 0x2a, 0xd6,
  421. 0xad, 0x40, 0xb7, 0x60, 0xfa, 0xd8, 0x5e, 0x1b, 0x69, 0xf3, 0x22, 0x3a, 0x85, 0x07, 0x29, 0x56,
  422. 0x5c, 0xe3, 0x07, 0x56, 0xd6, 0x28, 0xdf, 0x4a, 0xc9, 0xa5, 0xe7, 0xc1, 0x38, 0xe7, 0x05, 0xfa,
  423. 0x24, 0x24, 0xc7, 0x7b, 0xa9, 0xa9, 0xbd, 0x10, 0x26, 0x05, 0xaa, 0x5c, 0x32, 0xa1, 0x19, 0xaf,
  424. 0xfd, 0x5b, 0x21, 0x39, 0xbe, 0x9b, 0x6e, 0x4a, 0xd1, 0x11, 0x1c, 0x24, 0x4d, 0x76, 0x86, 0x6d,
  425. 0x8a, 0x5f, 0x1a, 0x54, 0x3a, 0xfa, 0x4e, 0xe0, 0xb0, 0x57, 0x94, 0xe0, 0xb5, 0x42, 0xef, 0x1d,
  426. 0xdc, 0x16, 0x4d, 0x76, 0x7e, 0x89, 0xad, 0x31, 0x9f, 0x9c, 0xbc, 0xa0, 0x5b, 0xe8, 0x96, 0x81,
  427. 0x76, 0x0c, 0x34, 0x69, 0xb2, 0x05, 0xcb, 0xcf, 0xb0, 0x9d, 0x8d, 0xaf, 0x7e, 0x3d, 0x1b, 0xa5,
  428. 0xfb, 0xc2, 0xf8, 0x79, 0x6f, 0x60, 0x0f, 0xbb, 0xa8, 0x26, 0xc7, 0xe4, 0xe4, 0x25, 0xbd, 0xe9,
  429. 0x01, 0xe9, 0x16, 0x5d, 0x6a, 0x27, 0xa3, 0x53, 0x38, 0xea, 0xd4, 0x8f, 0x5c, 0xa3, 0x0b, 0xec,
  430. 0xbd, 0x86, 0xf1, 0x92, 0x6b, 0x74, 0xd1, 0x9e, 0x6c, 0x9b, 0xda, 0x97, 0xeb, 0x46, 0x5c, 0x1e,
  431. 0xd3, 0x1f, 0x7d, 0x25, 0x70, 0x7f, 0xf0, 0x72, 0xa8, 0xff, 0x69, 0xb6, 0x0b, 0xb4, 0x4f, 0xf0,
  432. 0xb0, 0x53, 0x13, 0xc9, 0x05, 0x57, 0xf3, 0x45, 0x8f, 0x37, 0x83, 0x3b, 0xc2, 0x49, 0x2e, 0x55,
  433. 0x78, 0x53, 0xaa, 0x7e, 0xd4, 0x25, 0xfb, 0x3b, 0x17, 0xfd, 0x20, 0xf0, 0xc8, 0x6c, 0x2c, 0x06,
  434. 0x77, 0x07, 0xbc, 0x03, 0xfb, 0x5d, 0xc0, 0x1f, 0xc0, 0x24, 0x61, 0x75, 0xd9, 0x7f, 0x84, 0x87,
  435. 0x70, 0xcf, 0x1e, 0x6d, 0xca, 0xd9, 0xfb, 0xab, 0x55, 0x40, 0xae, 0x57, 0x01, 0xf9, 0xbd, 0x0a,
  436. 0xc8, 0xb7, 0x75, 0x30, 0xba, 0x5e, 0x07, 0xa3, 0x9f, 0xeb, 0x60, 0xf4, 0x99, 0x96, 0x4c, 0x5f,
  437. 0x34, 0x19, 0xcd, 0x79, 0x15, 0x0f, 0x6b, 0x37, 0xcb, 0x7f, 0xfe, 0xdf, 0x6c, 0xdf, 0x1c, 0x5f,
  438. 0xfd, 0x09, 0x00, 0x00, 0xff, 0xff, 0x52, 0xa9, 0xe1, 0x74, 0xd7, 0x03, 0x00, 0x00,
  439. }
  440. func (m *RemoteSignerError) Marshal() (dAtA []byte, err error) {
  441. size := m.Size()
  442. dAtA = make([]byte, size)
  443. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  444. if err != nil {
  445. return nil, err
  446. }
  447. return dAtA[:n], nil
  448. }
  449. func (m *RemoteSignerError) MarshalTo(dAtA []byte) (int, error) {
  450. size := m.Size()
  451. return m.MarshalToSizedBuffer(dAtA[:size])
  452. }
  453. func (m *RemoteSignerError) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  454. i := len(dAtA)
  455. _ = i
  456. var l int
  457. _ = l
  458. if len(m.Description) > 0 {
  459. i -= len(m.Description)
  460. copy(dAtA[i:], m.Description)
  461. i = encodeVarintMsgs(dAtA, i, uint64(len(m.Description)))
  462. i--
  463. dAtA[i] = 0x12
  464. }
  465. if m.Code != 0 {
  466. i = encodeVarintMsgs(dAtA, i, uint64(m.Code))
  467. i--
  468. dAtA[i] = 0x8
  469. }
  470. return len(dAtA) - i, nil
  471. }
  472. func (m *PubKeyRequest) Marshal() (dAtA []byte, err error) {
  473. size := m.Size()
  474. dAtA = make([]byte, size)
  475. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  476. if err != nil {
  477. return nil, err
  478. }
  479. return dAtA[:n], nil
  480. }
  481. func (m *PubKeyRequest) MarshalTo(dAtA []byte) (int, error) {
  482. size := m.Size()
  483. return m.MarshalToSizedBuffer(dAtA[:size])
  484. }
  485. func (m *PubKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  486. i := len(dAtA)
  487. _ = i
  488. var l int
  489. _ = l
  490. return len(dAtA) - i, nil
  491. }
  492. func (m *PubKeyResponse) Marshal() (dAtA []byte, err error) {
  493. size := m.Size()
  494. dAtA = make([]byte, size)
  495. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  496. if err != nil {
  497. return nil, err
  498. }
  499. return dAtA[:n], nil
  500. }
  501. func (m *PubKeyResponse) MarshalTo(dAtA []byte) (int, error) {
  502. size := m.Size()
  503. return m.MarshalToSizedBuffer(dAtA[:size])
  504. }
  505. func (m *PubKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  506. i := len(dAtA)
  507. _ = i
  508. var l int
  509. _ = l
  510. if m.Error != nil {
  511. {
  512. size, err := m.Error.MarshalToSizedBuffer(dAtA[:i])
  513. if err != nil {
  514. return 0, err
  515. }
  516. i -= size
  517. i = encodeVarintMsgs(dAtA, i, uint64(size))
  518. }
  519. i--
  520. dAtA[i] = 0x12
  521. }
  522. {
  523. size, err := m.PubKey.MarshalToSizedBuffer(dAtA[:i])
  524. if err != nil {
  525. return 0, err
  526. }
  527. i -= size
  528. i = encodeVarintMsgs(dAtA, i, uint64(size))
  529. }
  530. i--
  531. dAtA[i] = 0xa
  532. return len(dAtA) - i, nil
  533. }
  534. func (m *SignVoteRequest) Marshal() (dAtA []byte, err error) {
  535. size := m.Size()
  536. dAtA = make([]byte, size)
  537. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  538. if err != nil {
  539. return nil, err
  540. }
  541. return dAtA[:n], nil
  542. }
  543. func (m *SignVoteRequest) MarshalTo(dAtA []byte) (int, error) {
  544. size := m.Size()
  545. return m.MarshalToSizedBuffer(dAtA[:size])
  546. }
  547. func (m *SignVoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  548. i := len(dAtA)
  549. _ = i
  550. var l int
  551. _ = l
  552. {
  553. size, err := m.Vote.MarshalToSizedBuffer(dAtA[:i])
  554. if err != nil {
  555. return 0, err
  556. }
  557. i -= size
  558. i = encodeVarintMsgs(dAtA, i, uint64(size))
  559. }
  560. i--
  561. dAtA[i] = 0xa
  562. return len(dAtA) - i, nil
  563. }
  564. func (m *SignVoteResponse) Marshal() (dAtA []byte, err error) {
  565. size := m.Size()
  566. dAtA = make([]byte, size)
  567. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  568. if err != nil {
  569. return nil, err
  570. }
  571. return dAtA[:n], nil
  572. }
  573. func (m *SignVoteResponse) MarshalTo(dAtA []byte) (int, error) {
  574. size := m.Size()
  575. return m.MarshalToSizedBuffer(dAtA[:size])
  576. }
  577. func (m *SignVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  578. i := len(dAtA)
  579. _ = i
  580. var l int
  581. _ = l
  582. if m.Error != nil {
  583. {
  584. size, err := m.Error.MarshalToSizedBuffer(dAtA[:i])
  585. if err != nil {
  586. return 0, err
  587. }
  588. i -= size
  589. i = encodeVarintMsgs(dAtA, i, uint64(size))
  590. }
  591. i--
  592. dAtA[i] = 0x12
  593. }
  594. {
  595. size, err := m.Vote.MarshalToSizedBuffer(dAtA[:i])
  596. if err != nil {
  597. return 0, err
  598. }
  599. i -= size
  600. i = encodeVarintMsgs(dAtA, i, uint64(size))
  601. }
  602. i--
  603. dAtA[i] = 0xa
  604. return len(dAtA) - i, nil
  605. }
  606. func (m *SignProposalRequest) Marshal() (dAtA []byte, err error) {
  607. size := m.Size()
  608. dAtA = make([]byte, size)
  609. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  610. if err != nil {
  611. return nil, err
  612. }
  613. return dAtA[:n], nil
  614. }
  615. func (m *SignProposalRequest) MarshalTo(dAtA []byte) (int, error) {
  616. size := m.Size()
  617. return m.MarshalToSizedBuffer(dAtA[:size])
  618. }
  619. func (m *SignProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  620. i := len(dAtA)
  621. _ = i
  622. var l int
  623. _ = l
  624. {
  625. size, err := m.Proposal.MarshalToSizedBuffer(dAtA[:i])
  626. if err != nil {
  627. return 0, err
  628. }
  629. i -= size
  630. i = encodeVarintMsgs(dAtA, i, uint64(size))
  631. }
  632. i--
  633. dAtA[i] = 0xa
  634. return len(dAtA) - i, nil
  635. }
  636. func (m *SignedProposalResponse) Marshal() (dAtA []byte, err error) {
  637. size := m.Size()
  638. dAtA = make([]byte, size)
  639. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  640. if err != nil {
  641. return nil, err
  642. }
  643. return dAtA[:n], nil
  644. }
  645. func (m *SignedProposalResponse) MarshalTo(dAtA []byte) (int, error) {
  646. size := m.Size()
  647. return m.MarshalToSizedBuffer(dAtA[:size])
  648. }
  649. func (m *SignedProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  650. i := len(dAtA)
  651. _ = i
  652. var l int
  653. _ = l
  654. if m.Error != nil {
  655. {
  656. size, err := m.Error.MarshalToSizedBuffer(dAtA[:i])
  657. if err != nil {
  658. return 0, err
  659. }
  660. i -= size
  661. i = encodeVarintMsgs(dAtA, i, uint64(size))
  662. }
  663. i--
  664. dAtA[i] = 0x12
  665. }
  666. {
  667. size, err := m.Proposal.MarshalToSizedBuffer(dAtA[:i])
  668. if err != nil {
  669. return 0, err
  670. }
  671. i -= size
  672. i = encodeVarintMsgs(dAtA, i, uint64(size))
  673. }
  674. i--
  675. dAtA[i] = 0xa
  676. return len(dAtA) - i, nil
  677. }
  678. func (m *PingRequest) Marshal() (dAtA []byte, err error) {
  679. size := m.Size()
  680. dAtA = make([]byte, size)
  681. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  682. if err != nil {
  683. return nil, err
  684. }
  685. return dAtA[:n], nil
  686. }
  687. func (m *PingRequest) MarshalTo(dAtA []byte) (int, error) {
  688. size := m.Size()
  689. return m.MarshalToSizedBuffer(dAtA[:size])
  690. }
  691. func (m *PingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  692. i := len(dAtA)
  693. _ = i
  694. var l int
  695. _ = l
  696. return len(dAtA) - i, nil
  697. }
  698. func (m *PingResponse) Marshal() (dAtA []byte, err error) {
  699. size := m.Size()
  700. dAtA = make([]byte, size)
  701. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  702. if err != nil {
  703. return nil, err
  704. }
  705. return dAtA[:n], nil
  706. }
  707. func (m *PingResponse) MarshalTo(dAtA []byte) (int, error) {
  708. size := m.Size()
  709. return m.MarshalToSizedBuffer(dAtA[:size])
  710. }
  711. func (m *PingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  712. i := len(dAtA)
  713. _ = i
  714. var l int
  715. _ = l
  716. return len(dAtA) - i, nil
  717. }
  718. func encodeVarintMsgs(dAtA []byte, offset int, v uint64) int {
  719. offset -= sovMsgs(v)
  720. base := offset
  721. for v >= 1<<7 {
  722. dAtA[offset] = uint8(v&0x7f | 0x80)
  723. v >>= 7
  724. offset++
  725. }
  726. dAtA[offset] = uint8(v)
  727. return base
  728. }
  729. func (m *RemoteSignerError) Size() (n int) {
  730. if m == nil {
  731. return 0
  732. }
  733. var l int
  734. _ = l
  735. if m.Code != 0 {
  736. n += 1 + sovMsgs(uint64(m.Code))
  737. }
  738. l = len(m.Description)
  739. if l > 0 {
  740. n += 1 + l + sovMsgs(uint64(l))
  741. }
  742. return n
  743. }
  744. func (m *PubKeyRequest) Size() (n int) {
  745. if m == nil {
  746. return 0
  747. }
  748. var l int
  749. _ = l
  750. return n
  751. }
  752. func (m *PubKeyResponse) Size() (n int) {
  753. if m == nil {
  754. return 0
  755. }
  756. var l int
  757. _ = l
  758. l = m.PubKey.Size()
  759. n += 1 + l + sovMsgs(uint64(l))
  760. if m.Error != nil {
  761. l = m.Error.Size()
  762. n += 1 + l + sovMsgs(uint64(l))
  763. }
  764. return n
  765. }
  766. func (m *SignVoteRequest) Size() (n int) {
  767. if m == nil {
  768. return 0
  769. }
  770. var l int
  771. _ = l
  772. l = m.Vote.Size()
  773. n += 1 + l + sovMsgs(uint64(l))
  774. return n
  775. }
  776. func (m *SignVoteResponse) Size() (n int) {
  777. if m == nil {
  778. return 0
  779. }
  780. var l int
  781. _ = l
  782. l = m.Vote.Size()
  783. n += 1 + l + sovMsgs(uint64(l))
  784. if m.Error != nil {
  785. l = m.Error.Size()
  786. n += 1 + l + sovMsgs(uint64(l))
  787. }
  788. return n
  789. }
  790. func (m *SignProposalRequest) Size() (n int) {
  791. if m == nil {
  792. return 0
  793. }
  794. var l int
  795. _ = l
  796. l = m.Proposal.Size()
  797. n += 1 + l + sovMsgs(uint64(l))
  798. return n
  799. }
  800. func (m *SignedProposalResponse) Size() (n int) {
  801. if m == nil {
  802. return 0
  803. }
  804. var l int
  805. _ = l
  806. l = m.Proposal.Size()
  807. n += 1 + l + sovMsgs(uint64(l))
  808. if m.Error != nil {
  809. l = m.Error.Size()
  810. n += 1 + l + sovMsgs(uint64(l))
  811. }
  812. return n
  813. }
  814. func (m *PingRequest) Size() (n int) {
  815. if m == nil {
  816. return 0
  817. }
  818. var l int
  819. _ = l
  820. return n
  821. }
  822. func (m *PingResponse) Size() (n int) {
  823. if m == nil {
  824. return 0
  825. }
  826. var l int
  827. _ = l
  828. return n
  829. }
  830. func sovMsgs(x uint64) (n int) {
  831. return (math_bits.Len64(x|1) + 6) / 7
  832. }
  833. func sozMsgs(x uint64) (n int) {
  834. return sovMsgs(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  835. }
  836. func (m *RemoteSignerError) Unmarshal(dAtA []byte) error {
  837. l := len(dAtA)
  838. iNdEx := 0
  839. for iNdEx < l {
  840. preIndex := iNdEx
  841. var wire uint64
  842. for shift := uint(0); ; shift += 7 {
  843. if shift >= 64 {
  844. return ErrIntOverflowMsgs
  845. }
  846. if iNdEx >= l {
  847. return io.ErrUnexpectedEOF
  848. }
  849. b := dAtA[iNdEx]
  850. iNdEx++
  851. wire |= uint64(b&0x7F) << shift
  852. if b < 0x80 {
  853. break
  854. }
  855. }
  856. fieldNum := int32(wire >> 3)
  857. wireType := int(wire & 0x7)
  858. if wireType == 4 {
  859. return fmt.Errorf("proto: RemoteSignerError: wiretype end group for non-group")
  860. }
  861. if fieldNum <= 0 {
  862. return fmt.Errorf("proto: RemoteSignerError: illegal tag %d (wire type %d)", fieldNum, wire)
  863. }
  864. switch fieldNum {
  865. case 1:
  866. if wireType != 0 {
  867. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  868. }
  869. m.Code = 0
  870. for shift := uint(0); ; shift += 7 {
  871. if shift >= 64 {
  872. return ErrIntOverflowMsgs
  873. }
  874. if iNdEx >= l {
  875. return io.ErrUnexpectedEOF
  876. }
  877. b := dAtA[iNdEx]
  878. iNdEx++
  879. m.Code |= int32(b&0x7F) << shift
  880. if b < 0x80 {
  881. break
  882. }
  883. }
  884. case 2:
  885. if wireType != 2 {
  886. return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
  887. }
  888. var stringLen uint64
  889. for shift := uint(0); ; shift += 7 {
  890. if shift >= 64 {
  891. return ErrIntOverflowMsgs
  892. }
  893. if iNdEx >= l {
  894. return io.ErrUnexpectedEOF
  895. }
  896. b := dAtA[iNdEx]
  897. iNdEx++
  898. stringLen |= uint64(b&0x7F) << shift
  899. if b < 0x80 {
  900. break
  901. }
  902. }
  903. intStringLen := int(stringLen)
  904. if intStringLen < 0 {
  905. return ErrInvalidLengthMsgs
  906. }
  907. postIndex := iNdEx + intStringLen
  908. if postIndex < 0 {
  909. return ErrInvalidLengthMsgs
  910. }
  911. if postIndex > l {
  912. return io.ErrUnexpectedEOF
  913. }
  914. m.Description = string(dAtA[iNdEx:postIndex])
  915. iNdEx = postIndex
  916. default:
  917. iNdEx = preIndex
  918. skippy, err := skipMsgs(dAtA[iNdEx:])
  919. if err != nil {
  920. return err
  921. }
  922. if skippy < 0 {
  923. return ErrInvalidLengthMsgs
  924. }
  925. if (iNdEx + skippy) < 0 {
  926. return ErrInvalidLengthMsgs
  927. }
  928. if (iNdEx + skippy) > l {
  929. return io.ErrUnexpectedEOF
  930. }
  931. iNdEx += skippy
  932. }
  933. }
  934. if iNdEx > l {
  935. return io.ErrUnexpectedEOF
  936. }
  937. return nil
  938. }
  939. func (m *PubKeyRequest) Unmarshal(dAtA []byte) error {
  940. l := len(dAtA)
  941. iNdEx := 0
  942. for iNdEx < l {
  943. preIndex := iNdEx
  944. var wire uint64
  945. for shift := uint(0); ; shift += 7 {
  946. if shift >= 64 {
  947. return ErrIntOverflowMsgs
  948. }
  949. if iNdEx >= l {
  950. return io.ErrUnexpectedEOF
  951. }
  952. b := dAtA[iNdEx]
  953. iNdEx++
  954. wire |= uint64(b&0x7F) << shift
  955. if b < 0x80 {
  956. break
  957. }
  958. }
  959. fieldNum := int32(wire >> 3)
  960. wireType := int(wire & 0x7)
  961. if wireType == 4 {
  962. return fmt.Errorf("proto: PubKeyRequest: wiretype end group for non-group")
  963. }
  964. if fieldNum <= 0 {
  965. return fmt.Errorf("proto: PubKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  966. }
  967. switch fieldNum {
  968. default:
  969. iNdEx = preIndex
  970. skippy, err := skipMsgs(dAtA[iNdEx:])
  971. if err != nil {
  972. return err
  973. }
  974. if skippy < 0 {
  975. return ErrInvalidLengthMsgs
  976. }
  977. if (iNdEx + skippy) < 0 {
  978. return ErrInvalidLengthMsgs
  979. }
  980. if (iNdEx + skippy) > l {
  981. return io.ErrUnexpectedEOF
  982. }
  983. iNdEx += skippy
  984. }
  985. }
  986. if iNdEx > l {
  987. return io.ErrUnexpectedEOF
  988. }
  989. return nil
  990. }
  991. func (m *PubKeyResponse) Unmarshal(dAtA []byte) error {
  992. l := len(dAtA)
  993. iNdEx := 0
  994. for iNdEx < l {
  995. preIndex := iNdEx
  996. var wire uint64
  997. for shift := uint(0); ; shift += 7 {
  998. if shift >= 64 {
  999. return ErrIntOverflowMsgs
  1000. }
  1001. if iNdEx >= l {
  1002. return io.ErrUnexpectedEOF
  1003. }
  1004. b := dAtA[iNdEx]
  1005. iNdEx++
  1006. wire |= uint64(b&0x7F) << shift
  1007. if b < 0x80 {
  1008. break
  1009. }
  1010. }
  1011. fieldNum := int32(wire >> 3)
  1012. wireType := int(wire & 0x7)
  1013. if wireType == 4 {
  1014. return fmt.Errorf("proto: PubKeyResponse: wiretype end group for non-group")
  1015. }
  1016. if fieldNum <= 0 {
  1017. return fmt.Errorf("proto: PubKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1018. }
  1019. switch fieldNum {
  1020. case 1:
  1021. if wireType != 2 {
  1022. return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType)
  1023. }
  1024. var msglen int
  1025. for shift := uint(0); ; shift += 7 {
  1026. if shift >= 64 {
  1027. return ErrIntOverflowMsgs
  1028. }
  1029. if iNdEx >= l {
  1030. return io.ErrUnexpectedEOF
  1031. }
  1032. b := dAtA[iNdEx]
  1033. iNdEx++
  1034. msglen |= int(b&0x7F) << shift
  1035. if b < 0x80 {
  1036. break
  1037. }
  1038. }
  1039. if msglen < 0 {
  1040. return ErrInvalidLengthMsgs
  1041. }
  1042. postIndex := iNdEx + msglen
  1043. if postIndex < 0 {
  1044. return ErrInvalidLengthMsgs
  1045. }
  1046. if postIndex > l {
  1047. return io.ErrUnexpectedEOF
  1048. }
  1049. if err := m.PubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1050. return err
  1051. }
  1052. iNdEx = postIndex
  1053. case 2:
  1054. if wireType != 2 {
  1055. return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
  1056. }
  1057. var msglen int
  1058. for shift := uint(0); ; shift += 7 {
  1059. if shift >= 64 {
  1060. return ErrIntOverflowMsgs
  1061. }
  1062. if iNdEx >= l {
  1063. return io.ErrUnexpectedEOF
  1064. }
  1065. b := dAtA[iNdEx]
  1066. iNdEx++
  1067. msglen |= int(b&0x7F) << shift
  1068. if b < 0x80 {
  1069. break
  1070. }
  1071. }
  1072. if msglen < 0 {
  1073. return ErrInvalidLengthMsgs
  1074. }
  1075. postIndex := iNdEx + msglen
  1076. if postIndex < 0 {
  1077. return ErrInvalidLengthMsgs
  1078. }
  1079. if postIndex > l {
  1080. return io.ErrUnexpectedEOF
  1081. }
  1082. if m.Error == nil {
  1083. m.Error = &RemoteSignerError{}
  1084. }
  1085. if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1086. return err
  1087. }
  1088. iNdEx = postIndex
  1089. default:
  1090. iNdEx = preIndex
  1091. skippy, err := skipMsgs(dAtA[iNdEx:])
  1092. if err != nil {
  1093. return err
  1094. }
  1095. if skippy < 0 {
  1096. return ErrInvalidLengthMsgs
  1097. }
  1098. if (iNdEx + skippy) < 0 {
  1099. return ErrInvalidLengthMsgs
  1100. }
  1101. if (iNdEx + skippy) > l {
  1102. return io.ErrUnexpectedEOF
  1103. }
  1104. iNdEx += skippy
  1105. }
  1106. }
  1107. if iNdEx > l {
  1108. return io.ErrUnexpectedEOF
  1109. }
  1110. return nil
  1111. }
  1112. func (m *SignVoteRequest) Unmarshal(dAtA []byte) error {
  1113. l := len(dAtA)
  1114. iNdEx := 0
  1115. for iNdEx < l {
  1116. preIndex := iNdEx
  1117. var wire uint64
  1118. for shift := uint(0); ; shift += 7 {
  1119. if shift >= 64 {
  1120. return ErrIntOverflowMsgs
  1121. }
  1122. if iNdEx >= l {
  1123. return io.ErrUnexpectedEOF
  1124. }
  1125. b := dAtA[iNdEx]
  1126. iNdEx++
  1127. wire |= uint64(b&0x7F) << shift
  1128. if b < 0x80 {
  1129. break
  1130. }
  1131. }
  1132. fieldNum := int32(wire >> 3)
  1133. wireType := int(wire & 0x7)
  1134. if wireType == 4 {
  1135. return fmt.Errorf("proto: SignVoteRequest: wiretype end group for non-group")
  1136. }
  1137. if fieldNum <= 0 {
  1138. return fmt.Errorf("proto: SignVoteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1139. }
  1140. switch fieldNum {
  1141. case 1:
  1142. if wireType != 2 {
  1143. return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType)
  1144. }
  1145. var msglen int
  1146. for shift := uint(0); ; shift += 7 {
  1147. if shift >= 64 {
  1148. return ErrIntOverflowMsgs
  1149. }
  1150. if iNdEx >= l {
  1151. return io.ErrUnexpectedEOF
  1152. }
  1153. b := dAtA[iNdEx]
  1154. iNdEx++
  1155. msglen |= int(b&0x7F) << shift
  1156. if b < 0x80 {
  1157. break
  1158. }
  1159. }
  1160. if msglen < 0 {
  1161. return ErrInvalidLengthMsgs
  1162. }
  1163. postIndex := iNdEx + msglen
  1164. if postIndex < 0 {
  1165. return ErrInvalidLengthMsgs
  1166. }
  1167. if postIndex > l {
  1168. return io.ErrUnexpectedEOF
  1169. }
  1170. if err := m.Vote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1171. return err
  1172. }
  1173. iNdEx = postIndex
  1174. default:
  1175. iNdEx = preIndex
  1176. skippy, err := skipMsgs(dAtA[iNdEx:])
  1177. if err != nil {
  1178. return err
  1179. }
  1180. if skippy < 0 {
  1181. return ErrInvalidLengthMsgs
  1182. }
  1183. if (iNdEx + skippy) < 0 {
  1184. return ErrInvalidLengthMsgs
  1185. }
  1186. if (iNdEx + skippy) > l {
  1187. return io.ErrUnexpectedEOF
  1188. }
  1189. iNdEx += skippy
  1190. }
  1191. }
  1192. if iNdEx > l {
  1193. return io.ErrUnexpectedEOF
  1194. }
  1195. return nil
  1196. }
  1197. func (m *SignVoteResponse) Unmarshal(dAtA []byte) error {
  1198. l := len(dAtA)
  1199. iNdEx := 0
  1200. for iNdEx < l {
  1201. preIndex := iNdEx
  1202. var wire uint64
  1203. for shift := uint(0); ; shift += 7 {
  1204. if shift >= 64 {
  1205. return ErrIntOverflowMsgs
  1206. }
  1207. if iNdEx >= l {
  1208. return io.ErrUnexpectedEOF
  1209. }
  1210. b := dAtA[iNdEx]
  1211. iNdEx++
  1212. wire |= uint64(b&0x7F) << shift
  1213. if b < 0x80 {
  1214. break
  1215. }
  1216. }
  1217. fieldNum := int32(wire >> 3)
  1218. wireType := int(wire & 0x7)
  1219. if wireType == 4 {
  1220. return fmt.Errorf("proto: SignVoteResponse: wiretype end group for non-group")
  1221. }
  1222. if fieldNum <= 0 {
  1223. return fmt.Errorf("proto: SignVoteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1224. }
  1225. switch fieldNum {
  1226. case 1:
  1227. if wireType != 2 {
  1228. return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType)
  1229. }
  1230. var msglen int
  1231. for shift := uint(0); ; shift += 7 {
  1232. if shift >= 64 {
  1233. return ErrIntOverflowMsgs
  1234. }
  1235. if iNdEx >= l {
  1236. return io.ErrUnexpectedEOF
  1237. }
  1238. b := dAtA[iNdEx]
  1239. iNdEx++
  1240. msglen |= int(b&0x7F) << shift
  1241. if b < 0x80 {
  1242. break
  1243. }
  1244. }
  1245. if msglen < 0 {
  1246. return ErrInvalidLengthMsgs
  1247. }
  1248. postIndex := iNdEx + msglen
  1249. if postIndex < 0 {
  1250. return ErrInvalidLengthMsgs
  1251. }
  1252. if postIndex > l {
  1253. return io.ErrUnexpectedEOF
  1254. }
  1255. if err := m.Vote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1256. return err
  1257. }
  1258. iNdEx = postIndex
  1259. case 2:
  1260. if wireType != 2 {
  1261. return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
  1262. }
  1263. var msglen int
  1264. for shift := uint(0); ; shift += 7 {
  1265. if shift >= 64 {
  1266. return ErrIntOverflowMsgs
  1267. }
  1268. if iNdEx >= l {
  1269. return io.ErrUnexpectedEOF
  1270. }
  1271. b := dAtA[iNdEx]
  1272. iNdEx++
  1273. msglen |= int(b&0x7F) << shift
  1274. if b < 0x80 {
  1275. break
  1276. }
  1277. }
  1278. if msglen < 0 {
  1279. return ErrInvalidLengthMsgs
  1280. }
  1281. postIndex := iNdEx + msglen
  1282. if postIndex < 0 {
  1283. return ErrInvalidLengthMsgs
  1284. }
  1285. if postIndex > l {
  1286. return io.ErrUnexpectedEOF
  1287. }
  1288. if m.Error == nil {
  1289. m.Error = &RemoteSignerError{}
  1290. }
  1291. if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1292. return err
  1293. }
  1294. iNdEx = postIndex
  1295. default:
  1296. iNdEx = preIndex
  1297. skippy, err := skipMsgs(dAtA[iNdEx:])
  1298. if err != nil {
  1299. return err
  1300. }
  1301. if skippy < 0 {
  1302. return ErrInvalidLengthMsgs
  1303. }
  1304. if (iNdEx + skippy) < 0 {
  1305. return ErrInvalidLengthMsgs
  1306. }
  1307. if (iNdEx + skippy) > l {
  1308. return io.ErrUnexpectedEOF
  1309. }
  1310. iNdEx += skippy
  1311. }
  1312. }
  1313. if iNdEx > l {
  1314. return io.ErrUnexpectedEOF
  1315. }
  1316. return nil
  1317. }
  1318. func (m *SignProposalRequest) Unmarshal(dAtA []byte) error {
  1319. l := len(dAtA)
  1320. iNdEx := 0
  1321. for iNdEx < l {
  1322. preIndex := iNdEx
  1323. var wire uint64
  1324. for shift := uint(0); ; shift += 7 {
  1325. if shift >= 64 {
  1326. return ErrIntOverflowMsgs
  1327. }
  1328. if iNdEx >= l {
  1329. return io.ErrUnexpectedEOF
  1330. }
  1331. b := dAtA[iNdEx]
  1332. iNdEx++
  1333. wire |= uint64(b&0x7F) << shift
  1334. if b < 0x80 {
  1335. break
  1336. }
  1337. }
  1338. fieldNum := int32(wire >> 3)
  1339. wireType := int(wire & 0x7)
  1340. if wireType == 4 {
  1341. return fmt.Errorf("proto: SignProposalRequest: wiretype end group for non-group")
  1342. }
  1343. if fieldNum <= 0 {
  1344. return fmt.Errorf("proto: SignProposalRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1345. }
  1346. switch fieldNum {
  1347. case 1:
  1348. if wireType != 2 {
  1349. return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType)
  1350. }
  1351. var msglen int
  1352. for shift := uint(0); ; shift += 7 {
  1353. if shift >= 64 {
  1354. return ErrIntOverflowMsgs
  1355. }
  1356. if iNdEx >= l {
  1357. return io.ErrUnexpectedEOF
  1358. }
  1359. b := dAtA[iNdEx]
  1360. iNdEx++
  1361. msglen |= int(b&0x7F) << shift
  1362. if b < 0x80 {
  1363. break
  1364. }
  1365. }
  1366. if msglen < 0 {
  1367. return ErrInvalidLengthMsgs
  1368. }
  1369. postIndex := iNdEx + msglen
  1370. if postIndex < 0 {
  1371. return ErrInvalidLengthMsgs
  1372. }
  1373. if postIndex > l {
  1374. return io.ErrUnexpectedEOF
  1375. }
  1376. if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1377. return err
  1378. }
  1379. iNdEx = postIndex
  1380. default:
  1381. iNdEx = preIndex
  1382. skippy, err := skipMsgs(dAtA[iNdEx:])
  1383. if err != nil {
  1384. return err
  1385. }
  1386. if skippy < 0 {
  1387. return ErrInvalidLengthMsgs
  1388. }
  1389. if (iNdEx + skippy) < 0 {
  1390. return ErrInvalidLengthMsgs
  1391. }
  1392. if (iNdEx + skippy) > l {
  1393. return io.ErrUnexpectedEOF
  1394. }
  1395. iNdEx += skippy
  1396. }
  1397. }
  1398. if iNdEx > l {
  1399. return io.ErrUnexpectedEOF
  1400. }
  1401. return nil
  1402. }
  1403. func (m *SignedProposalResponse) Unmarshal(dAtA []byte) error {
  1404. l := len(dAtA)
  1405. iNdEx := 0
  1406. for iNdEx < l {
  1407. preIndex := iNdEx
  1408. var wire uint64
  1409. for shift := uint(0); ; shift += 7 {
  1410. if shift >= 64 {
  1411. return ErrIntOverflowMsgs
  1412. }
  1413. if iNdEx >= l {
  1414. return io.ErrUnexpectedEOF
  1415. }
  1416. b := dAtA[iNdEx]
  1417. iNdEx++
  1418. wire |= uint64(b&0x7F) << shift
  1419. if b < 0x80 {
  1420. break
  1421. }
  1422. }
  1423. fieldNum := int32(wire >> 3)
  1424. wireType := int(wire & 0x7)
  1425. if wireType == 4 {
  1426. return fmt.Errorf("proto: SignedProposalResponse: wiretype end group for non-group")
  1427. }
  1428. if fieldNum <= 0 {
  1429. return fmt.Errorf("proto: SignedProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1430. }
  1431. switch fieldNum {
  1432. case 1:
  1433. if wireType != 2 {
  1434. return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType)
  1435. }
  1436. var msglen int
  1437. for shift := uint(0); ; shift += 7 {
  1438. if shift >= 64 {
  1439. return ErrIntOverflowMsgs
  1440. }
  1441. if iNdEx >= l {
  1442. return io.ErrUnexpectedEOF
  1443. }
  1444. b := dAtA[iNdEx]
  1445. iNdEx++
  1446. msglen |= int(b&0x7F) << shift
  1447. if b < 0x80 {
  1448. break
  1449. }
  1450. }
  1451. if msglen < 0 {
  1452. return ErrInvalidLengthMsgs
  1453. }
  1454. postIndex := iNdEx + msglen
  1455. if postIndex < 0 {
  1456. return ErrInvalidLengthMsgs
  1457. }
  1458. if postIndex > l {
  1459. return io.ErrUnexpectedEOF
  1460. }
  1461. if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1462. return err
  1463. }
  1464. iNdEx = postIndex
  1465. case 2:
  1466. if wireType != 2 {
  1467. return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
  1468. }
  1469. var msglen int
  1470. for shift := uint(0); ; shift += 7 {
  1471. if shift >= 64 {
  1472. return ErrIntOverflowMsgs
  1473. }
  1474. if iNdEx >= l {
  1475. return io.ErrUnexpectedEOF
  1476. }
  1477. b := dAtA[iNdEx]
  1478. iNdEx++
  1479. msglen |= int(b&0x7F) << shift
  1480. if b < 0x80 {
  1481. break
  1482. }
  1483. }
  1484. if msglen < 0 {
  1485. return ErrInvalidLengthMsgs
  1486. }
  1487. postIndex := iNdEx + msglen
  1488. if postIndex < 0 {
  1489. return ErrInvalidLengthMsgs
  1490. }
  1491. if postIndex > l {
  1492. return io.ErrUnexpectedEOF
  1493. }
  1494. if m.Error == nil {
  1495. m.Error = &RemoteSignerError{}
  1496. }
  1497. if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1498. return err
  1499. }
  1500. iNdEx = postIndex
  1501. default:
  1502. iNdEx = preIndex
  1503. skippy, err := skipMsgs(dAtA[iNdEx:])
  1504. if err != nil {
  1505. return err
  1506. }
  1507. if skippy < 0 {
  1508. return ErrInvalidLengthMsgs
  1509. }
  1510. if (iNdEx + skippy) < 0 {
  1511. return ErrInvalidLengthMsgs
  1512. }
  1513. if (iNdEx + skippy) > l {
  1514. return io.ErrUnexpectedEOF
  1515. }
  1516. iNdEx += skippy
  1517. }
  1518. }
  1519. if iNdEx > l {
  1520. return io.ErrUnexpectedEOF
  1521. }
  1522. return nil
  1523. }
  1524. func (m *PingRequest) Unmarshal(dAtA []byte) error {
  1525. l := len(dAtA)
  1526. iNdEx := 0
  1527. for iNdEx < l {
  1528. preIndex := iNdEx
  1529. var wire uint64
  1530. for shift := uint(0); ; shift += 7 {
  1531. if shift >= 64 {
  1532. return ErrIntOverflowMsgs
  1533. }
  1534. if iNdEx >= l {
  1535. return io.ErrUnexpectedEOF
  1536. }
  1537. b := dAtA[iNdEx]
  1538. iNdEx++
  1539. wire |= uint64(b&0x7F) << shift
  1540. if b < 0x80 {
  1541. break
  1542. }
  1543. }
  1544. fieldNum := int32(wire >> 3)
  1545. wireType := int(wire & 0x7)
  1546. if wireType == 4 {
  1547. return fmt.Errorf("proto: PingRequest: wiretype end group for non-group")
  1548. }
  1549. if fieldNum <= 0 {
  1550. return fmt.Errorf("proto: PingRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1551. }
  1552. switch fieldNum {
  1553. default:
  1554. iNdEx = preIndex
  1555. skippy, err := skipMsgs(dAtA[iNdEx:])
  1556. if err != nil {
  1557. return err
  1558. }
  1559. if skippy < 0 {
  1560. return ErrInvalidLengthMsgs
  1561. }
  1562. if (iNdEx + skippy) < 0 {
  1563. return ErrInvalidLengthMsgs
  1564. }
  1565. if (iNdEx + skippy) > l {
  1566. return io.ErrUnexpectedEOF
  1567. }
  1568. iNdEx += skippy
  1569. }
  1570. }
  1571. if iNdEx > l {
  1572. return io.ErrUnexpectedEOF
  1573. }
  1574. return nil
  1575. }
  1576. func (m *PingResponse) Unmarshal(dAtA []byte) error {
  1577. l := len(dAtA)
  1578. iNdEx := 0
  1579. for iNdEx < l {
  1580. preIndex := iNdEx
  1581. var wire uint64
  1582. for shift := uint(0); ; shift += 7 {
  1583. if shift >= 64 {
  1584. return ErrIntOverflowMsgs
  1585. }
  1586. if iNdEx >= l {
  1587. return io.ErrUnexpectedEOF
  1588. }
  1589. b := dAtA[iNdEx]
  1590. iNdEx++
  1591. wire |= uint64(b&0x7F) << shift
  1592. if b < 0x80 {
  1593. break
  1594. }
  1595. }
  1596. fieldNum := int32(wire >> 3)
  1597. wireType := int(wire & 0x7)
  1598. if wireType == 4 {
  1599. return fmt.Errorf("proto: PingResponse: wiretype end group for non-group")
  1600. }
  1601. if fieldNum <= 0 {
  1602. return fmt.Errorf("proto: PingResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1603. }
  1604. switch fieldNum {
  1605. default:
  1606. iNdEx = preIndex
  1607. skippy, err := skipMsgs(dAtA[iNdEx:])
  1608. if err != nil {
  1609. return err
  1610. }
  1611. if skippy < 0 {
  1612. return ErrInvalidLengthMsgs
  1613. }
  1614. if (iNdEx + skippy) < 0 {
  1615. return ErrInvalidLengthMsgs
  1616. }
  1617. if (iNdEx + skippy) > l {
  1618. return io.ErrUnexpectedEOF
  1619. }
  1620. iNdEx += skippy
  1621. }
  1622. }
  1623. if iNdEx > l {
  1624. return io.ErrUnexpectedEOF
  1625. }
  1626. return nil
  1627. }
  1628. func skipMsgs(dAtA []byte) (n int, err error) {
  1629. l := len(dAtA)
  1630. iNdEx := 0
  1631. depth := 0
  1632. for iNdEx < l {
  1633. var wire uint64
  1634. for shift := uint(0); ; shift += 7 {
  1635. if shift >= 64 {
  1636. return 0, ErrIntOverflowMsgs
  1637. }
  1638. if iNdEx >= l {
  1639. return 0, io.ErrUnexpectedEOF
  1640. }
  1641. b := dAtA[iNdEx]
  1642. iNdEx++
  1643. wire |= (uint64(b) & 0x7F) << shift
  1644. if b < 0x80 {
  1645. break
  1646. }
  1647. }
  1648. wireType := int(wire & 0x7)
  1649. switch wireType {
  1650. case 0:
  1651. for shift := uint(0); ; shift += 7 {
  1652. if shift >= 64 {
  1653. return 0, ErrIntOverflowMsgs
  1654. }
  1655. if iNdEx >= l {
  1656. return 0, io.ErrUnexpectedEOF
  1657. }
  1658. iNdEx++
  1659. if dAtA[iNdEx-1] < 0x80 {
  1660. break
  1661. }
  1662. }
  1663. case 1:
  1664. iNdEx += 8
  1665. case 2:
  1666. var length int
  1667. for shift := uint(0); ; shift += 7 {
  1668. if shift >= 64 {
  1669. return 0, ErrIntOverflowMsgs
  1670. }
  1671. if iNdEx >= l {
  1672. return 0, io.ErrUnexpectedEOF
  1673. }
  1674. b := dAtA[iNdEx]
  1675. iNdEx++
  1676. length |= (int(b) & 0x7F) << shift
  1677. if b < 0x80 {
  1678. break
  1679. }
  1680. }
  1681. if length < 0 {
  1682. return 0, ErrInvalidLengthMsgs
  1683. }
  1684. iNdEx += length
  1685. case 3:
  1686. depth++
  1687. case 4:
  1688. if depth == 0 {
  1689. return 0, ErrUnexpectedEndOfGroupMsgs
  1690. }
  1691. depth--
  1692. case 5:
  1693. iNdEx += 4
  1694. default:
  1695. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1696. }
  1697. if iNdEx < 0 {
  1698. return 0, ErrInvalidLengthMsgs
  1699. }
  1700. if depth == 0 {
  1701. return iNdEx, nil
  1702. }
  1703. }
  1704. return 0, io.ErrUnexpectedEOF
  1705. }
  1706. var (
  1707. ErrInvalidLengthMsgs = fmt.Errorf("proto: negative length found during unmarshaling")
  1708. ErrIntOverflowMsgs = fmt.Errorf("proto: integer overflow")
  1709. ErrUnexpectedEndOfGroupMsgs = fmt.Errorf("proto: unexpected end of group")
  1710. )