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.

634 lines
25 KiB

  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: proto/types/evidence.proto
  3. package types
  4. import (
  5. fmt "fmt"
  6. _ "github.com/gogo/protobuf/gogoproto"
  7. proto "github.com/gogo/protobuf/proto"
  8. _ "github.com/golang/protobuf/ptypes/timestamp"
  9. keys "github.com/tendermint/tendermint/proto/crypto/keys"
  10. math "math"
  11. time "time"
  12. )
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  17. var _ = time.Kitchen
  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. // DuplicateVoteEvidence contains evidence a validator signed two conflicting
  24. // votes.
  25. type DuplicateVoteEvidence struct {
  26. PubKey *keys.PublicKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
  27. VoteA *Vote `protobuf:"bytes,2,opt,name=vote_a,json=voteA,proto3" json:"vote_a,omitempty"`
  28. VoteB *Vote `protobuf:"bytes,3,opt,name=vote_b,json=voteB,proto3" json:"vote_b,omitempty"`
  29. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  30. XXX_unrecognized []byte `json:"-"`
  31. XXX_sizecache int32 `json:"-"`
  32. }
  33. func (m *DuplicateVoteEvidence) Reset() { *m = DuplicateVoteEvidence{} }
  34. func (m *DuplicateVoteEvidence) String() string { return proto.CompactTextString(m) }
  35. func (*DuplicateVoteEvidence) ProtoMessage() {}
  36. func (*DuplicateVoteEvidence) Descriptor() ([]byte, []int) {
  37. return fileDescriptor_86495eef24aeacc0, []int{0}
  38. }
  39. func (m *DuplicateVoteEvidence) XXX_Unmarshal(b []byte) error {
  40. return xxx_messageInfo_DuplicateVoteEvidence.Unmarshal(m, b)
  41. }
  42. func (m *DuplicateVoteEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  43. return xxx_messageInfo_DuplicateVoteEvidence.Marshal(b, m, deterministic)
  44. }
  45. func (m *DuplicateVoteEvidence) XXX_Merge(src proto.Message) {
  46. xxx_messageInfo_DuplicateVoteEvidence.Merge(m, src)
  47. }
  48. func (m *DuplicateVoteEvidence) XXX_Size() int {
  49. return xxx_messageInfo_DuplicateVoteEvidence.Size(m)
  50. }
  51. func (m *DuplicateVoteEvidence) XXX_DiscardUnknown() {
  52. xxx_messageInfo_DuplicateVoteEvidence.DiscardUnknown(m)
  53. }
  54. var xxx_messageInfo_DuplicateVoteEvidence proto.InternalMessageInfo
  55. func (m *DuplicateVoteEvidence) GetPubKey() *keys.PublicKey {
  56. if m != nil {
  57. return m.PubKey
  58. }
  59. return nil
  60. }
  61. func (m *DuplicateVoteEvidence) GetVoteA() *Vote {
  62. if m != nil {
  63. return m.VoteA
  64. }
  65. return nil
  66. }
  67. func (m *DuplicateVoteEvidence) GetVoteB() *Vote {
  68. if m != nil {
  69. return m.VoteB
  70. }
  71. return nil
  72. }
  73. type PotentialAmnesiaEvidence struct {
  74. VoteA *Vote `protobuf:"bytes,1,opt,name=vote_a,json=voteA,proto3" json:"vote_a,omitempty"`
  75. VoteB *Vote `protobuf:"bytes,2,opt,name=vote_b,json=voteB,proto3" json:"vote_b,omitempty"`
  76. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  77. XXX_unrecognized []byte `json:"-"`
  78. XXX_sizecache int32 `json:"-"`
  79. }
  80. func (m *PotentialAmnesiaEvidence) Reset() { *m = PotentialAmnesiaEvidence{} }
  81. func (m *PotentialAmnesiaEvidence) String() string { return proto.CompactTextString(m) }
  82. func (*PotentialAmnesiaEvidence) ProtoMessage() {}
  83. func (*PotentialAmnesiaEvidence) Descriptor() ([]byte, []int) {
  84. return fileDescriptor_86495eef24aeacc0, []int{1}
  85. }
  86. func (m *PotentialAmnesiaEvidence) XXX_Unmarshal(b []byte) error {
  87. return xxx_messageInfo_PotentialAmnesiaEvidence.Unmarshal(m, b)
  88. }
  89. func (m *PotentialAmnesiaEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  90. return xxx_messageInfo_PotentialAmnesiaEvidence.Marshal(b, m, deterministic)
  91. }
  92. func (m *PotentialAmnesiaEvidence) XXX_Merge(src proto.Message) {
  93. xxx_messageInfo_PotentialAmnesiaEvidence.Merge(m, src)
  94. }
  95. func (m *PotentialAmnesiaEvidence) XXX_Size() int {
  96. return xxx_messageInfo_PotentialAmnesiaEvidence.Size(m)
  97. }
  98. func (m *PotentialAmnesiaEvidence) XXX_DiscardUnknown() {
  99. xxx_messageInfo_PotentialAmnesiaEvidence.DiscardUnknown(m)
  100. }
  101. var xxx_messageInfo_PotentialAmnesiaEvidence proto.InternalMessageInfo
  102. func (m *PotentialAmnesiaEvidence) GetVoteA() *Vote {
  103. if m != nil {
  104. return m.VoteA
  105. }
  106. return nil
  107. }
  108. func (m *PotentialAmnesiaEvidence) GetVoteB() *Vote {
  109. if m != nil {
  110. return m.VoteB
  111. }
  112. return nil
  113. }
  114. // MockEvidence is used for testing pruposes
  115. type MockEvidence struct {
  116. EvidenceHeight int64 `protobuf:"varint,1,opt,name=evidence_height,json=evidenceHeight,proto3" json:"evidence_height,omitempty"`
  117. EvidenceTime time.Time `protobuf:"bytes,2,opt,name=evidence_time,json=evidenceTime,proto3,stdtime" json:"evidence_time"`
  118. EvidenceAddress []byte `protobuf:"bytes,3,opt,name=evidence_address,json=evidenceAddress,proto3" json:"evidence_address,omitempty"`
  119. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  120. XXX_unrecognized []byte `json:"-"`
  121. XXX_sizecache int32 `json:"-"`
  122. }
  123. func (m *MockEvidence) Reset() { *m = MockEvidence{} }
  124. func (m *MockEvidence) String() string { return proto.CompactTextString(m) }
  125. func (*MockEvidence) ProtoMessage() {}
  126. func (*MockEvidence) Descriptor() ([]byte, []int) {
  127. return fileDescriptor_86495eef24aeacc0, []int{2}
  128. }
  129. func (m *MockEvidence) XXX_Unmarshal(b []byte) error {
  130. return xxx_messageInfo_MockEvidence.Unmarshal(m, b)
  131. }
  132. func (m *MockEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  133. return xxx_messageInfo_MockEvidence.Marshal(b, m, deterministic)
  134. }
  135. func (m *MockEvidence) XXX_Merge(src proto.Message) {
  136. xxx_messageInfo_MockEvidence.Merge(m, src)
  137. }
  138. func (m *MockEvidence) XXX_Size() int {
  139. return xxx_messageInfo_MockEvidence.Size(m)
  140. }
  141. func (m *MockEvidence) XXX_DiscardUnknown() {
  142. xxx_messageInfo_MockEvidence.DiscardUnknown(m)
  143. }
  144. var xxx_messageInfo_MockEvidence proto.InternalMessageInfo
  145. func (m *MockEvidence) GetEvidenceHeight() int64 {
  146. if m != nil {
  147. return m.EvidenceHeight
  148. }
  149. return 0
  150. }
  151. func (m *MockEvidence) GetEvidenceTime() time.Time {
  152. if m != nil {
  153. return m.EvidenceTime
  154. }
  155. return time.Time{}
  156. }
  157. func (m *MockEvidence) GetEvidenceAddress() []byte {
  158. if m != nil {
  159. return m.EvidenceAddress
  160. }
  161. return nil
  162. }
  163. type MockRandomEvidence struct {
  164. EvidenceHeight int64 `protobuf:"varint,1,opt,name=evidence_height,json=evidenceHeight,proto3" json:"evidence_height,omitempty"`
  165. EvidenceTime time.Time `protobuf:"bytes,2,opt,name=evidence_time,json=evidenceTime,proto3,stdtime" json:"evidence_time"`
  166. EvidenceAddress []byte `protobuf:"bytes,3,opt,name=evidence_address,json=evidenceAddress,proto3" json:"evidence_address,omitempty"`
  167. RandBytes []byte `protobuf:"bytes,4,opt,name=rand_bytes,json=randBytes,proto3" json:"rand_bytes,omitempty"`
  168. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  169. XXX_unrecognized []byte `json:"-"`
  170. XXX_sizecache int32 `json:"-"`
  171. }
  172. func (m *MockRandomEvidence) Reset() { *m = MockRandomEvidence{} }
  173. func (m *MockRandomEvidence) String() string { return proto.CompactTextString(m) }
  174. func (*MockRandomEvidence) ProtoMessage() {}
  175. func (*MockRandomEvidence) Descriptor() ([]byte, []int) {
  176. return fileDescriptor_86495eef24aeacc0, []int{3}
  177. }
  178. func (m *MockRandomEvidence) XXX_Unmarshal(b []byte) error {
  179. return xxx_messageInfo_MockRandomEvidence.Unmarshal(m, b)
  180. }
  181. func (m *MockRandomEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  182. return xxx_messageInfo_MockRandomEvidence.Marshal(b, m, deterministic)
  183. }
  184. func (m *MockRandomEvidence) XXX_Merge(src proto.Message) {
  185. xxx_messageInfo_MockRandomEvidence.Merge(m, src)
  186. }
  187. func (m *MockRandomEvidence) XXX_Size() int {
  188. return xxx_messageInfo_MockRandomEvidence.Size(m)
  189. }
  190. func (m *MockRandomEvidence) XXX_DiscardUnknown() {
  191. xxx_messageInfo_MockRandomEvidence.DiscardUnknown(m)
  192. }
  193. var xxx_messageInfo_MockRandomEvidence proto.InternalMessageInfo
  194. func (m *MockRandomEvidence) GetEvidenceHeight() int64 {
  195. if m != nil {
  196. return m.EvidenceHeight
  197. }
  198. return 0
  199. }
  200. func (m *MockRandomEvidence) GetEvidenceTime() time.Time {
  201. if m != nil {
  202. return m.EvidenceTime
  203. }
  204. return time.Time{}
  205. }
  206. func (m *MockRandomEvidence) GetEvidenceAddress() []byte {
  207. if m != nil {
  208. return m.EvidenceAddress
  209. }
  210. return nil
  211. }
  212. func (m *MockRandomEvidence) GetRandBytes() []byte {
  213. if m != nil {
  214. return m.RandBytes
  215. }
  216. return nil
  217. }
  218. type ConflictingHeadersEvidence struct {
  219. H1 *SignedHeader `protobuf:"bytes,1,opt,name=h1,proto3" json:"h1,omitempty"`
  220. H2 *SignedHeader `protobuf:"bytes,2,opt,name=h2,proto3" json:"h2,omitempty"`
  221. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  222. XXX_unrecognized []byte `json:"-"`
  223. XXX_sizecache int32 `json:"-"`
  224. }
  225. func (m *ConflictingHeadersEvidence) Reset() { *m = ConflictingHeadersEvidence{} }
  226. func (m *ConflictingHeadersEvidence) String() string { return proto.CompactTextString(m) }
  227. func (*ConflictingHeadersEvidence) ProtoMessage() {}
  228. func (*ConflictingHeadersEvidence) Descriptor() ([]byte, []int) {
  229. return fileDescriptor_86495eef24aeacc0, []int{4}
  230. }
  231. func (m *ConflictingHeadersEvidence) XXX_Unmarshal(b []byte) error {
  232. return xxx_messageInfo_ConflictingHeadersEvidence.Unmarshal(m, b)
  233. }
  234. func (m *ConflictingHeadersEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  235. return xxx_messageInfo_ConflictingHeadersEvidence.Marshal(b, m, deterministic)
  236. }
  237. func (m *ConflictingHeadersEvidence) XXX_Merge(src proto.Message) {
  238. xxx_messageInfo_ConflictingHeadersEvidence.Merge(m, src)
  239. }
  240. func (m *ConflictingHeadersEvidence) XXX_Size() int {
  241. return xxx_messageInfo_ConflictingHeadersEvidence.Size(m)
  242. }
  243. func (m *ConflictingHeadersEvidence) XXX_DiscardUnknown() {
  244. xxx_messageInfo_ConflictingHeadersEvidence.DiscardUnknown(m)
  245. }
  246. var xxx_messageInfo_ConflictingHeadersEvidence proto.InternalMessageInfo
  247. func (m *ConflictingHeadersEvidence) GetH1() *SignedHeader {
  248. if m != nil {
  249. return m.H1
  250. }
  251. return nil
  252. }
  253. func (m *ConflictingHeadersEvidence) GetH2() *SignedHeader {
  254. if m != nil {
  255. return m.H2
  256. }
  257. return nil
  258. }
  259. type LunaticValidatorEvidence struct {
  260. Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
  261. Vote *Vote `protobuf:"bytes,2,opt,name=vote,proto3" json:"vote,omitempty"`
  262. InvalidHeaderField string `protobuf:"bytes,3,opt,name=invalid_header_field,json=invalidHeaderField,proto3" json:"invalid_header_field,omitempty"`
  263. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  264. XXX_unrecognized []byte `json:"-"`
  265. XXX_sizecache int32 `json:"-"`
  266. }
  267. func (m *LunaticValidatorEvidence) Reset() { *m = LunaticValidatorEvidence{} }
  268. func (m *LunaticValidatorEvidence) String() string { return proto.CompactTextString(m) }
  269. func (*LunaticValidatorEvidence) ProtoMessage() {}
  270. func (*LunaticValidatorEvidence) Descriptor() ([]byte, []int) {
  271. return fileDescriptor_86495eef24aeacc0, []int{5}
  272. }
  273. func (m *LunaticValidatorEvidence) XXX_Unmarshal(b []byte) error {
  274. return xxx_messageInfo_LunaticValidatorEvidence.Unmarshal(m, b)
  275. }
  276. func (m *LunaticValidatorEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  277. return xxx_messageInfo_LunaticValidatorEvidence.Marshal(b, m, deterministic)
  278. }
  279. func (m *LunaticValidatorEvidence) XXX_Merge(src proto.Message) {
  280. xxx_messageInfo_LunaticValidatorEvidence.Merge(m, src)
  281. }
  282. func (m *LunaticValidatorEvidence) XXX_Size() int {
  283. return xxx_messageInfo_LunaticValidatorEvidence.Size(m)
  284. }
  285. func (m *LunaticValidatorEvidence) XXX_DiscardUnknown() {
  286. xxx_messageInfo_LunaticValidatorEvidence.DiscardUnknown(m)
  287. }
  288. var xxx_messageInfo_LunaticValidatorEvidence proto.InternalMessageInfo
  289. func (m *LunaticValidatorEvidence) GetHeader() *Header {
  290. if m != nil {
  291. return m.Header
  292. }
  293. return nil
  294. }
  295. func (m *LunaticValidatorEvidence) GetVote() *Vote {
  296. if m != nil {
  297. return m.Vote
  298. }
  299. return nil
  300. }
  301. func (m *LunaticValidatorEvidence) GetInvalidHeaderField() string {
  302. if m != nil {
  303. return m.InvalidHeaderField
  304. }
  305. return ""
  306. }
  307. type Evidence struct {
  308. // Types that are valid to be assigned to Sum:
  309. // *Evidence_DuplicateVoteEvidence
  310. // *Evidence_ConflictingHeadersEvidence
  311. // *Evidence_LunaticValidatorEvidence
  312. // *Evidence_PotentialAmnesiaEvidence
  313. // *Evidence_MockEvidence
  314. // *Evidence_MockRandomEvidence
  315. Sum isEvidence_Sum `protobuf_oneof:"sum"`
  316. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  317. XXX_unrecognized []byte `json:"-"`
  318. XXX_sizecache int32 `json:"-"`
  319. }
  320. func (m *Evidence) Reset() { *m = Evidence{} }
  321. func (m *Evidence) String() string { return proto.CompactTextString(m) }
  322. func (*Evidence) ProtoMessage() {}
  323. func (*Evidence) Descriptor() ([]byte, []int) {
  324. return fileDescriptor_86495eef24aeacc0, []int{6}
  325. }
  326. func (m *Evidence) XXX_Unmarshal(b []byte) error {
  327. return xxx_messageInfo_Evidence.Unmarshal(m, b)
  328. }
  329. func (m *Evidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  330. return xxx_messageInfo_Evidence.Marshal(b, m, deterministic)
  331. }
  332. func (m *Evidence) XXX_Merge(src proto.Message) {
  333. xxx_messageInfo_Evidence.Merge(m, src)
  334. }
  335. func (m *Evidence) XXX_Size() int {
  336. return xxx_messageInfo_Evidence.Size(m)
  337. }
  338. func (m *Evidence) XXX_DiscardUnknown() {
  339. xxx_messageInfo_Evidence.DiscardUnknown(m)
  340. }
  341. var xxx_messageInfo_Evidence proto.InternalMessageInfo
  342. type isEvidence_Sum interface {
  343. isEvidence_Sum()
  344. }
  345. type Evidence_DuplicateVoteEvidence struct {
  346. DuplicateVoteEvidence *DuplicateVoteEvidence `protobuf:"bytes,1,opt,name=duplicate_vote_evidence,json=duplicateVoteEvidence,proto3,oneof" json:"duplicate_vote_evidence,omitempty"`
  347. }
  348. type Evidence_ConflictingHeadersEvidence struct {
  349. ConflictingHeadersEvidence *ConflictingHeadersEvidence `protobuf:"bytes,2,opt,name=conflicting_headers_evidence,json=conflictingHeadersEvidence,proto3,oneof" json:"conflicting_headers_evidence,omitempty"`
  350. }
  351. type Evidence_LunaticValidatorEvidence struct {
  352. LunaticValidatorEvidence *LunaticValidatorEvidence `protobuf:"bytes,3,opt,name=lunatic_validator_evidence,json=lunaticValidatorEvidence,proto3,oneof" json:"lunatic_validator_evidence,omitempty"`
  353. }
  354. type Evidence_PotentialAmnesiaEvidence struct {
  355. PotentialAmnesiaEvidence *PotentialAmnesiaEvidence `protobuf:"bytes,4,opt,name=potential_amnesia_evidence,json=potentialAmnesiaEvidence,proto3,oneof" json:"potential_amnesia_evidence,omitempty"`
  356. }
  357. type Evidence_MockEvidence struct {
  358. MockEvidence *MockEvidence `protobuf:"bytes,5,opt,name=mock_evidence,json=mockEvidence,proto3,oneof" json:"mock_evidence,omitempty"`
  359. }
  360. type Evidence_MockRandomEvidence struct {
  361. MockRandomEvidence *MockRandomEvidence `protobuf:"bytes,6,opt,name=mock_random_evidence,json=mockRandomEvidence,proto3,oneof" json:"mock_random_evidence,omitempty"`
  362. }
  363. func (*Evidence_DuplicateVoteEvidence) isEvidence_Sum() {}
  364. func (*Evidence_ConflictingHeadersEvidence) isEvidence_Sum() {}
  365. func (*Evidence_LunaticValidatorEvidence) isEvidence_Sum() {}
  366. func (*Evidence_PotentialAmnesiaEvidence) isEvidence_Sum() {}
  367. func (*Evidence_MockEvidence) isEvidence_Sum() {}
  368. func (*Evidence_MockRandomEvidence) isEvidence_Sum() {}
  369. func (m *Evidence) GetSum() isEvidence_Sum {
  370. if m != nil {
  371. return m.Sum
  372. }
  373. return nil
  374. }
  375. func (m *Evidence) GetDuplicateVoteEvidence() *DuplicateVoteEvidence {
  376. if x, ok := m.GetSum().(*Evidence_DuplicateVoteEvidence); ok {
  377. return x.DuplicateVoteEvidence
  378. }
  379. return nil
  380. }
  381. func (m *Evidence) GetConflictingHeadersEvidence() *ConflictingHeadersEvidence {
  382. if x, ok := m.GetSum().(*Evidence_ConflictingHeadersEvidence); ok {
  383. return x.ConflictingHeadersEvidence
  384. }
  385. return nil
  386. }
  387. func (m *Evidence) GetLunaticValidatorEvidence() *LunaticValidatorEvidence {
  388. if x, ok := m.GetSum().(*Evidence_LunaticValidatorEvidence); ok {
  389. return x.LunaticValidatorEvidence
  390. }
  391. return nil
  392. }
  393. func (m *Evidence) GetPotentialAmnesiaEvidence() *PotentialAmnesiaEvidence {
  394. if x, ok := m.GetSum().(*Evidence_PotentialAmnesiaEvidence); ok {
  395. return x.PotentialAmnesiaEvidence
  396. }
  397. return nil
  398. }
  399. func (m *Evidence) GetMockEvidence() *MockEvidence {
  400. if x, ok := m.GetSum().(*Evidence_MockEvidence); ok {
  401. return x.MockEvidence
  402. }
  403. return nil
  404. }
  405. func (m *Evidence) GetMockRandomEvidence() *MockRandomEvidence {
  406. if x, ok := m.GetSum().(*Evidence_MockRandomEvidence); ok {
  407. return x.MockRandomEvidence
  408. }
  409. return nil
  410. }
  411. // XXX_OneofWrappers is for the internal use of the proto package.
  412. func (*Evidence) XXX_OneofWrappers() []interface{} {
  413. return []interface{}{
  414. (*Evidence_DuplicateVoteEvidence)(nil),
  415. (*Evidence_ConflictingHeadersEvidence)(nil),
  416. (*Evidence_LunaticValidatorEvidence)(nil),
  417. (*Evidence_PotentialAmnesiaEvidence)(nil),
  418. (*Evidence_MockEvidence)(nil),
  419. (*Evidence_MockRandomEvidence)(nil),
  420. }
  421. }
  422. // EvidenceData contains any evidence of malicious wrong-doing by validators
  423. type EvidenceData struct {
  424. Evidence []Evidence `protobuf:"bytes,1,rep,name=evidence,proto3" json:"evidence"`
  425. Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
  426. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  427. XXX_unrecognized []byte `json:"-"`
  428. XXX_sizecache int32 `json:"-"`
  429. }
  430. func (m *EvidenceData) Reset() { *m = EvidenceData{} }
  431. func (m *EvidenceData) String() string { return proto.CompactTextString(m) }
  432. func (*EvidenceData) ProtoMessage() {}
  433. func (*EvidenceData) Descriptor() ([]byte, []int) {
  434. return fileDescriptor_86495eef24aeacc0, []int{7}
  435. }
  436. func (m *EvidenceData) XXX_Unmarshal(b []byte) error {
  437. return xxx_messageInfo_EvidenceData.Unmarshal(m, b)
  438. }
  439. func (m *EvidenceData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  440. return xxx_messageInfo_EvidenceData.Marshal(b, m, deterministic)
  441. }
  442. func (m *EvidenceData) XXX_Merge(src proto.Message) {
  443. xxx_messageInfo_EvidenceData.Merge(m, src)
  444. }
  445. func (m *EvidenceData) XXX_Size() int {
  446. return xxx_messageInfo_EvidenceData.Size(m)
  447. }
  448. func (m *EvidenceData) XXX_DiscardUnknown() {
  449. xxx_messageInfo_EvidenceData.DiscardUnknown(m)
  450. }
  451. var xxx_messageInfo_EvidenceData proto.InternalMessageInfo
  452. func (m *EvidenceData) GetEvidence() []Evidence {
  453. if m != nil {
  454. return m.Evidence
  455. }
  456. return nil
  457. }
  458. func (m *EvidenceData) GetHash() []byte {
  459. if m != nil {
  460. return m.Hash
  461. }
  462. return nil
  463. }
  464. type ProofOfLockChange struct {
  465. Votes []Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes"`
  466. PubKey keys.PublicKey `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key"`
  467. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  468. XXX_unrecognized []byte `json:"-"`
  469. XXX_sizecache int32 `json:"-"`
  470. }
  471. func (m *ProofOfLockChange) Reset() { *m = ProofOfLockChange{} }
  472. func (m *ProofOfLockChange) String() string { return proto.CompactTextString(m) }
  473. func (*ProofOfLockChange) ProtoMessage() {}
  474. func (*ProofOfLockChange) Descriptor() ([]byte, []int) {
  475. return fileDescriptor_86495eef24aeacc0, []int{8}
  476. }
  477. func (m *ProofOfLockChange) XXX_Unmarshal(b []byte) error {
  478. return xxx_messageInfo_ProofOfLockChange.Unmarshal(m, b)
  479. }
  480. func (m *ProofOfLockChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  481. return xxx_messageInfo_ProofOfLockChange.Marshal(b, m, deterministic)
  482. }
  483. func (m *ProofOfLockChange) XXX_Merge(src proto.Message) {
  484. xxx_messageInfo_ProofOfLockChange.Merge(m, src)
  485. }
  486. func (m *ProofOfLockChange) XXX_Size() int {
  487. return xxx_messageInfo_ProofOfLockChange.Size(m)
  488. }
  489. func (m *ProofOfLockChange) XXX_DiscardUnknown() {
  490. xxx_messageInfo_ProofOfLockChange.DiscardUnknown(m)
  491. }
  492. var xxx_messageInfo_ProofOfLockChange proto.InternalMessageInfo
  493. func (m *ProofOfLockChange) GetVotes() []Vote {
  494. if m != nil {
  495. return m.Votes
  496. }
  497. return nil
  498. }
  499. func (m *ProofOfLockChange) GetPubKey() keys.PublicKey {
  500. if m != nil {
  501. return m.PubKey
  502. }
  503. return keys.PublicKey{}
  504. }
  505. func init() {
  506. proto.RegisterType((*DuplicateVoteEvidence)(nil), "tendermint.proto.types.DuplicateVoteEvidence")
  507. proto.RegisterType((*PotentialAmnesiaEvidence)(nil), "tendermint.proto.types.PotentialAmnesiaEvidence")
  508. proto.RegisterType((*MockEvidence)(nil), "tendermint.proto.types.MockEvidence")
  509. proto.RegisterType((*MockRandomEvidence)(nil), "tendermint.proto.types.MockRandomEvidence")
  510. proto.RegisterType((*ConflictingHeadersEvidence)(nil), "tendermint.proto.types.ConflictingHeadersEvidence")
  511. proto.RegisterType((*LunaticValidatorEvidence)(nil), "tendermint.proto.types.LunaticValidatorEvidence")
  512. proto.RegisterType((*Evidence)(nil), "tendermint.proto.types.Evidence")
  513. proto.RegisterType((*EvidenceData)(nil), "tendermint.proto.types.EvidenceData")
  514. proto.RegisterType((*ProofOfLockChange)(nil), "tendermint.proto.types.ProofOfLockChange")
  515. }
  516. func init() { proto.RegisterFile("proto/types/evidence.proto", fileDescriptor_86495eef24aeacc0) }
  517. var fileDescriptor_86495eef24aeacc0 = []byte{
  518. // 784 bytes of a gzipped FileDescriptorProto
  519. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x56, 0xcb, 0x6e, 0xdb, 0x38,
  520. 0x14, 0xb5, 0xfc, 0x9a, 0x84, 0x71, 0xe6, 0x41, 0x24, 0x13, 0x43, 0x48, 0x26, 0x81, 0x30, 0x98,
  521. 0x64, 0x06, 0x33, 0x72, 0xe2, 0x0c, 0x8a, 0x2e, 0x1b, 0x27, 0x0d, 0x5c, 0x24, 0x45, 0x03, 0xb5,
  522. 0xc8, 0xa2, 0x8b, 0x0a, 0x94, 0x44, 0x4b, 0x84, 0x25, 0x51, 0x90, 0x28, 0x03, 0x5a, 0xb7, 0x8b,
  523. 0x2e, 0xbb, 0xe9, 0x67, 0x74, 0xdb, 0x1f, 0xe8, 0xa6, 0xeb, 0x7e, 0x40, 0xfb, 0x2b, 0x85, 0x48,
  524. 0x4a, 0x72, 0x90, 0xc8, 0x70, 0xbb, 0xeb, 0x26, 0x60, 0x2e, 0xef, 0x3d, 0xe7, 0x90, 0xf7, 0xea,
  525. 0xd0, 0x40, 0x8d, 0x62, 0xca, 0xe8, 0x80, 0x65, 0x11, 0x4e, 0x06, 0x78, 0x46, 0x1c, 0x1c, 0xda,
  526. 0x58, 0xe7, 0x41, 0xf8, 0x3b, 0xc3, 0xa1, 0x83, 0xe3, 0x80, 0x84, 0x4c, 0x44, 0x74, 0x9e, 0xa6,
  527. 0xfe, 0xc5, 0x3c, 0x12, 0x3b, 0x66, 0x84, 0x62, 0x96, 0x0d, 0x44, 0xbd, 0x4b, 0x5d, 0x5a, 0xad,
  528. 0x44, 0xb6, 0xba, 0x35, 0x8f, 0xcd, 0xff, 0xca, 0x8d, 0x5d, 0x97, 0x52, 0xd7, 0xc7, 0xa2, 0xd6,
  529. 0x4a, 0x27, 0x03, 0x46, 0x02, 0x9c, 0x30, 0x14, 0x44, 0x32, 0x61, 0x47, 0x54, 0xda, 0x71, 0x16,
  530. 0x31, 0x3a, 0x98, 0xe2, 0xec, 0x46, 0xbd, 0xf6, 0x41, 0x01, 0x9b, 0x67, 0x69, 0xe4, 0x13, 0x1b,
  531. 0x31, 0x7c, 0x4d, 0x19, 0x7e, 0x28, 0x85, 0xc3, 0x07, 0xe0, 0xa7, 0x28, 0xb5, 0xcc, 0x29, 0xce,
  532. 0xfa, 0xca, 0x9e, 0x72, 0xb0, 0x36, 0xdc, 0xd7, 0x6f, 0x1d, 0x42, 0xa0, 0xea, 0x39, 0xaa, 0x7e,
  533. 0x95, 0x5a, 0x3e, 0xb1, 0x2f, 0x70, 0x66, 0x74, 0xa3, 0xd4, 0xba, 0xc0, 0x19, 0x3c, 0x06, 0xdd,
  534. 0x19, 0x65, 0xd8, 0x44, 0xfd, 0x26, 0x07, 0xd8, 0xd6, 0xef, 0xbe, 0x05, 0x3d, 0xe7, 0x35, 0x3a,
  535. 0x79, 0xee, 0x49, 0x59, 0x64, 0xf5, 0x5b, 0xcb, 0x16, 0x8d, 0xb4, 0x57, 0x0a, 0xe8, 0x5f, 0x51,
  536. 0x86, 0x43, 0x46, 0x90, 0x7f, 0x12, 0x84, 0x38, 0x21, 0xa8, 0x3c, 0x48, 0x25, 0x43, 0xf9, 0x1e,
  537. 0x19, 0xcd, 0xe5, 0x65, 0xbc, 0x53, 0x40, 0xef, 0x31, 0xb5, 0xa7, 0x25, 0xf5, 0x3e, 0xf8, 0xa5,
  538. 0x18, 0x04, 0xd3, 0xc3, 0xc4, 0xf5, 0x18, 0xd7, 0xd0, 0x32, 0x7e, 0x2e, 0xc2, 0x63, 0x1e, 0x85,
  539. 0x8f, 0xc0, 0x7a, 0x99, 0x98, 0x77, 0x50, 0xb2, 0xaa, 0xba, 0x68, 0xaf, 0x5e, 0xb4, 0x57, 0x7f,
  540. 0x56, 0xb4, 0x77, 0xb4, 0xf2, 0xf1, 0xf3, 0x6e, 0xe3, 0xcd, 0x97, 0x5d, 0xc5, 0xe8, 0x15, 0xa5,
  541. 0xf9, 0x26, 0xfc, 0x1b, 0xfc, 0x5a, 0x42, 0x21, 0xc7, 0x89, 0x71, 0x92, 0xf0, 0xab, 0xec, 0x19,
  542. 0xa5, 0x96, 0x13, 0x11, 0xd6, 0x3e, 0x29, 0x00, 0xe6, 0x7a, 0x0d, 0x14, 0x3a, 0x34, 0xf8, 0x41,
  543. 0x54, 0xc3, 0x1d, 0x00, 0x62, 0x14, 0x3a, 0xa6, 0x95, 0x31, 0x9c, 0xf4, 0xdb, 0x3c, 0x69, 0x35,
  544. 0x8f, 0x8c, 0xf2, 0x80, 0xf6, 0x5a, 0x01, 0xea, 0x29, 0x0d, 0x27, 0x3e, 0xb1, 0x19, 0x09, 0xdd,
  545. 0x31, 0x46, 0x0e, 0x8e, 0x93, 0xf2, 0x70, 0xff, 0x83, 0xa6, 0x77, 0x24, 0x27, 0xe1, 0xcf, 0xba,
  546. 0xa6, 0x3e, 0x25, 0x6e, 0x88, 0x1d, 0x51, 0x6a, 0x34, 0xbd, 0x23, 0x5e, 0x35, 0x94, 0xc7, 0x5b,
  547. 0xb6, 0x6a, 0xa8, 0xbd, 0x57, 0x40, 0xff, 0x32, 0x0d, 0x11, 0x23, 0xf6, 0x35, 0xf2, 0x89, 0x83,
  548. 0x18, 0x8d, 0x4b, 0x21, 0xf7, 0x40, 0xd7, 0xe3, 0xa9, 0x52, 0xcc, 0x1f, 0x75, 0xb0, 0x12, 0x50,
  549. 0x66, 0xc3, 0x43, 0xd0, 0xce, 0xa7, 0x6d, 0xa9, 0xb9, 0xe4, 0x99, 0xf0, 0x10, 0x6c, 0x90, 0x70,
  550. 0x96, 0x0b, 0x30, 0x05, 0x86, 0x39, 0x21, 0xd8, 0x77, 0xf8, 0xfd, 0xae, 0x1a, 0x50, 0xee, 0x09,
  551. 0x9a, 0xf3, 0x7c, 0x47, 0x7b, 0xd9, 0x01, 0x2b, 0xa5, 0x50, 0x17, 0x6c, 0x39, 0x85, 0x43, 0x98,
  552. 0xfc, 0xa3, 0x28, 0x3a, 0x22, 0x95, 0xff, 0x57, 0xa7, 0xe1, 0x4e, 0x63, 0x19, 0x37, 0x8c, 0x4d,
  553. 0xe7, 0x4e, 0xc7, 0x99, 0x81, 0x6d, 0xbb, 0x6a, 0x9c, 0xd4, 0x9a, 0x54, 0x6c, 0xe2, 0xc4, 0xc3,
  554. 0x3a, 0xb6, 0xfa, 0xa6, 0x8f, 0x1b, 0x86, 0x6a, 0xd7, 0x8f, 0x44, 0x04, 0x54, 0x5f, 0x74, 0xc9,
  555. 0x9c, 0x15, 0x6d, 0xaa, 0x58, 0x85, 0x0d, 0x1d, 0xd6, 0xb1, 0xd6, 0xf5, 0x77, 0xdc, 0x30, 0xfa,
  556. 0x7e, 0x5d, 0xef, 0x23, 0xa0, 0x46, 0x85, 0x5d, 0x99, 0x48, 0xf8, 0x55, 0xc5, 0xd8, 0x5e, 0xcc,
  557. 0x58, 0x67, 0x74, 0x39, 0x63, 0x54, 0x67, 0x82, 0x17, 0x60, 0x3d, 0xa0, 0xf6, 0xb4, 0x22, 0xe9,
  558. 0x2c, 0x9e, 0xe5, 0x79, 0x1b, 0x1b, 0x37, 0x8c, 0x5e, 0x30, 0x6f, 0x6b, 0x2f, 0xc0, 0x06, 0x07,
  559. 0x8b, 0xb9, 0x6f, 0x54, 0x98, 0x5d, 0x8e, 0xf9, 0xcf, 0x22, 0xcc, 0x9b, 0x56, 0x33, 0x6e, 0x18,
  560. 0x30, 0xb8, 0x15, 0x1d, 0x75, 0x40, 0x2b, 0x49, 0x03, 0x6d, 0x02, 0x7a, 0x45, 0xe8, 0x0c, 0x31,
  561. 0x04, 0x47, 0x60, 0x65, 0x6e, 0xf2, 0x5a, 0x07, 0x6b, 0xc3, 0xbd, 0x3a, 0xaa, 0x12, 0xaa, 0x9d,
  562. 0xfb, 0x8d, 0x51, 0xd6, 0x41, 0x08, 0xda, 0x1e, 0x4a, 0x3c, 0x3e, 0x4b, 0x3d, 0x83, 0xaf, 0xb5,
  563. 0xb7, 0x0a, 0xf8, 0xed, 0x2a, 0xa6, 0x74, 0xf2, 0x64, 0x72, 0x49, 0xed, 0xe9, 0xa9, 0x87, 0x42,
  564. 0x17, 0xc3, 0xfb, 0x80, 0xbb, 0x7a, 0x22, 0xa9, 0x16, 0x7e, 0x68, 0x92, 0x46, 0x14, 0xc0, 0xf3,
  565. 0xea, 0xe5, 0x6c, 0x7e, 0xd3, 0xcb, 0x29, 0x61, 0xe4, 0xfb, 0x39, 0xd2, 0x9f, 0xff, 0xeb, 0x12,
  566. 0xe6, 0xa5, 0x96, 0x6e, 0xd3, 0x60, 0x50, 0x41, 0xcc, 0x2f, 0xe7, 0x7e, 0x17, 0x58, 0x5d, 0xfe,
  567. 0xcf, 0xf1, 0xd7, 0x00, 0x00, 0x00, 0xff, 0xff, 0x97, 0x06, 0x2d, 0xa0, 0x89, 0x08, 0x00, 0x00,
  568. }