-
Notifications
You must be signed in to change notification settings - Fork 139
/
btccheckpoint.pb.go
2373 lines (2275 loc) · 62.3 KB
/
btccheckpoint.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: babylon/btccheckpoint/v1/btccheckpoint.proto
package types
import (
fmt "fmt"
github_com_babylonchain_babylon_types "github.com/babylonchain/babylon/types"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
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
// BtcStatus is an enum describing the current btc status of the checkpoint
type BtcStatus int32
const (
// SUBMITTED Epoch has Submitted btc status if there ever was at least one
// known submission on btc main chain
Submitted BtcStatus = 0
// CONFIRMED Epoch has Confirmed btc status if there ever was at least one
// known submission on btc main chain which was k-deep
Confirmed BtcStatus = 1
// CONFIRMED Epoch has Finalized btc status if there is was at exactly one
// knon submission on btc main chain which is w-deep
Finalized BtcStatus = 2
)
var BtcStatus_name = map[int32]string{
0: "EPOCH_STATUS_SUBMITTED",
1: "EPOCH_STATUS_CONFIRMED",
2: "EPOCH_STATUS_FINALIZED",
}
var BtcStatus_value = map[string]int32{
"EPOCH_STATUS_SUBMITTED": 0,
"EPOCH_STATUS_CONFIRMED": 1,
"EPOCH_STATUS_FINALIZED": 2,
}
func (x BtcStatus) String() string {
return proto.EnumName(BtcStatus_name, int32(x))
}
func (BtcStatus) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e096cac78d49b0a6, []int{0}
}
// Consider we have a Merkle tree with following structure:
//
// ROOT
// / \
// H1234 H5555
// / \ \
// H12 H34 H55
// / \ / \ /
//
// H1 H2 H3 H4 H5
// L1 L2 L3 L4 L5
// To prove L3 was part of ROOT we need:
// - btc_transaction_index = 2 which in binary is 010
// (where 0 means going left, 1 means going right in the tree)
// - merkle_nodes we'd have H4 || H12 || H5555
// By looking at 010 we would know that H4 is a right sibling,
// H12 is left, H5555 is right again.
type BTCSpvProof struct {
// Valid bitcoin transaction containing OP_RETURN opcode.
BtcTransaction []byte `protobuf:"bytes,1,opt,name=btc_transaction,json=btcTransaction,proto3" json:"btc_transaction,omitempty"`
// Index of transaction within the block. Index is needed to determine if
// currently hashed node is left or right.
BtcTransactionIndex uint32 `protobuf:"varint,2,opt,name=btc_transaction_index,json=btcTransactionIndex,proto3" json:"btc_transaction_index,omitempty"`
// List of concatenated intermediate merkle tree nodes, without root node and
// leaf node against which we calculate the proof. Each node has 32 byte
// length. Example proof can look like: 32_bytes_of_node1 || 32_bytes_of_node2
// || 32_bytes_of_node3 so the length of the proof will always be divisible
// by 32.
MerkleNodes []byte `protobuf:"bytes,3,opt,name=merkle_nodes,json=merkleNodes,proto3" json:"merkle_nodes,omitempty"`
// Valid btc header which confirms btc_transaction.
// Should have exactly 80 bytes
ConfirmingBtcHeader *github_com_babylonchain_babylon_types.BTCHeaderBytes `protobuf:"bytes,4,opt,name=confirming_btc_header,json=confirmingBtcHeader,proto3,customtype=github.com/babylonchain/babylon/types.BTCHeaderBytes" json:"confirming_btc_header,omitempty"`
}
func (m *BTCSpvProof) Reset() { *m = BTCSpvProof{} }
func (m *BTCSpvProof) String() string { return proto.CompactTextString(m) }
func (*BTCSpvProof) ProtoMessage() {}
func (*BTCSpvProof) Descriptor() ([]byte, []int) {
return fileDescriptor_e096cac78d49b0a6, []int{0}
}
func (m *BTCSpvProof) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *BTCSpvProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_BTCSpvProof.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 *BTCSpvProof) XXX_Merge(src proto.Message) {
xxx_messageInfo_BTCSpvProof.Merge(m, src)
}
func (m *BTCSpvProof) XXX_Size() int {
return m.Size()
}
func (m *BTCSpvProof) XXX_DiscardUnknown() {
xxx_messageInfo_BTCSpvProof.DiscardUnknown(m)
}
var xxx_messageInfo_BTCSpvProof proto.InternalMessageInfo
func (m *BTCSpvProof) GetBtcTransaction() []byte {
if m != nil {
return m.BtcTransaction
}
return nil
}
func (m *BTCSpvProof) GetBtcTransactionIndex() uint32 {
if m != nil {
return m.BtcTransactionIndex
}
return 0
}
func (m *BTCSpvProof) GetMerkleNodes() []byte {
if m != nil {
return m.MerkleNodes
}
return nil
}
// Each provided OP_RETURN transaction can be idendtified by hash of block in
// which transaction was included and transaction index in the block
type TransactionKey struct {
Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
Hash *github_com_babylonchain_babylon_types.BTCHeaderHashBytes `protobuf:"bytes,2,opt,name=hash,proto3,customtype=github.com/babylonchain/babylon/types.BTCHeaderHashBytes" json:"hash,omitempty"`
}
func (m *TransactionKey) Reset() { *m = TransactionKey{} }
func (m *TransactionKey) String() string { return proto.CompactTextString(m) }
func (*TransactionKey) ProtoMessage() {}
func (*TransactionKey) Descriptor() ([]byte, []int) {
return fileDescriptor_e096cac78d49b0a6, []int{1}
}
func (m *TransactionKey) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *TransactionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_TransactionKey.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 *TransactionKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_TransactionKey.Merge(m, src)
}
func (m *TransactionKey) XXX_Size() int {
return m.Size()
}
func (m *TransactionKey) XXX_DiscardUnknown() {
xxx_messageInfo_TransactionKey.DiscardUnknown(m)
}
var xxx_messageInfo_TransactionKey proto.InternalMessageInfo
func (m *TransactionKey) GetIndex() uint32 {
if m != nil {
return m.Index
}
return 0
}
// Checkpoint can be composed from multiple transactions, so to identify whole
// submission we need list of transaction keys.
// Each submission can generally be identified by this list of (txIdx,
// blockHash) tuples. Note: this could possibly be optimized as if transactions
// were in one block they would have the same block hash and different indexes,
// but each blockhash is only 33 (1 byte for prefix encoding and 32 byte hash),
// so there should be other strong arguments for this optimization
type SubmissionKey struct {
Key []*TransactionKey `protobuf:"bytes,1,rep,name=key,proto3" json:"key,omitempty"`
}
func (m *SubmissionKey) Reset() { *m = SubmissionKey{} }
func (m *SubmissionKey) String() string { return proto.CompactTextString(m) }
func (*SubmissionKey) ProtoMessage() {}
func (*SubmissionKey) Descriptor() ([]byte, []int) {
return fileDescriptor_e096cac78d49b0a6, []int{2}
}
func (m *SubmissionKey) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SubmissionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SubmissionKey.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 *SubmissionKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_SubmissionKey.Merge(m, src)
}
func (m *SubmissionKey) XXX_Size() int {
return m.Size()
}
func (m *SubmissionKey) XXX_DiscardUnknown() {
xxx_messageInfo_SubmissionKey.DiscardUnknown(m)
}
var xxx_messageInfo_SubmissionKey proto.InternalMessageInfo
func (m *SubmissionKey) GetKey() []*TransactionKey {
if m != nil {
return m.Key
}
return nil
}
// TransactionInfo is the info of a tx that contains Babylon checkpoint,
// including
// - the position of the tx on BTC blockchain
// - the full tx content
// - the Merkle proof that this tx is on the above position
type TransactionInfo struct {
// key is the position (txIdx, blockHash) of this tx on BTC blockchain
// Although it is already a part of SubmissionKey, we store it here again
// to make TransactionInfo self-contained.
// For example, storing the key allows TransactionInfo to not relay on
// the fact that TransactionInfo will be ordered in the same order as
// TransactionKeys in SubmissionKey.
Key *TransactionKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// transaction is the full transaction in bytes
Transaction []byte `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"`
// proof is the Merkle proof that this tx is included in the position in `key`
// TODO: maybe it could use here better format as we already processed and
// valideated the proof?
Proof []byte `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"`
}
func (m *TransactionInfo) Reset() { *m = TransactionInfo{} }
func (m *TransactionInfo) String() string { return proto.CompactTextString(m) }
func (*TransactionInfo) ProtoMessage() {}
func (*TransactionInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_e096cac78d49b0a6, []int{3}
}
func (m *TransactionInfo) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *TransactionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_TransactionInfo.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 *TransactionInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_TransactionInfo.Merge(m, src)
}
func (m *TransactionInfo) XXX_Size() int {
return m.Size()
}
func (m *TransactionInfo) XXX_DiscardUnknown() {
xxx_messageInfo_TransactionInfo.DiscardUnknown(m)
}
var xxx_messageInfo_TransactionInfo proto.InternalMessageInfo
func (m *TransactionInfo) GetKey() *TransactionKey {
if m != nil {
return m.Key
}
return nil
}
func (m *TransactionInfo) GetTransaction() []byte {
if m != nil {
return m.Transaction
}
return nil
}
func (m *TransactionInfo) GetProof() []byte {
if m != nil {
return m.Proof
}
return nil
}
// TODO: Determine if we should keep any block number or depth info.
// On one hand it may be usefull to determine if block is stable or not, on
// other depth/block number info, without context (i.e info about chain) is
// pretty useless and blockshash in enough to retrieve is from lightclient
type SubmissionData struct {
// address of the submitter and reporter
VigilanteAddresses *CheckpointAddresses `protobuf:"bytes,1,opt,name=vigilante_addresses,json=vigilanteAddresses,proto3" json:"vigilante_addresses,omitempty"`
// txs_info is the two `TransactionInfo`s corresponding to the submission
// It is used for
// - recovering address of sender of btc transction to payup the reward.
// - allowing the ZoneConcierge module to prove the checkpoint is submitted to
// BTC
TxsInfo []*TransactionInfo `protobuf:"bytes,2,rep,name=txs_info,json=txsInfo,proto3" json:"txs_info,omitempty"`
Epoch uint64 `protobuf:"varint,3,opt,name=epoch,proto3" json:"epoch,omitempty"`
}
func (m *SubmissionData) Reset() { *m = SubmissionData{} }
func (m *SubmissionData) String() string { return proto.CompactTextString(m) }
func (*SubmissionData) ProtoMessage() {}
func (*SubmissionData) Descriptor() ([]byte, []int) {
return fileDescriptor_e096cac78d49b0a6, []int{4}
}
func (m *SubmissionData) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SubmissionData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SubmissionData.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 *SubmissionData) XXX_Merge(src proto.Message) {
xxx_messageInfo_SubmissionData.Merge(m, src)
}
func (m *SubmissionData) XXX_Size() int {
return m.Size()
}
func (m *SubmissionData) XXX_DiscardUnknown() {
xxx_messageInfo_SubmissionData.DiscardUnknown(m)
}
var xxx_messageInfo_SubmissionData proto.InternalMessageInfo
func (m *SubmissionData) GetVigilanteAddresses() *CheckpointAddresses {
if m != nil {
return m.VigilanteAddresses
}
return nil
}
func (m *SubmissionData) GetTxsInfo() []*TransactionInfo {
if m != nil {
return m.TxsInfo
}
return nil
}
func (m *SubmissionData) GetEpoch() uint64 {
if m != nil {
return m.Epoch
}
return 0
}
// Data stored in db and indexed by epoch number
// TODO: Add btc blockheight at epooch end, when adding hadnling of epoching
// callbacks
type EpochData struct {
// List of all received checkpoints during this epoch, sorted by order of
// submission.
Key []*SubmissionKey `protobuf:"bytes,1,rep,name=key,proto3" json:"key,omitempty"`
// Current btc status of the epoch
Status BtcStatus `protobuf:"varint,2,opt,name=status,proto3,enum=babylon.btccheckpoint.v1.BtcStatus" json:"status,omitempty"`
}
func (m *EpochData) Reset() { *m = EpochData{} }
func (m *EpochData) String() string { return proto.CompactTextString(m) }
func (*EpochData) ProtoMessage() {}
func (*EpochData) Descriptor() ([]byte, []int) {
return fileDescriptor_e096cac78d49b0a6, []int{5}
}
func (m *EpochData) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *EpochData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_EpochData.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 *EpochData) XXX_Merge(src proto.Message) {
xxx_messageInfo_EpochData.Merge(m, src)
}
func (m *EpochData) XXX_Size() int {
return m.Size()
}
func (m *EpochData) XXX_DiscardUnknown() {
xxx_messageInfo_EpochData.DiscardUnknown(m)
}
var xxx_messageInfo_EpochData proto.InternalMessageInfo
func (m *EpochData) GetKey() []*SubmissionKey {
if m != nil {
return m.Key
}
return nil
}
func (m *EpochData) GetStatus() BtcStatus {
if m != nil {
return m.Status
}
return Submitted
}
// CheckpointAddresses contains the addresses of the submitter and reporter of a
// given checkpoint
type CheckpointAddresses struct {
// TODO: this could probably be better typed
// submitter is the address of the checkpoint submitter to BTC, extracted from
// the checkpoint itself.
Submitter []byte `protobuf:"bytes,1,opt,name=submitter,proto3" json:"submitter,omitempty"`
// reporter is the address of the reporter who reported the submissions,
// calculated from submission message MsgInsertBTCSpvProof itself
Reporter []byte `protobuf:"bytes,2,opt,name=reporter,proto3" json:"reporter,omitempty"`
}
func (m *CheckpointAddresses) Reset() { *m = CheckpointAddresses{} }
func (m *CheckpointAddresses) String() string { return proto.CompactTextString(m) }
func (*CheckpointAddresses) ProtoMessage() {}
func (*CheckpointAddresses) Descriptor() ([]byte, []int) {
return fileDescriptor_e096cac78d49b0a6, []int{6}
}
func (m *CheckpointAddresses) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CheckpointAddresses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CheckpointAddresses.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 *CheckpointAddresses) XXX_Merge(src proto.Message) {
xxx_messageInfo_CheckpointAddresses.Merge(m, src)
}
func (m *CheckpointAddresses) XXX_Size() int {
return m.Size()
}
func (m *CheckpointAddresses) XXX_DiscardUnknown() {
xxx_messageInfo_CheckpointAddresses.DiscardUnknown(m)
}
var xxx_messageInfo_CheckpointAddresses proto.InternalMessageInfo
func (m *CheckpointAddresses) GetSubmitter() []byte {
if m != nil {
return m.Submitter
}
return nil
}
func (m *CheckpointAddresses) GetReporter() []byte {
if m != nil {
return m.Reporter
}
return nil
}
// BTCCheckpointInfo contains all data about best submission of checkpoint for
// given epoch. Best submission is the submission which is deeper in btc ledger
type BTCCheckpointInfo struct {
// epoch number of this checkpoint
EpochNumber uint64 `protobuf:"varint,1,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"`
// btc height of the best submission of the epoch
BestSubmissionBtcBlockHeight uint64 `protobuf:"varint,2,opt,name=best_submission_btc_block_height,json=bestSubmissionBtcBlockHeight,proto3" json:"best_submission_btc_block_height,omitempty"`
// hash of the btc block which determines checkpoint btc block height i.e.
// youngest block of best submission
BestSubmissionBtcBlockHash *github_com_babylonchain_babylon_types.BTCHeaderHashBytes `protobuf:"bytes,3,opt,name=best_submission_btc_block_hash,json=bestSubmissionBtcBlockHash,proto3,customtype=github.com/babylonchain/babylon/types.BTCHeaderHashBytes" json:"best_submission_btc_block_hash,omitempty"`
// the BTC checkpoint transactions of the best submission
BestSubmissionTransactions []*TransactionInfo `protobuf:"bytes,4,rep,name=best_submission_transactions,json=bestSubmissionTransactions,proto3" json:"best_submission_transactions,omitempty"`
// list of vigilantes' addresses of the best submission
BestSubmissionVigilanteAddressList []*CheckpointAddresses `protobuf:"bytes,5,rep,name=best_submission_vigilante_address_list,json=bestSubmissionVigilanteAddressList,proto3" json:"best_submission_vigilante_address_list,omitempty"`
}
func (m *BTCCheckpointInfo) Reset() { *m = BTCCheckpointInfo{} }
func (m *BTCCheckpointInfo) String() string { return proto.CompactTextString(m) }
func (*BTCCheckpointInfo) ProtoMessage() {}
func (*BTCCheckpointInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_e096cac78d49b0a6, []int{7}
}
func (m *BTCCheckpointInfo) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *BTCCheckpointInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_BTCCheckpointInfo.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 *BTCCheckpointInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_BTCCheckpointInfo.Merge(m, src)
}
func (m *BTCCheckpointInfo) XXX_Size() int {
return m.Size()
}
func (m *BTCCheckpointInfo) XXX_DiscardUnknown() {
xxx_messageInfo_BTCCheckpointInfo.DiscardUnknown(m)
}
var xxx_messageInfo_BTCCheckpointInfo proto.InternalMessageInfo
func (m *BTCCheckpointInfo) GetEpochNumber() uint64 {
if m != nil {
return m.EpochNumber
}
return 0
}
func (m *BTCCheckpointInfo) GetBestSubmissionBtcBlockHeight() uint64 {
if m != nil {
return m.BestSubmissionBtcBlockHeight
}
return 0
}
func (m *BTCCheckpointInfo) GetBestSubmissionTransactions() []*TransactionInfo {
if m != nil {
return m.BestSubmissionTransactions
}
return nil
}
func (m *BTCCheckpointInfo) GetBestSubmissionVigilanteAddressList() []*CheckpointAddresses {
if m != nil {
return m.BestSubmissionVigilanteAddressList
}
return nil
}
func init() {
proto.RegisterEnum("babylon.btccheckpoint.v1.BtcStatus", BtcStatus_name, BtcStatus_value)
proto.RegisterType((*BTCSpvProof)(nil), "babylon.btccheckpoint.v1.BTCSpvProof")
proto.RegisterType((*TransactionKey)(nil), "babylon.btccheckpoint.v1.TransactionKey")
proto.RegisterType((*SubmissionKey)(nil), "babylon.btccheckpoint.v1.SubmissionKey")
proto.RegisterType((*TransactionInfo)(nil), "babylon.btccheckpoint.v1.TransactionInfo")
proto.RegisterType((*SubmissionData)(nil), "babylon.btccheckpoint.v1.SubmissionData")
proto.RegisterType((*EpochData)(nil), "babylon.btccheckpoint.v1.EpochData")
proto.RegisterType((*CheckpointAddresses)(nil), "babylon.btccheckpoint.v1.CheckpointAddresses")
proto.RegisterType((*BTCCheckpointInfo)(nil), "babylon.btccheckpoint.v1.BTCCheckpointInfo")
}
func init() {
proto.RegisterFile("babylon/btccheckpoint/v1/btccheckpoint.proto", fileDescriptor_e096cac78d49b0a6)
}
var fileDescriptor_e096cac78d49b0a6 = []byte{
// 809 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x4b, 0x6f, 0xea, 0x46,
0x14, 0x66, 0x80, 0xdc, 0x5e, 0x06, 0xc2, 0x4d, 0x87, 0xdc, 0xca, 0x42, 0x91, 0x2f, 0xd7, 0x95,
0x1a, 0x52, 0xb5, 0xa0, 0xa4, 0xad, 0x94, 0x3e, 0x36, 0x31, 0x0f, 0x81, 0x92, 0x40, 0x64, 0x9c,
0x2e, 0xb2, 0xa8, 0x65, 0x9b, 0x01, 0x8f, 0x00, 0x0f, 0xf2, 0x0c, 0x08, 0xba, 0x6a, 0x55, 0x55,
0xaa, 0xba, 0xaa, 0xba, 0xef, 0xaa, 0x7f, 0xa6, 0x8b, 0x2e, 0xb2, 0xac, 0xb2, 0x88, 0xaa, 0xe4,
0x1f, 0x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x14, 0xdf, 0x74, 0x95, 0x56, 0x8a, 0x2d, 0x3c,
0x33, 0xf4, 0x2d, 0x80, 0xef, 0xad, 0x56, 0x7b, 0x74, 0x14, 0x46, 0x9f, 0x30, 0x2e, 0x6d, 0x89,
0xba, 0x1b, 0xde, 0x85, 0xb2, 0x5c, 0xfb, 0xcb, 0x95, 0x2b, 0x39, 0x23, 0x8c, 0xbf, 0xff, 0x33,
0x80, 0x89, 0xd9, 0x6e, 0xa1, 0x03, 0xf8, 0x4e, 0xe5, 0xa2, 0x59, 0xaa, 0x19, 0x2d, 0xfd, 0x44,
0xbf, 0x6c, 0x19, 0xad, 0x4b, 0xf5, 0xbc, 0xae, 0xeb, 0x95, 0xf2, 0x4e, 0x24, 0xbb, 0xfd, 0xe3,
0x2f, 0xb9, 0x44, 0x2b, 0xdc, 0xa4, 0xf6, 0x23, 0x68, 0xa9, 0xd9, 0xa8, 0xd6, 0xb5, 0xf3, 0x4a,
0x79, 0x07, 0x04, 0xd0, 0x52, 0xf0, 0xbf, 0xfa, 0x04, 0xb4, 0x5a, 0x6f, 0x9c, 0x9c, 0xd5, 0xaf,
0x2a, 0xe5, 0x9d, 0x68, 0x00, 0xad, 0x12, 0xd7, 0xec, 0x93, 0xaf, 0x71, 0x3b, 0x1b, 0xff, 0xe1,
0x57, 0x39, 0xa2, 0x36, 0x7f, 0xbb, 0x93, 0xc1, 0xf5, 0x9d, 0x0c, 0xfe, 0xbc, 0x93, 0xc1, 0x4f,
0xf7, 0x72, 0xe4, 0xfa, 0x5e, 0x8e, 0xfc, 0x71, 0x2f, 0x47, 0xae, 0x3e, 0xf9, 0xaf, 0xa9, 0x4f,
0x56, 0x3e, 0x87, 0x62, 0x0b, 0xac, 0x67, 0xe2, 0xa3, 0xf6, 0xd1, 0x3f, 0x01, 0x00, 0x00, 0xff,
0xff, 0xa5, 0xcd, 0xc5, 0xce, 0x34, 0x07, 0x00, 0x00,
}
func (m *BTCSpvProof) 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 *BTCSpvProof) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *BTCSpvProof) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.ConfirmingBtcHeader != nil {
{
size := m.ConfirmingBtcHeader.Size()
i -= size
if _, err := m.ConfirmingBtcHeader.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintBtccheckpoint(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x22
}
if len(m.MerkleNodes) > 0 {
i -= len(m.MerkleNodes)
copy(dAtA[i:], m.MerkleNodes)
i = encodeVarintBtccheckpoint(dAtA, i, uint64(len(m.MerkleNodes)))
i--
dAtA[i] = 0x1a
}
if m.BtcTransactionIndex != 0 {
i = encodeVarintBtccheckpoint(dAtA, i, uint64(m.BtcTransactionIndex))
i--
dAtA[i] = 0x10
}
if len(m.BtcTransaction) > 0 {
i -= len(m.BtcTransaction)
copy(dAtA[i:], m.BtcTransaction)
i = encodeVarintBtccheckpoint(dAtA, i, uint64(len(m.BtcTransaction)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *TransactionKey) 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 *TransactionKey) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *TransactionKey) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Hash != nil {
{
size := m.Hash.Size()
i -= size
if _, err := m.Hash.MarshalTo(dAtA[i:]); err != nil {
return 0, err
}
i = encodeVarintBtccheckpoint(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
}
if m.Index != 0 {
i = encodeVarintBtccheckpoint(dAtA, i, uint64(m.Index))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *SubmissionKey) 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 *SubmissionKey) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *SubmissionKey) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Key) > 0 {
for iNdEx := len(m.Key) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Key[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintBtccheckpoint(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
}
return len(dAtA) - i, nil
}
func (m *TransactionInfo) 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 *TransactionInfo) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *TransactionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Proof) > 0 {
i -= len(m.Proof)
copy(dAtA[i:], m.Proof)
i = encodeVarintBtccheckpoint(dAtA, i, uint64(len(m.Proof)))
i--
dAtA[i] = 0x1a
}
if len(m.Transaction) > 0 {
i -= len(m.Transaction)
copy(dAtA[i:], m.Transaction)
i = encodeVarintBtccheckpoint(dAtA, i, uint64(len(m.Transaction)))
i--
dAtA[i] = 0x12
}
if m.Key != nil {
{
size, err := m.Key.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintBtccheckpoint(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *SubmissionData) 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 *SubmissionData) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *SubmissionData) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Epoch != 0 {
i = encodeVarintBtccheckpoint(dAtA, i, uint64(m.Epoch))
i--
dAtA[i] = 0x18
}
if len(m.TxsInfo) > 0 {
for iNdEx := len(m.TxsInfo) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.TxsInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintBtccheckpoint(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
}
}
if m.VigilanteAddresses != nil {
{
size, err := m.VigilanteAddresses.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintBtccheckpoint(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *EpochData) 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 *EpochData) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *EpochData) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Status != 0 {
i = encodeVarintBtccheckpoint(dAtA, i, uint64(m.Status))
i--
dAtA[i] = 0x10
}
if len(m.Key) > 0 {
for iNdEx := len(m.Key) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Key[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintBtccheckpoint(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
}
return len(dAtA) - i, nil
}
func (m *CheckpointAddresses) 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 *CheckpointAddresses) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *CheckpointAddresses) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.Reporter) > 0 {
i -= len(m.Reporter)
copy(dAtA[i:], m.Reporter)
i = encodeVarintBtccheckpoint(dAtA, i, uint64(len(m.Reporter)))
i--
dAtA[i] = 0x12
}
if len(m.Submitter) > 0 {
i -= len(m.Submitter)
copy(dAtA[i:], m.Submitter)
i = encodeVarintBtccheckpoint(dAtA, i, uint64(len(m.Submitter)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *BTCCheckpointInfo) 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 *BTCCheckpointInfo) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *BTCCheckpointInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.BestSubmissionVigilanteAddressList) > 0 {
for iNdEx := len(m.BestSubmissionVigilanteAddressList) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.BestSubmissionVigilanteAddressList[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintBtccheckpoint(dAtA, i, uint64(size))
}