OSDN Git Service

984df23b42945d7b6c4e6bcd49d591d90f67dac9
[bytom/vapor.git] / protocol / bc / bc.pb.go
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: bc.proto
3
4 /*
5 Package bc is a generated protocol buffer package.
6
7 It is generated from these files:
8         bc.proto
9
10 It has these top-level messages:
11         Hash
12         Program
13         AssetID
14         AssetAmount
15         AssetDefinition
16         ValueSource
17         ValueDestination
18         Proof
19         BytomBlockHeader
20         BlockHeader
21         TxHeader
22         TxVerifyResult
23         TransactionStatus
24         Mux
25         Coinbase
26         Output
27         Retirement
28         Issuance
29         Spend
30         Claim
31         Dpos
32 */
33 package bc
34
35 import proto "github.com/golang/protobuf/proto"
36 import fmt "fmt"
37 import math "math"
38
39 // Reference imports to suppress errors if they are not otherwise used.
40 var _ = proto.Marshal
41 var _ = fmt.Errorf
42 var _ = math.Inf
43
44 // This is a compile-time assertion to ensure that this generated file
45 // is compatible with the proto package it is being compiled against.
46 // A compilation error at this line likely means your copy of the
47 // proto package needs to be updated.
48 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
49
50 type Hash struct {
51         V0 uint64 `protobuf:"fixed64,1,opt,name=v0" json:"v0,omitempty"`
52         V1 uint64 `protobuf:"fixed64,2,opt,name=v1" json:"v1,omitempty"`
53         V2 uint64 `protobuf:"fixed64,3,opt,name=v2" json:"v2,omitempty"`
54         V3 uint64 `protobuf:"fixed64,4,opt,name=v3" json:"v3,omitempty"`
55 }
56
57 func (m *Hash) Reset()                    { *m = Hash{} }
58 func (m *Hash) String() string            { return proto.CompactTextString(m) }
59 func (*Hash) ProtoMessage()               {}
60 func (*Hash) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
61
62 func (m *Hash) GetV0() uint64 {
63         if m != nil {
64                 return m.V0
65         }
66         return 0
67 }
68
69 func (m *Hash) GetV1() uint64 {
70         if m != nil {
71                 return m.V1
72         }
73         return 0
74 }
75
76 func (m *Hash) GetV2() uint64 {
77         if m != nil {
78                 return m.V2
79         }
80         return 0
81 }
82
83 func (m *Hash) GetV3() uint64 {
84         if m != nil {
85                 return m.V3
86         }
87         return 0
88 }
89
90 type Program struct {
91         VmVersion uint64 `protobuf:"varint,1,opt,name=vm_version,json=vmVersion" json:"vm_version,omitempty"`
92         Code      []byte `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
93 }
94
95 func (m *Program) Reset()                    { *m = Program{} }
96 func (m *Program) String() string            { return proto.CompactTextString(m) }
97 func (*Program) ProtoMessage()               {}
98 func (*Program) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
99
100 func (m *Program) GetVmVersion() uint64 {
101         if m != nil {
102                 return m.VmVersion
103         }
104         return 0
105 }
106
107 func (m *Program) GetCode() []byte {
108         if m != nil {
109                 return m.Code
110         }
111         return nil
112 }
113
114 // This message type duplicates Hash, above. One alternative is to
115 // embed a Hash inside an AssetID. But it's useful for AssetID to be
116 // plain old data (without pointers). Another alternative is use Hash
117 // in any protobuf types where an AssetID is called for, but it's
118 // preferable to have type safety.
119 type AssetID struct {
120         V0 uint64 `protobuf:"fixed64,1,opt,name=v0" json:"v0,omitempty"`
121         V1 uint64 `protobuf:"fixed64,2,opt,name=v1" json:"v1,omitempty"`
122         V2 uint64 `protobuf:"fixed64,3,opt,name=v2" json:"v2,omitempty"`
123         V3 uint64 `protobuf:"fixed64,4,opt,name=v3" json:"v3,omitempty"`
124 }
125
126 func (m *AssetID) Reset()                    { *m = AssetID{} }
127 func (m *AssetID) String() string            { return proto.CompactTextString(m) }
128 func (*AssetID) ProtoMessage()               {}
129 func (*AssetID) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
130
131 func (m *AssetID) GetV0() uint64 {
132         if m != nil {
133                 return m.V0
134         }
135         return 0
136 }
137
138 func (m *AssetID) GetV1() uint64 {
139         if m != nil {
140                 return m.V1
141         }
142         return 0
143 }
144
145 func (m *AssetID) GetV2() uint64 {
146         if m != nil {
147                 return m.V2
148         }
149         return 0
150 }
151
152 func (m *AssetID) GetV3() uint64 {
153         if m != nil {
154                 return m.V3
155         }
156         return 0
157 }
158
159 type AssetAmount struct {
160         AssetId *AssetID `protobuf:"bytes,1,opt,name=asset_id,json=assetId" json:"asset_id,omitempty"`
161         Amount  uint64   `protobuf:"varint,2,opt,name=amount" json:"amount,omitempty"`
162 }
163
164 func (m *AssetAmount) Reset()                    { *m = AssetAmount{} }
165 func (m *AssetAmount) String() string            { return proto.CompactTextString(m) }
166 func (*AssetAmount) ProtoMessage()               {}
167 func (*AssetAmount) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
168
169 func (m *AssetAmount) GetAssetId() *AssetID {
170         if m != nil {
171                 return m.AssetId
172         }
173         return nil
174 }
175
176 func (m *AssetAmount) GetAmount() uint64 {
177         if m != nil {
178                 return m.Amount
179         }
180         return 0
181 }
182
183 type AssetDefinition struct {
184         IssuanceProgram *Program `protobuf:"bytes,1,opt,name=issuance_program,json=issuanceProgram" json:"issuance_program,omitempty"`
185         Data            *Hash    `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"`
186 }
187
188 func (m *AssetDefinition) Reset()                    { *m = AssetDefinition{} }
189 func (m *AssetDefinition) String() string            { return proto.CompactTextString(m) }
190 func (*AssetDefinition) ProtoMessage()               {}
191 func (*AssetDefinition) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
192
193 func (m *AssetDefinition) GetIssuanceProgram() *Program {
194         if m != nil {
195                 return m.IssuanceProgram
196         }
197         return nil
198 }
199
200 func (m *AssetDefinition) GetData() *Hash {
201         if m != nil {
202                 return m.Data
203         }
204         return nil
205 }
206
207 type ValueSource struct {
208         Ref      *Hash        `protobuf:"bytes,1,opt,name=ref" json:"ref,omitempty"`
209         Value    *AssetAmount `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
210         Position uint64       `protobuf:"varint,3,opt,name=position" json:"position,omitempty"`
211 }
212
213 func (m *ValueSource) Reset()                    { *m = ValueSource{} }
214 func (m *ValueSource) String() string            { return proto.CompactTextString(m) }
215 func (*ValueSource) ProtoMessage()               {}
216 func (*ValueSource) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
217
218 func (m *ValueSource) GetRef() *Hash {
219         if m != nil {
220                 return m.Ref
221         }
222         return nil
223 }
224
225 func (m *ValueSource) GetValue() *AssetAmount {
226         if m != nil {
227                 return m.Value
228         }
229         return nil
230 }
231
232 func (m *ValueSource) GetPosition() uint64 {
233         if m != nil {
234                 return m.Position
235         }
236         return 0
237 }
238
239 type ValueDestination struct {
240         Ref      *Hash        `protobuf:"bytes,1,opt,name=ref" json:"ref,omitempty"`
241         Value    *AssetAmount `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
242         Position uint64       `protobuf:"varint,3,opt,name=position" json:"position,omitempty"`
243 }
244
245 func (m *ValueDestination) Reset()                    { *m = ValueDestination{} }
246 func (m *ValueDestination) String() string            { return proto.CompactTextString(m) }
247 func (*ValueDestination) ProtoMessage()               {}
248 func (*ValueDestination) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
249
250 func (m *ValueDestination) GetRef() *Hash {
251         if m != nil {
252                 return m.Ref
253         }
254         return nil
255 }
256
257 func (m *ValueDestination) GetValue() *AssetAmount {
258         if m != nil {
259                 return m.Value
260         }
261         return nil
262 }
263
264 func (m *ValueDestination) GetPosition() uint64 {
265         if m != nil {
266                 return m.Position
267         }
268         return 0
269 }
270
271 type Proof struct {
272         Sign           []byte `protobuf:"bytes,1,opt,name=sign,proto3" json:"sign,omitempty"`
273         ControlProgram []byte `protobuf:"bytes,2,opt,name=controlProgram,proto3" json:"controlProgram,omitempty"`
274         Address        []byte `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
275 }
276
277 func (m *Proof) Reset()                    { *m = Proof{} }
278 func (m *Proof) String() string            { return proto.CompactTextString(m) }
279 func (*Proof) ProtoMessage()               {}
280 func (*Proof) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
281
282 func (m *Proof) GetSign() []byte {
283         if m != nil {
284                 return m.Sign
285         }
286         return nil
287 }
288
289 func (m *Proof) GetControlProgram() []byte {
290         if m != nil {
291                 return m.ControlProgram
292         }
293         return nil
294 }
295
296 func (m *Proof) GetAddress() []byte {
297         if m != nil {
298                 return m.Address
299         }
300         return nil
301 }
302
303 type BytomBlockHeader struct {
304         Version               uint64             `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
305         Height                uint64             `protobuf:"varint,2,opt,name=height" json:"height,omitempty"`
306         PreviousBlockId       *Hash              `protobuf:"bytes,3,opt,name=previous_block_id,json=previousBlockId" json:"previous_block_id,omitempty"`
307         Timestamp             uint64             `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"`
308         TransactionsRoot      *Hash              `protobuf:"bytes,5,opt,name=transactions_root,json=transactionsRoot" json:"transactions_root,omitempty"`
309         TransactionStatusHash *Hash              `protobuf:"bytes,6,opt,name=transaction_status_hash,json=transactionStatusHash" json:"transaction_status_hash,omitempty"`
310         Nonce                 uint64             `protobuf:"varint,7,opt,name=nonce" json:"nonce,omitempty"`
311         Bits                  uint64             `protobuf:"varint,8,opt,name=bits" json:"bits,omitempty"`
312         TransactionStatus     *TransactionStatus `protobuf:"bytes,9,opt,name=transaction_status,json=transactionStatus" json:"transaction_status,omitempty"`
313 }
314
315 func (m *BytomBlockHeader) Reset()                    { *m = BytomBlockHeader{} }
316 func (m *BytomBlockHeader) String() string            { return proto.CompactTextString(m) }
317 func (*BytomBlockHeader) ProtoMessage()               {}
318 func (*BytomBlockHeader) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
319
320 func (m *BytomBlockHeader) GetVersion() uint64 {
321         if m != nil {
322                 return m.Version
323         }
324         return 0
325 }
326
327 func (m *BytomBlockHeader) GetHeight() uint64 {
328         if m != nil {
329                 return m.Height
330         }
331         return 0
332 }
333
334 func (m *BytomBlockHeader) GetPreviousBlockId() *Hash {
335         if m != nil {
336                 return m.PreviousBlockId
337         }
338         return nil
339 }
340
341 func (m *BytomBlockHeader) GetTimestamp() uint64 {
342         if m != nil {
343                 return m.Timestamp
344         }
345         return 0
346 }
347
348 func (m *BytomBlockHeader) GetTransactionsRoot() *Hash {
349         if m != nil {
350                 return m.TransactionsRoot
351         }
352         return nil
353 }
354
355 func (m *BytomBlockHeader) GetTransactionStatusHash() *Hash {
356         if m != nil {
357                 return m.TransactionStatusHash
358         }
359         return nil
360 }
361
362 func (m *BytomBlockHeader) GetNonce() uint64 {
363         if m != nil {
364                 return m.Nonce
365         }
366         return 0
367 }
368
369 func (m *BytomBlockHeader) GetBits() uint64 {
370         if m != nil {
371                 return m.Bits
372         }
373         return 0
374 }
375
376 func (m *BytomBlockHeader) GetTransactionStatus() *TransactionStatus {
377         if m != nil {
378                 return m.TransactionStatus
379         }
380         return nil
381 }
382
383 type BlockHeader struct {
384         Version               uint64             `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
385         Height                uint64             `protobuf:"varint,2,opt,name=height" json:"height,omitempty"`
386         PreviousBlockId       *Hash              `protobuf:"bytes,3,opt,name=previous_block_id,json=previousBlockId" json:"previous_block_id,omitempty"`
387         Timestamp             uint64             `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"`
388         TransactionsRoot      *Hash              `protobuf:"bytes,5,opt,name=transactions_root,json=transactionsRoot" json:"transactions_root,omitempty"`
389         TransactionStatusHash *Hash              `protobuf:"bytes,6,opt,name=transaction_status_hash,json=transactionStatusHash" json:"transaction_status_hash,omitempty"`
390         Nonce                 uint64             `protobuf:"varint,7,opt,name=nonce" json:"nonce,omitempty"`
391         Bits                  uint64             `protobuf:"varint,8,opt,name=bits" json:"bits,omitempty"`
392         TransactionStatus     *TransactionStatus `protobuf:"bytes,9,opt,name=transaction_status,json=transactionStatus" json:"transaction_status,omitempty"`
393 }
394
395 func (m *BlockHeader) Reset()                    { *m = BlockHeader{} }
396 func (m *BlockHeader) String() string            { return proto.CompactTextString(m) }
397 func (*BlockHeader) ProtoMessage()               {}
398 func (*BlockHeader) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
399
400 func (m *BlockHeader) GetVersion() uint64 {
401         if m != nil {
402                 return m.Version
403         }
404         return 0
405 }
406
407 func (m *BlockHeader) GetHeight() uint64 {
408         if m != nil {
409                 return m.Height
410         }
411         return 0
412 }
413
414 func (m *BlockHeader) GetPreviousBlockId() *Hash {
415         if m != nil {
416                 return m.PreviousBlockId
417         }
418         return nil
419 }
420
421 func (m *BlockHeader) GetTimestamp() uint64 {
422         if m != nil {
423                 return m.Timestamp
424         }
425         return 0
426 }
427
428 func (m *BlockHeader) GetTransactionsRoot() *Hash {
429         if m != nil {
430                 return m.TransactionsRoot
431         }
432         return nil
433 }
434
435 func (m *BlockHeader) GetTransactionStatusHash() *Hash {
436         if m != nil {
437                 return m.TransactionStatusHash
438         }
439         return nil
440 }
441
442 func (m *BlockHeader) GetNonce() uint64 {
443         if m != nil {
444                 return m.Nonce
445         }
446         return 0
447 }
448
449 func (m *BlockHeader) GetBits() uint64 {
450         if m != nil {
451                 return m.Bits
452         }
453         return 0
454 }
455
456 func (m *BlockHeader) GetTransactionStatus() *TransactionStatus {
457         if m != nil {
458                 return m.TransactionStatus
459         }
460         return nil
461 }
462
463 type TxHeader struct {
464         Version        uint64  `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
465         SerializedSize uint64  `protobuf:"varint,2,opt,name=serialized_size,json=serializedSize" json:"serialized_size,omitempty"`
466         Data           *Hash   `protobuf:"bytes,3,opt,name=data" json:"data,omitempty"`
467         TimeRange      uint64  `protobuf:"varint,4,opt,name=time_range,json=timeRange" json:"time_range,omitempty"`
468         ResultIds      []*Hash `protobuf:"bytes,5,rep,name=result_ids,json=resultIds" json:"result_ids,omitempty"`
469         Side           bool    `protobuf:"varint,6,opt,name=side" json:"side,omitempty"`
470 }
471
472 func (m *TxHeader) Reset()                    { *m = TxHeader{} }
473 func (m *TxHeader) String() string            { return proto.CompactTextString(m) }
474 func (*TxHeader) ProtoMessage()               {}
475 func (*TxHeader) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
476
477 func (m *TxHeader) GetVersion() uint64 {
478         if m != nil {
479                 return m.Version
480         }
481         return 0
482 }
483
484 func (m *TxHeader) GetSerializedSize() uint64 {
485         if m != nil {
486                 return m.SerializedSize
487         }
488         return 0
489 }
490
491 func (m *TxHeader) GetData() *Hash {
492         if m != nil {
493                 return m.Data
494         }
495         return nil
496 }
497
498 func (m *TxHeader) GetTimeRange() uint64 {
499         if m != nil {
500                 return m.TimeRange
501         }
502         return 0
503 }
504
505 func (m *TxHeader) GetResultIds() []*Hash {
506         if m != nil {
507                 return m.ResultIds
508         }
509         return nil
510 }
511
512 func (m *TxHeader) GetSide() bool {
513         if m != nil {
514                 return m.Side
515         }
516         return false
517 }
518
519 type TxVerifyResult struct {
520         StatusFail bool `protobuf:"varint,1,opt,name=status_fail,json=statusFail" json:"status_fail,omitempty"`
521 }
522
523 func (m *TxVerifyResult) Reset()                    { *m = TxVerifyResult{} }
524 func (m *TxVerifyResult) String() string            { return proto.CompactTextString(m) }
525 func (*TxVerifyResult) ProtoMessage()               {}
526 func (*TxVerifyResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
527
528 func (m *TxVerifyResult) GetStatusFail() bool {
529         if m != nil {
530                 return m.StatusFail
531         }
532         return false
533 }
534
535 type TransactionStatus struct {
536         Version      uint64            `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
537         VerifyStatus []*TxVerifyResult `protobuf:"bytes,2,rep,name=verify_status,json=verifyStatus" json:"verify_status,omitempty"`
538 }
539
540 func (m *TransactionStatus) Reset()                    { *m = TransactionStatus{} }
541 func (m *TransactionStatus) String() string            { return proto.CompactTextString(m) }
542 func (*TransactionStatus) ProtoMessage()               {}
543 func (*TransactionStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
544
545 func (m *TransactionStatus) GetVersion() uint64 {
546         if m != nil {
547                 return m.Version
548         }
549         return 0
550 }
551
552 func (m *TransactionStatus) GetVerifyStatus() []*TxVerifyResult {
553         if m != nil {
554                 return m.VerifyStatus
555         }
556         return nil
557 }
558
559 type Mux struct {
560         Sources             []*ValueSource      `protobuf:"bytes,1,rep,name=sources" json:"sources,omitempty"`
561         Program             *Program            `protobuf:"bytes,2,opt,name=program" json:"program,omitempty"`
562         WitnessDestinations []*ValueDestination `protobuf:"bytes,3,rep,name=witness_destinations,json=witnessDestinations" json:"witness_destinations,omitempty"`
563         WitnessArguments    [][]byte            `protobuf:"bytes,4,rep,name=witness_arguments,json=witnessArguments,proto3" json:"witness_arguments,omitempty"`
564 }
565
566 func (m *Mux) Reset()                    { *m = Mux{} }
567 func (m *Mux) String() string            { return proto.CompactTextString(m) }
568 func (*Mux) ProtoMessage()               {}
569 func (*Mux) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
570
571 func (m *Mux) GetSources() []*ValueSource {
572         if m != nil {
573                 return m.Sources
574         }
575         return nil
576 }
577
578 func (m *Mux) GetProgram() *Program {
579         if m != nil {
580                 return m.Program
581         }
582         return nil
583 }
584
585 func (m *Mux) GetWitnessDestinations() []*ValueDestination {
586         if m != nil {
587                 return m.WitnessDestinations
588         }
589         return nil
590 }
591
592 func (m *Mux) GetWitnessArguments() [][]byte {
593         if m != nil {
594                 return m.WitnessArguments
595         }
596         return nil
597 }
598
599 type Coinbase struct {
600         WitnessDestination *ValueDestination `protobuf:"bytes,1,opt,name=witness_destination,json=witnessDestination" json:"witness_destination,omitempty"`
601         Arbitrary          []byte            `protobuf:"bytes,2,opt,name=arbitrary,proto3" json:"arbitrary,omitempty"`
602 }
603
604 func (m *Coinbase) Reset()                    { *m = Coinbase{} }
605 func (m *Coinbase) String() string            { return proto.CompactTextString(m) }
606 func (*Coinbase) ProtoMessage()               {}
607 func (*Coinbase) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
608
609 func (m *Coinbase) GetWitnessDestination() *ValueDestination {
610         if m != nil {
611                 return m.WitnessDestination
612         }
613         return nil
614 }
615
616 func (m *Coinbase) GetArbitrary() []byte {
617         if m != nil {
618                 return m.Arbitrary
619         }
620         return nil
621 }
622
623 type Output struct {
624         Source         *ValueSource `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"`
625         ControlProgram *Program     `protobuf:"bytes,2,opt,name=control_program,json=controlProgram" json:"control_program,omitempty"`
626         Ordinal        uint64       `protobuf:"varint,3,opt,name=ordinal" json:"ordinal,omitempty"`
627 }
628
629 func (m *Output) Reset()                    { *m = Output{} }
630 func (m *Output) String() string            { return proto.CompactTextString(m) }
631 func (*Output) ProtoMessage()               {}
632 func (*Output) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
633
634 func (m *Output) GetSource() *ValueSource {
635         if m != nil {
636                 return m.Source
637         }
638         return nil
639 }
640
641 func (m *Output) GetControlProgram() *Program {
642         if m != nil {
643                 return m.ControlProgram
644         }
645         return nil
646 }
647
648 func (m *Output) GetOrdinal() uint64 {
649         if m != nil {
650                 return m.Ordinal
651         }
652         return 0
653 }
654
655 type Retirement struct {
656         Source  *ValueSource `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"`
657         Ordinal uint64       `protobuf:"varint,2,opt,name=ordinal" json:"ordinal,omitempty"`
658 }
659
660 func (m *Retirement) Reset()                    { *m = Retirement{} }
661 func (m *Retirement) String() string            { return proto.CompactTextString(m) }
662 func (*Retirement) ProtoMessage()               {}
663 func (*Retirement) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
664
665 func (m *Retirement) GetSource() *ValueSource {
666         if m != nil {
667                 return m.Source
668         }
669         return nil
670 }
671
672 func (m *Retirement) GetOrdinal() uint64 {
673         if m != nil {
674                 return m.Ordinal
675         }
676         return 0
677 }
678
679 type Issuance struct {
680         NonceHash              *Hash             `protobuf:"bytes,1,opt,name=nonce_hash,json=nonceHash" json:"nonce_hash,omitempty"`
681         Value                  *AssetAmount      `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
682         WitnessDestination     *ValueDestination `protobuf:"bytes,3,opt,name=witness_destination,json=witnessDestination" json:"witness_destination,omitempty"`
683         WitnessAssetDefinition *AssetDefinition  `protobuf:"bytes,4,opt,name=witness_asset_definition,json=witnessAssetDefinition" json:"witness_asset_definition,omitempty"`
684         WitnessArguments       [][]byte          `protobuf:"bytes,5,rep,name=witness_arguments,json=witnessArguments,proto3" json:"witness_arguments,omitempty"`
685         Ordinal                uint64            `protobuf:"varint,6,opt,name=ordinal" json:"ordinal,omitempty"`
686 }
687
688 func (m *Issuance) Reset()                    { *m = Issuance{} }
689 func (m *Issuance) String() string            { return proto.CompactTextString(m) }
690 func (*Issuance) ProtoMessage()               {}
691 func (*Issuance) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
692
693 func (m *Issuance) GetNonceHash() *Hash {
694         if m != nil {
695                 return m.NonceHash
696         }
697         return nil
698 }
699
700 func (m *Issuance) GetValue() *AssetAmount {
701         if m != nil {
702                 return m.Value
703         }
704         return nil
705 }
706
707 func (m *Issuance) GetWitnessDestination() *ValueDestination {
708         if m != nil {
709                 return m.WitnessDestination
710         }
711         return nil
712 }
713
714 func (m *Issuance) GetWitnessAssetDefinition() *AssetDefinition {
715         if m != nil {
716                 return m.WitnessAssetDefinition
717         }
718         return nil
719 }
720
721 func (m *Issuance) GetWitnessArguments() [][]byte {
722         if m != nil {
723                 return m.WitnessArguments
724         }
725         return nil
726 }
727
728 func (m *Issuance) GetOrdinal() uint64 {
729         if m != nil {
730                 return m.Ordinal
731         }
732         return 0
733 }
734
735 type Spend struct {
736         SpentOutputId      *Hash             `protobuf:"bytes,1,opt,name=spent_output_id,json=spentOutputId" json:"spent_output_id,omitempty"`
737         WitnessDestination *ValueDestination `protobuf:"bytes,2,opt,name=witness_destination,json=witnessDestination" json:"witness_destination,omitempty"`
738         WitnessArguments   [][]byte          `protobuf:"bytes,3,rep,name=witness_arguments,json=witnessArguments,proto3" json:"witness_arguments,omitempty"`
739         Ordinal            uint64            `protobuf:"varint,4,opt,name=ordinal" json:"ordinal,omitempty"`
740 }
741
742 func (m *Spend) Reset()                    { *m = Spend{} }
743 func (m *Spend) String() string            { return proto.CompactTextString(m) }
744 func (*Spend) ProtoMessage()               {}
745 func (*Spend) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
746
747 func (m *Spend) GetSpentOutputId() *Hash {
748         if m != nil {
749                 return m.SpentOutputId
750         }
751         return nil
752 }
753
754 func (m *Spend) GetWitnessDestination() *ValueDestination {
755         if m != nil {
756                 return m.WitnessDestination
757         }
758         return nil
759 }
760
761 func (m *Spend) GetWitnessArguments() [][]byte {
762         if m != nil {
763                 return m.WitnessArguments
764         }
765         return nil
766 }
767
768 func (m *Spend) GetOrdinal() uint64 {
769         if m != nil {
770                 return m.Ordinal
771         }
772         return 0
773 }
774
775 type Claim struct {
776         SpentOutputId      *Hash             `protobuf:"bytes,1,opt,name=spent_output_id,json=spentOutputId" json:"spent_output_id,omitempty"`
777         WitnessDestination *ValueDestination `protobuf:"bytes,2,opt,name=witness_destination,json=witnessDestination" json:"witness_destination,omitempty"`
778         WitnessArguments   [][]byte          `protobuf:"bytes,3,rep,name=witness_arguments,json=witnessArguments,proto3" json:"witness_arguments,omitempty"`
779         Ordinal            uint64            `protobuf:"varint,4,opt,name=ordinal" json:"ordinal,omitempty"`
780         Peginwitness       [][]byte          `protobuf:"bytes,5,rep,name=Peginwitness,proto3" json:"Peginwitness,omitempty"`
781 }
782
783 func (m *Claim) Reset()                    { *m = Claim{} }
784 func (m *Claim) String() string            { return proto.CompactTextString(m) }
785 func (*Claim) ProtoMessage()               {}
786 func (*Claim) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
787
788 func (m *Claim) GetSpentOutputId() *Hash {
789         if m != nil {
790                 return m.SpentOutputId
791         }
792         return nil
793 }
794
795 func (m *Claim) GetWitnessDestination() *ValueDestination {
796         if m != nil {
797                 return m.WitnessDestination
798         }
799         return nil
800 }
801
802 func (m *Claim) GetWitnessArguments() [][]byte {
803         if m != nil {
804                 return m.WitnessArguments
805         }
806         return nil
807 }
808
809 func (m *Claim) GetOrdinal() uint64 {
810         if m != nil {
811                 return m.Ordinal
812         }
813         return 0
814 }
815
816 func (m *Claim) GetPeginwitness() [][]byte {
817         if m != nil {
818                 return m.Peginwitness
819         }
820         return nil
821 }
822
823 type Dpos struct {
824         SpentOutputId      *Hash             `protobuf:"bytes,1,opt,name=spent_output_id,json=spentOutputId" json:"spent_output_id,omitempty"`
825         WitnessDestination *ValueDestination `protobuf:"bytes,2,opt,name=witness_destination,json=witnessDestination" json:"witness_destination,omitempty"`
826         WitnessArguments   [][]byte          `protobuf:"bytes,3,rep,name=witness_arguments,json=witnessArguments,proto3" json:"witness_arguments,omitempty"`
827         Ordinal            uint64            `protobuf:"varint,4,opt,name=ordinal" json:"ordinal,omitempty"`
828         Type               uint32            `protobuf:"varint,5,opt,name=type" json:"type,omitempty"`
829         From               string            `protobuf:"bytes,6,opt,name=from" json:"from,omitempty"`
830         To                 string            `protobuf:"bytes,7,opt,name=to" json:"to,omitempty"`
831         Stake              uint64            `protobuf:"varint,8,opt,name=stake" json:"stake,omitempty"`
832         Data               string            `protobuf:"bytes,9,opt,name=data" json:"data,omitempty"`
833 }
834
835 func (m *Dpos) Reset()                    { *m = Dpos{} }
836 func (m *Dpos) String() string            { return proto.CompactTextString(m) }
837 func (*Dpos) ProtoMessage()               {}
838 func (*Dpos) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
839
840 func (m *Dpos) GetSpentOutputId() *Hash {
841         if m != nil {
842                 return m.SpentOutputId
843         }
844         return nil
845 }
846
847 func (m *Dpos) GetWitnessDestination() *ValueDestination {
848         if m != nil {
849                 return m.WitnessDestination
850         }
851         return nil
852 }
853
854 func (m *Dpos) GetWitnessArguments() [][]byte {
855         if m != nil {
856                 return m.WitnessArguments
857         }
858         return nil
859 }
860
861 func (m *Dpos) GetOrdinal() uint64 {
862         if m != nil {
863                 return m.Ordinal
864         }
865         return 0
866 }
867
868 func (m *Dpos) GetType() uint32 {
869         if m != nil {
870                 return m.Type
871         }
872         return 0
873 }
874
875 func (m *Dpos) GetFrom() string {
876         if m != nil {
877                 return m.From
878         }
879         return ""
880 }
881
882 func (m *Dpos) GetTo() string {
883         if m != nil {
884                 return m.To
885         }
886         return ""
887 }
888
889 func (m *Dpos) GetStake() uint64 {
890         if m != nil {
891                 return m.Stake
892         }
893         return 0
894 }
895
896 func (m *Dpos) GetData() string {
897         if m != nil {
898                 return m.Data
899         }
900         return ""
901 }
902
903 func init() {
904         proto.RegisterType((*Hash)(nil), "bc.Hash")
905         proto.RegisterType((*Program)(nil), "bc.Program")
906         proto.RegisterType((*AssetID)(nil), "bc.AssetID")
907         proto.RegisterType((*AssetAmount)(nil), "bc.AssetAmount")
908         proto.RegisterType((*AssetDefinition)(nil), "bc.AssetDefinition")
909         proto.RegisterType((*ValueSource)(nil), "bc.ValueSource")
910         proto.RegisterType((*ValueDestination)(nil), "bc.ValueDestination")
911         proto.RegisterType((*Proof)(nil), "bc.Proof")
912         proto.RegisterType((*BytomBlockHeader)(nil), "bc.BytomBlockHeader")
913         proto.RegisterType((*BlockHeader)(nil), "bc.BlockHeader")
914         proto.RegisterType((*TxHeader)(nil), "bc.TxHeader")
915         proto.RegisterType((*TxVerifyResult)(nil), "bc.TxVerifyResult")
916         proto.RegisterType((*TransactionStatus)(nil), "bc.TransactionStatus")
917         proto.RegisterType((*Mux)(nil), "bc.Mux")
918         proto.RegisterType((*Coinbase)(nil), "bc.Coinbase")
919         proto.RegisterType((*Output)(nil), "bc.Output")
920         proto.RegisterType((*Retirement)(nil), "bc.Retirement")
921         proto.RegisterType((*Issuance)(nil), "bc.Issuance")
922         proto.RegisterType((*Spend)(nil), "bc.Spend")
923         proto.RegisterType((*Claim)(nil), "bc.Claim")
924         proto.RegisterType((*Dpos)(nil), "bc.Dpos")
925 }
926
927 func init() { proto.RegisterFile("bc.proto", fileDescriptor0) }
928
929 var fileDescriptor0 = []byte{
930         // 1070 bytes of a gzipped FileDescriptorProto
931         0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0xcd, 0x6e, 0x1b, 0xb7,
932         0x13, 0x87, 0x56, 0xab, 0xaf, 0x91, 0x6c, 0xd9, 0xb4, 0x93, 0xff, 0x22, 0xc8, 0x1f, 0x35, 0x16,
933         0x48, 0x9c, 0xa2, 0x80, 0xe1, 0x8f, 0xb4, 0xbd, 0xf4, 0x50, 0x27, 0x6e, 0x1a, 0x1d, 0x8c, 0x18,
934         0xb4, 0xe1, 0x5b, 0xb1, 0xa0, 0xb4, 0x94, 0x4c, 0x44, 0x5a, 0x6e, 0x49, 0xae, 0x6a, 0xfb, 0x96,
935         0xb7, 0xe9, 0x1b, 0xf4, 0x11, 0x72, 0xea, 0x93, 0xf4, 0x15, 0x7a, 0x28, 0x38, 0xcb, 0x95, 0x56,
936         0xb2, 0xf2, 0x85, 0xa2, 0x28, 0x02, 0xf4, 0xc6, 0x19, 0x0e, 0x7f, 0x33, 0xf3, 0xe3, 0xec, 0x0c,
937         0x17, 0x9a, 0xfd, 0xc1, 0x5e, 0xaa, 0xa4, 0x91, 0xc4, 0xeb, 0x0f, 0xc2, 0x17, 0xe0, 0xbf, 0x64,
938         0xfa, 0x8a, 0xac, 0x83, 0x37, 0xdd, 0x0f, 0x2a, 0x3b, 0x95, 0x27, 0x75, 0xea, 0x4d, 0xf7, 0x51,
939         0x3e, 0x08, 0x3c, 0x27, 0x1f, 0xa0, 0x7c, 0x18, 0x54, 0x9d, 0x7c, 0x88, 0xf2, 0x51, 0xe0, 0x3b,
940         0xf9, 0x28, 0xfc, 0x0e, 0x1a, 0x67, 0x4a, 0x8e, 0x14, 0x9b, 0x90, 0xff, 0x03, 0x4c, 0x27, 0xd1,
941         0x94, 0x2b, 0x2d, 0x64, 0x82, 0x90, 0x3e, 0x6d, 0x4d, 0x27, 0x97, 0xb9, 0x82, 0x10, 0xf0, 0x07,
942         0x32, 0xe6, 0x88, 0xdd, 0xa1, 0xb8, 0x0e, 0x7b, 0xd0, 0x38, 0xd6, 0x9a, 0x9b, 0xde, 0xc9, 0xdf,
943         0x0e, 0xe4, 0x14, 0xda, 0x08, 0x75, 0x3c, 0x91, 0x59, 0x62, 0xc8, 0x63, 0x68, 0x32, 0x2b, 0x46,
944         0x22, 0x46, 0xd0, 0xf6, 0x61, 0x7b, 0xaf, 0x3f, 0xd8, 0x73, 0xde, 0x68, 0x03, 0x37, 0x7b, 0x31,
945         0xb9, 0x0f, 0x75, 0x86, 0x27, 0xd0, 0x95, 0x4f, 0x9d, 0x14, 0x8e, 0xa0, 0x8b, 0xb6, 0x27, 0x7c,
946         0x28, 0x12, 0x61, 0x6c, 0x02, 0xdf, 0xc0, 0x86, 0xd0, 0x3a, 0x63, 0xc9, 0x80, 0x47, 0x69, 0x9e,
947         0x73, 0x19, 0xda, 0xd1, 0x40, 0xbb, 0x85, 0x51, 0xc1, 0xcb, 0x43, 0xf0, 0x63, 0x66, 0x18, 0x3a,
948         0x68, 0x1f, 0x36, 0xad, 0xad, 0xa5, 0x9e, 0xa2, 0x36, 0x1c, 0x43, 0xfb, 0x92, 0x8d, 0x33, 0x7e,
949         0x2e, 0x33, 0x35, 0xe0, 0xe4, 0x01, 0x54, 0x15, 0x1f, 0x3a, 0xdc, 0xb9, 0xad, 0x55, 0x92, 0x47,
950         0x50, 0x9b, 0x5a, 0x53, 0x87, 0xd4, 0x9d, 0x25, 0x94, 0xe7, 0x4c, 0xf3, 0x5d, 0xf2, 0x00, 0x9a,
951         0xa9, 0xd4, 0x18, 0x33, 0xf2, 0xe5, 0xd3, 0x99, 0x1c, 0xfe, 0x0c, 0x1b, 0xe8, 0xed, 0x84, 0x6b,
952         0x23, 0x12, 0x86, 0x79, 0xfd, 0xc3, 0x2e, 0x7f, 0x82, 0xda, 0x99, 0x92, 0x72, 0x68, 0x0b, 0x40,
953         0x8b, 0x51, 0x5e, 0x19, 0x1d, 0x8a, 0x6b, 0xf2, 0x18, 0xd6, 0x07, 0x32, 0x31, 0x4a, 0x8e, 0x1d,
954         0x5b, 0xae, 0x3c, 0x96, 0xb4, 0x24, 0x80, 0x06, 0x8b, 0x63, 0xc5, 0xb5, 0x46, 0xfc, 0x0e, 0x2d,
955         0xc4, 0xf0, 0x4d, 0x15, 0x36, 0x9e, 0xdd, 0x18, 0x39, 0x79, 0x36, 0x96, 0x83, 0xd7, 0x2f, 0x39,
956         0x8b, 0xb9, 0xb2, 0xe6, 0x8b, 0x75, 0x58, 0x88, 0xf6, 0xbe, 0xaf, 0xb8, 0x18, 0x5d, 0xcd, 0xee,
957         0x3b, 0x97, 0xc8, 0x53, 0xd8, 0x4c, 0x15, 0x9f, 0x0a, 0x99, 0xe9, 0xa8, 0x6f, 0x91, 0x6c, 0xe1,
958         0x54, 0x97, 0x28, 0xe9, 0x16, 0x26, 0xe8, 0xab, 0x17, 0x93, 0x87, 0xd0, 0x32, 0x62, 0xc2, 0xb5,
959         0x61, 0x93, 0x14, 0x6b, 0xd1, 0xa7, 0x73, 0x05, 0xf9, 0x1a, 0x36, 0x8d, 0x62, 0x89, 0x66, 0x03,
960         0x4b, 0x84, 0x8e, 0x94, 0x94, 0x26, 0xa8, 0x2d, 0x61, 0x6e, 0x94, 0x4d, 0xa8, 0x94, 0x86, 0x7c,
961         0x0f, 0xff, 0x2b, 0xe9, 0x22, 0x6d, 0x98, 0xc9, 0x74, 0x74, 0xc5, 0xf4, 0x55, 0x50, 0x5f, 0x3a,
962         0x7c, 0xaf, 0x64, 0x78, 0x8e, 0x76, 0xf8, 0x51, 0x6f, 0x43, 0x2d, 0x91, 0xc9, 0x80, 0x07, 0x0d,
963         0x0c, 0x29, 0x17, 0x2c, 0xff, 0x7d, 0x61, 0x74, 0xd0, 0x44, 0x25, 0xae, 0xc9, 0x09, 0x90, 0xbb,
964         0xbe, 0x82, 0x16, 0xba, 0xb9, 0x67, 0xdd, 0x5c, 0x2c, 0x3b, 0xa0, 0x9b, 0x77, 0x7c, 0x86, 0x7f,
965         0x7a, 0xd0, 0xfe, 0x8f, 0xfe, 0x7f, 0x8d, 0xfe, 0xb7, 0x15, 0x68, 0x5e, 0x5c, 0x7f, 0x90, 0xfb,
966         0x5d, 0xe8, 0x6a, 0xae, 0x04, 0x1b, 0x8b, 0x5b, 0x1e, 0x47, 0x5a, 0xdc, 0x72, 0x77, 0x09, 0xeb,
967         0x73, 0xf5, 0xb9, 0xb8, 0xe5, 0xb3, 0x86, 0x55, 0x5d, 0xd5, 0xb0, 0x6c, 0x9b, 0xb7, 0x1c, 0x47,
968         0x8a, 0x25, 0x23, 0x5e, 0x66, 0x9d, 0x5a, 0x05, 0xd9, 0x05, 0x50, 0x5c, 0x67, 0x63, 0xdb, 0x79,
969         0x75, 0x50, 0xdb, 0xa9, 0x2e, 0x40, 0xb4, 0xf2, 0xbd, 0x5e, 0xac, 0xf3, 0x76, 0x10, 0x73, 0x24,
970         0xb5, 0x49, 0x71, 0x1d, 0x1e, 0xc0, 0xfa, 0xc5, 0xf5, 0x25, 0x57, 0x62, 0x78, 0x43, 0xd1, 0x90,
971         0x7c, 0x01, 0x6d, 0x77, 0x03, 0x43, 0x26, 0xc6, 0x98, 0x52, 0x93, 0x42, 0xae, 0x7a, 0xc1, 0xc4,
972         0x38, 0x1c, 0xc2, 0xe6, 0x1d, 0x92, 0xde, 0x43, 0xc2, 0xb7, 0xb0, 0x36, 0x45, 0xfc, 0x82, 0x6c,
973         0x0f, 0x23, 0x24, 0x48, 0xf6, 0x82, 0x6b, 0xda, 0xc9, 0x0d, 0x1d, 0xc9, 0xbf, 0x57, 0xa0, 0x7a,
974         0x9a, 0x5d, 0x93, 0x2f, 0xa1, 0xa1, 0xb1, 0x55, 0xeb, 0xa0, 0x82, 0x47, 0xb1, 0x27, 0x96, 0x5a,
975         0x38, 0x2d, 0xf6, 0xc9, 0x23, 0x68, 0xa4, 0xa5, 0xae, 0xb6, 0x34, 0x27, 0x8a, 0x3d, 0xf2, 0x23,
976         0x6c, 0xff, 0x22, 0x4c, 0xc2, 0xb5, 0x8e, 0xe2, 0x79, 0x5b, 0xb6, 0x8d, 0xce, 0xc2, 0x6f, 0xcf,
977         0xe0, 0x4b, 0x3d, 0x9b, 0x6e, 0xb9, 0x13, 0x25, 0x9d, 0x26, 0x5f, 0xc1, 0x66, 0x01, 0xc4, 0xd4,
978         0x28, 0x9b, 0xf0, 0xc4, 0xe8, 0xc0, 0xdf, 0xa9, 0x3e, 0xe9, 0xd0, 0x0d, 0xb7, 0x71, 0x5c, 0xe8,
979         0x43, 0x09, 0xcd, 0xe7, 0x52, 0x24, 0x7d, 0xa6, 0x39, 0xf9, 0x01, 0xb6, 0x56, 0x44, 0xe0, 0x26,
980         0xc2, 0xea, 0x00, 0xc8, 0xdd, 0x00, 0xec, 0xe7, 0xc8, 0x54, 0x5f, 0x18, 0xc5, 0xd4, 0x8d, 0xeb,
981         0xe3, 0x73, 0x45, 0xf8, 0xa6, 0x02, 0xf5, 0x57, 0x99, 0x49, 0x33, 0x43, 0x76, 0xa1, 0x9e, 0x73,
982         0xe4, 0x5c, 0xdc, 0xa1, 0xd0, 0x6d, 0x93, 0xa7, 0xd0, 0x75, 0x83, 0x20, 0x7a, 0x0f, 0x93, 0x2b,
983         0x86, 0x85, 0x54, 0xb1, 0x48, 0xd8, 0xd8, 0x0d, 0xa3, 0x42, 0x0c, 0x5f, 0x01, 0x50, 0x6e, 0x84,
984         0xe2, 0x96, 0x83, 0x8f, 0x0f, 0xa3, 0x04, 0xe8, 0x2d, 0x02, 0xfe, 0xe6, 0x41, 0xb3, 0xe7, 0xe6,
985         0xbd, 0x2d, 0x7d, 0xfc, 0xd4, 0xf3, 0x66, 0xb1, 0x3c, 0x4f, 0x5b, 0xb8, 0x87, 0x0d, 0xe2, 0x23,
986         0xa7, 0xea, 0x3b, 0xae, 0xa5, 0xfa, 0x89, 0xd7, 0x72, 0x0a, 0xc1, 0xac, 0x2c, 0xf0, 0x49, 0x14,
987         0xcf, 0xde, 0x34, 0xf8, 0xf9, 0xb6, 0x0f, 0xb7, 0x66, 0x01, 0xcc, 0x9f, 0x3b, 0xf4, 0x7e, 0x51,
988         0x32, 0x4b, 0xcf, 0xa0, 0x95, 0x55, 0x56, 0x5b, 0x5d, 0x65, 0x65, 0xe6, 0xea, 0x8b, 0xcc, 0xbd,
989         0xad, 0x40, 0xed, 0x3c, 0xe5, 0x49, 0x4c, 0xf6, 0xa1, 0xab, 0x53, 0x9e, 0x98, 0x48, 0x62, 0x75,
990         0xcc, 0x5f, 0x6c, 0x73, 0xee, 0xd6, 0xd0, 0x20, 0xaf, 0x9e, 0x5e, 0xfc, 0x2e, 0x62, 0xbc, 0x4f,
991         0x24, 0x66, 0x65, 0x26, 0xd5, 0x0f, 0x67, 0xe2, 0x2f, 0x66, 0xf2, 0x47, 0x05, 0x6a, 0xcf, 0xc7,
992         0x4c, 0x4c, 0x3e, 0xf7, 0x4c, 0x48, 0x08, 0x9d, 0x33, 0x3e, 0x12, 0x89, 0x3b, 0xe2, 0x6e, 0x75,
993         0x41, 0x17, 0xfe, 0xea, 0x81, 0x7f, 0x92, 0x4a, 0xfd, 0xd9, 0x27, 0x4b, 0xc0, 0x37, 0x37, 0x29,
994         0xc7, 0x17, 0xc1, 0x1a, 0xc5, 0xb5, 0xd5, 0x0d, 0x95, 0x9c, 0x60, 0xad, 0xb6, 0x28, 0xae, 0xed,
995         0x8f, 0x86, 0x91, 0x38, 0xca, 0x5b, 0xd4, 0x33, 0xd2, 0x4e, 0x77, 0x6d, 0xd8, 0x6b, 0xee, 0x06,
996         0x79, 0x2e, 0xd8, 0x93, 0x38, 0x33, 0x5b, 0xf9, 0x49, 0xbb, 0xee, 0xd7, 0xf1, 0x77, 0xeb, 0xe8,
997         0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x94, 0x81, 0x10, 0xfb, 0x7a, 0x0d, 0x00, 0x00,
998 }