OSDN Git Service

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