OSDN Git Service

modify code
[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 }
274
275 func (m *Proof) Reset()                    { *m = Proof{} }
276 func (m *Proof) String() string            { return proto.CompactTextString(m) }
277 func (*Proof) ProtoMessage()               {}
278 func (*Proof) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
279
280 func (m *Proof) GetSign() []byte {
281         if m != nil {
282                 return m.Sign
283         }
284         return nil
285 }
286
287 func (m *Proof) GetControlProgram() []byte {
288         if m != nil {
289                 return m.ControlProgram
290         }
291         return nil
292 }
293
294 type BytomBlockHeader struct {
295         Version               uint64             `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
296         Height                uint64             `protobuf:"varint,2,opt,name=height" json:"height,omitempty"`
297         PreviousBlockId       *Hash              `protobuf:"bytes,3,opt,name=previous_block_id,json=previousBlockId" json:"previous_block_id,omitempty"`
298         Timestamp             uint64             `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"`
299         TransactionsRoot      *Hash              `protobuf:"bytes,5,opt,name=transactions_root,json=transactionsRoot" json:"transactions_root,omitempty"`
300         TransactionStatusHash *Hash              `protobuf:"bytes,6,opt,name=transaction_status_hash,json=transactionStatusHash" json:"transaction_status_hash,omitempty"`
301         Nonce                 uint64             `protobuf:"varint,7,opt,name=nonce" json:"nonce,omitempty"`
302         Bits                  uint64             `protobuf:"varint,8,opt,name=bits" json:"bits,omitempty"`
303         TransactionStatus     *TransactionStatus `protobuf:"bytes,9,opt,name=transaction_status,json=transactionStatus" json:"transaction_status,omitempty"`
304 }
305
306 func (m *BytomBlockHeader) Reset()                    { *m = BytomBlockHeader{} }
307 func (m *BytomBlockHeader) String() string            { return proto.CompactTextString(m) }
308 func (*BytomBlockHeader) ProtoMessage()               {}
309 func (*BytomBlockHeader) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
310
311 func (m *BytomBlockHeader) GetVersion() uint64 {
312         if m != nil {
313                 return m.Version
314         }
315         return 0
316 }
317
318 func (m *BytomBlockHeader) GetHeight() uint64 {
319         if m != nil {
320                 return m.Height
321         }
322         return 0
323 }
324
325 func (m *BytomBlockHeader) GetPreviousBlockId() *Hash {
326         if m != nil {
327                 return m.PreviousBlockId
328         }
329         return nil
330 }
331
332 func (m *BytomBlockHeader) GetTimestamp() uint64 {
333         if m != nil {
334                 return m.Timestamp
335         }
336         return 0
337 }
338
339 func (m *BytomBlockHeader) GetTransactionsRoot() *Hash {
340         if m != nil {
341                 return m.TransactionsRoot
342         }
343         return nil
344 }
345
346 func (m *BytomBlockHeader) GetTransactionStatusHash() *Hash {
347         if m != nil {
348                 return m.TransactionStatusHash
349         }
350         return nil
351 }
352
353 func (m *BytomBlockHeader) GetNonce() uint64 {
354         if m != nil {
355                 return m.Nonce
356         }
357         return 0
358 }
359
360 func (m *BytomBlockHeader) GetBits() uint64 {
361         if m != nil {
362                 return m.Bits
363         }
364         return 0
365 }
366
367 func (m *BytomBlockHeader) GetTransactionStatus() *TransactionStatus {
368         if m != nil {
369                 return m.TransactionStatus
370         }
371         return nil
372 }
373
374 type BlockHeader struct {
375         Version               uint64             `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
376         Height                uint64             `protobuf:"varint,2,opt,name=height" json:"height,omitempty"`
377         PreviousBlockId       *Hash              `protobuf:"bytes,3,opt,name=previous_block_id,json=previousBlockId" json:"previous_block_id,omitempty"`
378         Timestamp             uint64             `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"`
379         TransactionsRoot      *Hash              `protobuf:"bytes,5,opt,name=transactions_root,json=transactionsRoot" json:"transactions_root,omitempty"`
380         TransactionStatusHash *Hash              `protobuf:"bytes,6,opt,name=transaction_status_hash,json=transactionStatusHash" json:"transaction_status_hash,omitempty"`
381         Nonce                 uint64             `protobuf:"varint,7,opt,name=nonce" json:"nonce,omitempty"`
382         Bits                  uint64             `protobuf:"varint,8,opt,name=bits" json:"bits,omitempty"`
383         TransactionStatus     *TransactionStatus `protobuf:"bytes,9,opt,name=transaction_status,json=transactionStatus" json:"transaction_status,omitempty"`
384         Proof                 *Proof             `protobuf:"bytes,10,opt,name=Proof" json:"Proof,omitempty"`
385 }
386
387 func (m *BlockHeader) Reset()                    { *m = BlockHeader{} }
388 func (m *BlockHeader) String() string            { return proto.CompactTextString(m) }
389 func (*BlockHeader) ProtoMessage()               {}
390 func (*BlockHeader) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
391
392 func (m *BlockHeader) GetVersion() uint64 {
393         if m != nil {
394                 return m.Version
395         }
396         return 0
397 }
398
399 func (m *BlockHeader) GetHeight() uint64 {
400         if m != nil {
401                 return m.Height
402         }
403         return 0
404 }
405
406 func (m *BlockHeader) GetPreviousBlockId() *Hash {
407         if m != nil {
408                 return m.PreviousBlockId
409         }
410         return nil
411 }
412
413 func (m *BlockHeader) GetTimestamp() uint64 {
414         if m != nil {
415                 return m.Timestamp
416         }
417         return 0
418 }
419
420 func (m *BlockHeader) GetTransactionsRoot() *Hash {
421         if m != nil {
422                 return m.TransactionsRoot
423         }
424         return nil
425 }
426
427 func (m *BlockHeader) GetTransactionStatusHash() *Hash {
428         if m != nil {
429                 return m.TransactionStatusHash
430         }
431         return nil
432 }
433
434 func (m *BlockHeader) GetNonce() uint64 {
435         if m != nil {
436                 return m.Nonce
437         }
438         return 0
439 }
440
441 func (m *BlockHeader) GetBits() uint64 {
442         if m != nil {
443                 return m.Bits
444         }
445         return 0
446 }
447
448 func (m *BlockHeader) GetTransactionStatus() *TransactionStatus {
449         if m != nil {
450                 return m.TransactionStatus
451         }
452         return nil
453 }
454
455 func (m *BlockHeader) GetProof() *Proof {
456         if m != nil {
457                 return m.Proof
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         TimeRange      uint64  `protobuf:"varint,3,opt,name=time_range,json=timeRange" json:"time_range,omitempty"`
466         ResultIds      []*Hash `protobuf:"bytes,4,rep,name=result_ids,json=resultIds" json:"result_ids,omitempty"`
467 }
468
469 func (m *TxHeader) Reset()                    { *m = TxHeader{} }
470 func (m *TxHeader) String() string            { return proto.CompactTextString(m) }
471 func (*TxHeader) ProtoMessage()               {}
472 func (*TxHeader) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
473
474 func (m *TxHeader) GetVersion() uint64 {
475         if m != nil {
476                 return m.Version
477         }
478         return 0
479 }
480
481 func (m *TxHeader) GetSerializedSize() uint64 {
482         if m != nil {
483                 return m.SerializedSize
484         }
485         return 0
486 }
487
488 func (m *TxHeader) GetTimeRange() uint64 {
489         if m != nil {
490                 return m.TimeRange
491         }
492         return 0
493 }
494
495 func (m *TxHeader) GetResultIds() []*Hash {
496         if m != nil {
497                 return m.ResultIds
498         }
499         return nil
500 }
501
502 type TxVerifyResult struct {
503         StatusFail bool `protobuf:"varint,1,opt,name=status_fail,json=statusFail" json:"status_fail,omitempty"`
504 }
505
506 func (m *TxVerifyResult) Reset()                    { *m = TxVerifyResult{} }
507 func (m *TxVerifyResult) String() string            { return proto.CompactTextString(m) }
508 func (*TxVerifyResult) ProtoMessage()               {}
509 func (*TxVerifyResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
510
511 func (m *TxVerifyResult) GetStatusFail() bool {
512         if m != nil {
513                 return m.StatusFail
514         }
515         return false
516 }
517
518 type TransactionStatus struct {
519         Version      uint64            `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
520         VerifyStatus []*TxVerifyResult `protobuf:"bytes,2,rep,name=verify_status,json=verifyStatus" json:"verify_status,omitempty"`
521 }
522
523 func (m *TransactionStatus) Reset()                    { *m = TransactionStatus{} }
524 func (m *TransactionStatus) String() string            { return proto.CompactTextString(m) }
525 func (*TransactionStatus) ProtoMessage()               {}
526 func (*TransactionStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
527
528 func (m *TransactionStatus) GetVersion() uint64 {
529         if m != nil {
530                 return m.Version
531         }
532         return 0
533 }
534
535 func (m *TransactionStatus) GetVerifyStatus() []*TxVerifyResult {
536         if m != nil {
537                 return m.VerifyStatus
538         }
539         return nil
540 }
541
542 type Mux struct {
543         Sources             []*ValueSource      `protobuf:"bytes,1,rep,name=sources" json:"sources,omitempty"`
544         Program             *Program            `protobuf:"bytes,2,opt,name=program" json:"program,omitempty"`
545         WitnessDestinations []*ValueDestination `protobuf:"bytes,3,rep,name=witness_destinations,json=witnessDestinations" json:"witness_destinations,omitempty"`
546         WitnessArguments    [][]byte            `protobuf:"bytes,4,rep,name=witness_arguments,json=witnessArguments,proto3" json:"witness_arguments,omitempty"`
547 }
548
549 func (m *Mux) Reset()                    { *m = Mux{} }
550 func (m *Mux) String() string            { return proto.CompactTextString(m) }
551 func (*Mux) ProtoMessage()               {}
552 func (*Mux) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
553
554 func (m *Mux) GetSources() []*ValueSource {
555         if m != nil {
556                 return m.Sources
557         }
558         return nil
559 }
560
561 func (m *Mux) GetProgram() *Program {
562         if m != nil {
563                 return m.Program
564         }
565         return nil
566 }
567
568 func (m *Mux) GetWitnessDestinations() []*ValueDestination {
569         if m != nil {
570                 return m.WitnessDestinations
571         }
572         return nil
573 }
574
575 func (m *Mux) GetWitnessArguments() [][]byte {
576         if m != nil {
577                 return m.WitnessArguments
578         }
579         return nil
580 }
581
582 type Coinbase struct {
583         WitnessDestination *ValueDestination `protobuf:"bytes,1,opt,name=witness_destination,json=witnessDestination" json:"witness_destination,omitempty"`
584         Arbitrary          []byte            `protobuf:"bytes,2,opt,name=arbitrary,proto3" json:"arbitrary,omitempty"`
585 }
586
587 func (m *Coinbase) Reset()                    { *m = Coinbase{} }
588 func (m *Coinbase) String() string            { return proto.CompactTextString(m) }
589 func (*Coinbase) ProtoMessage()               {}
590 func (*Coinbase) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
591
592 func (m *Coinbase) GetWitnessDestination() *ValueDestination {
593         if m != nil {
594                 return m.WitnessDestination
595         }
596         return nil
597 }
598
599 func (m *Coinbase) GetArbitrary() []byte {
600         if m != nil {
601                 return m.Arbitrary
602         }
603         return nil
604 }
605
606 type Output struct {
607         Source         *ValueSource `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"`
608         ControlProgram *Program     `protobuf:"bytes,2,opt,name=control_program,json=controlProgram" json:"control_program,omitempty"`
609         Ordinal        uint64       `protobuf:"varint,3,opt,name=ordinal" json:"ordinal,omitempty"`
610 }
611
612 func (m *Output) Reset()                    { *m = Output{} }
613 func (m *Output) String() string            { return proto.CompactTextString(m) }
614 func (*Output) ProtoMessage()               {}
615 func (*Output) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
616
617 func (m *Output) GetSource() *ValueSource {
618         if m != nil {
619                 return m.Source
620         }
621         return nil
622 }
623
624 func (m *Output) GetControlProgram() *Program {
625         if m != nil {
626                 return m.ControlProgram
627         }
628         return nil
629 }
630
631 func (m *Output) GetOrdinal() uint64 {
632         if m != nil {
633                 return m.Ordinal
634         }
635         return 0
636 }
637
638 type Retirement struct {
639         Source  *ValueSource `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"`
640         Ordinal uint64       `protobuf:"varint,2,opt,name=ordinal" json:"ordinal,omitempty"`
641 }
642
643 func (m *Retirement) Reset()                    { *m = Retirement{} }
644 func (m *Retirement) String() string            { return proto.CompactTextString(m) }
645 func (*Retirement) ProtoMessage()               {}
646 func (*Retirement) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
647
648 func (m *Retirement) GetSource() *ValueSource {
649         if m != nil {
650                 return m.Source
651         }
652         return nil
653 }
654
655 func (m *Retirement) GetOrdinal() uint64 {
656         if m != nil {
657                 return m.Ordinal
658         }
659         return 0
660 }
661
662 type Issuance struct {
663         NonceHash              *Hash             `protobuf:"bytes,1,opt,name=nonce_hash,json=nonceHash" json:"nonce_hash,omitempty"`
664         Value                  *AssetAmount      `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
665         WitnessDestination     *ValueDestination `protobuf:"bytes,3,opt,name=witness_destination,json=witnessDestination" json:"witness_destination,omitempty"`
666         WitnessAssetDefinition *AssetDefinition  `protobuf:"bytes,4,opt,name=witness_asset_definition,json=witnessAssetDefinition" json:"witness_asset_definition,omitempty"`
667         WitnessArguments       [][]byte          `protobuf:"bytes,5,rep,name=witness_arguments,json=witnessArguments,proto3" json:"witness_arguments,omitempty"`
668         Ordinal                uint64            `protobuf:"varint,6,opt,name=ordinal" json:"ordinal,omitempty"`
669 }
670
671 func (m *Issuance) Reset()                    { *m = Issuance{} }
672 func (m *Issuance) String() string            { return proto.CompactTextString(m) }
673 func (*Issuance) ProtoMessage()               {}
674 func (*Issuance) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
675
676 func (m *Issuance) GetNonceHash() *Hash {
677         if m != nil {
678                 return m.NonceHash
679         }
680         return nil
681 }
682
683 func (m *Issuance) GetValue() *AssetAmount {
684         if m != nil {
685                 return m.Value
686         }
687         return nil
688 }
689
690 func (m *Issuance) GetWitnessDestination() *ValueDestination {
691         if m != nil {
692                 return m.WitnessDestination
693         }
694         return nil
695 }
696
697 func (m *Issuance) GetWitnessAssetDefinition() *AssetDefinition {
698         if m != nil {
699                 return m.WitnessAssetDefinition
700         }
701         return nil
702 }
703
704 func (m *Issuance) GetWitnessArguments() [][]byte {
705         if m != nil {
706                 return m.WitnessArguments
707         }
708         return nil
709 }
710
711 func (m *Issuance) GetOrdinal() uint64 {
712         if m != nil {
713                 return m.Ordinal
714         }
715         return 0
716 }
717
718 type Spend struct {
719         SpentOutputId      *Hash             `protobuf:"bytes,1,opt,name=spent_output_id,json=spentOutputId" json:"spent_output_id,omitempty"`
720         WitnessDestination *ValueDestination `protobuf:"bytes,2,opt,name=witness_destination,json=witnessDestination" json:"witness_destination,omitempty"`
721         WitnessArguments   [][]byte          `protobuf:"bytes,3,rep,name=witness_arguments,json=witnessArguments,proto3" json:"witness_arguments,omitempty"`
722         Ordinal            uint64            `protobuf:"varint,4,opt,name=ordinal" json:"ordinal,omitempty"`
723 }
724
725 func (m *Spend) Reset()                    { *m = Spend{} }
726 func (m *Spend) String() string            { return proto.CompactTextString(m) }
727 func (*Spend) ProtoMessage()               {}
728 func (*Spend) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
729
730 func (m *Spend) GetSpentOutputId() *Hash {
731         if m != nil {
732                 return m.SpentOutputId
733         }
734         return nil
735 }
736
737 func (m *Spend) GetWitnessDestination() *ValueDestination {
738         if m != nil {
739                 return m.WitnessDestination
740         }
741         return nil
742 }
743
744 func (m *Spend) GetWitnessArguments() [][]byte {
745         if m != nil {
746                 return m.WitnessArguments
747         }
748         return nil
749 }
750
751 func (m *Spend) GetOrdinal() uint64 {
752         if m != nil {
753                 return m.Ordinal
754         }
755         return 0
756 }
757
758 type Claim struct {
759         SpentOutputId      *Hash             `protobuf:"bytes,1,opt,name=spent_output_id,json=spentOutputId" json:"spent_output_id,omitempty"`
760         WitnessDestination *ValueDestination `protobuf:"bytes,2,opt,name=witness_destination,json=witnessDestination" json:"witness_destination,omitempty"`
761         WitnessArguments   [][]byte          `protobuf:"bytes,3,rep,name=witness_arguments,json=witnessArguments,proto3" json:"witness_arguments,omitempty"`
762         Ordinal            uint64            `protobuf:"varint,4,opt,name=ordinal" json:"ordinal,omitempty"`
763         Peginwitness       [][]byte          `protobuf:"bytes,5,rep,name=Peginwitness,proto3" json:"Peginwitness,omitempty"`
764 }
765
766 func (m *Claim) Reset()                    { *m = Claim{} }
767 func (m *Claim) String() string            { return proto.CompactTextString(m) }
768 func (*Claim) ProtoMessage()               {}
769 func (*Claim) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
770
771 func (m *Claim) GetSpentOutputId() *Hash {
772         if m != nil {
773                 return m.SpentOutputId
774         }
775         return nil
776 }
777
778 func (m *Claim) GetWitnessDestination() *ValueDestination {
779         if m != nil {
780                 return m.WitnessDestination
781         }
782         return nil
783 }
784
785 func (m *Claim) GetWitnessArguments() [][]byte {
786         if m != nil {
787                 return m.WitnessArguments
788         }
789         return nil
790 }
791
792 func (m *Claim) GetOrdinal() uint64 {
793         if m != nil {
794                 return m.Ordinal
795         }
796         return 0
797 }
798
799 func (m *Claim) GetPeginwitness() [][]byte {
800         if m != nil {
801                 return m.Peginwitness
802         }
803         return nil
804 }
805
806 func init() {
807         proto.RegisterType((*Hash)(nil), "bc.Hash")
808         proto.RegisterType((*Program)(nil), "bc.Program")
809         proto.RegisterType((*AssetID)(nil), "bc.AssetID")
810         proto.RegisterType((*AssetAmount)(nil), "bc.AssetAmount")
811         proto.RegisterType((*AssetDefinition)(nil), "bc.AssetDefinition")
812         proto.RegisterType((*ValueSource)(nil), "bc.ValueSource")
813         proto.RegisterType((*ValueDestination)(nil), "bc.ValueDestination")
814         proto.RegisterType((*Proof)(nil), "bc.Proof")
815         proto.RegisterType((*BytomBlockHeader)(nil), "bc.BytomBlockHeader")
816         proto.RegisterType((*BlockHeader)(nil), "bc.BlockHeader")
817         proto.RegisterType((*TxHeader)(nil), "bc.TxHeader")
818         proto.RegisterType((*TxVerifyResult)(nil), "bc.TxVerifyResult")
819         proto.RegisterType((*TransactionStatus)(nil), "bc.TransactionStatus")
820         proto.RegisterType((*Mux)(nil), "bc.Mux")
821         proto.RegisterType((*Coinbase)(nil), "bc.Coinbase")
822         proto.RegisterType((*Output)(nil), "bc.Output")
823         proto.RegisterType((*Retirement)(nil), "bc.Retirement")
824         proto.RegisterType((*Issuance)(nil), "bc.Issuance")
825         proto.RegisterType((*Spend)(nil), "bc.Spend")
826         proto.RegisterType((*Claim)(nil), "bc.Claim")
827 }
828
829 func init() { proto.RegisterFile("bc.proto", fileDescriptor0) }
830
831 var fileDescriptor0 = []byte{
832         // 999 bytes of a gzipped FileDescriptorProto
833         0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0xcb, 0x6e, 0x1b, 0x37,
834         0x14, 0x85, 0x34, 0xa3, 0xd7, 0x95, 0x63, 0xd9, 0xb4, 0x93, 0x0e, 0x82, 0x14, 0x09, 0x06, 0x48,
835         0xdc, 0xa2, 0x80, 0xe1, 0x47, 0xda, 0x6e, 0xba, 0xa8, 0x63, 0x37, 0x8d, 0x16, 0x46, 0x0c, 0xda,
836         0xf0, 0x76, 0x40, 0xcd, 0x50, 0x32, 0xd1, 0xd1, 0x50, 0x25, 0x39, 0xaa, 0xed, 0x5d, 0x3e, 0xa2,
837         0xcb, 0x7e, 0x47, 0x3f, 0xa1, 0xab, 0x7e, 0x49, 0x7f, 0xa2, 0xe0, 0x1d, 0x8e, 0x34, 0x92, 0x95,
838         0x17, 0x8a, 0xa2, 0x28, 0x90, 0x9d, 0xee, 0xe1, 0xe5, 0x7d, 0x1c, 0x5e, 0x9e, 0xa1, 0xa0, 0x3d,
839         0x88, 0x77, 0x27, 0x4a, 0x1a, 0x49, 0xea, 0x83, 0x38, 0x7c, 0x09, 0xfe, 0x2b, 0xa6, 0xaf, 0xc8,
840         0x3a, 0xd4, 0xa7, 0x7b, 0x41, 0xed, 0x49, 0xed, 0x8b, 0x26, 0xad, 0x4f, 0xf7, 0xd0, 0xde, 0x0f,
841         0xea, 0xce, 0xde, 0x47, 0xfb, 0x20, 0xf0, 0x9c, 0x7d, 0x80, 0xf6, 0x61, 0xe0, 0x3b, 0xfb, 0x30,
842         0xfc, 0x0e, 0x5a, 0x67, 0x4a, 0x8e, 0x14, 0x1b, 0x93, 0xcf, 0x01, 0xa6, 0xe3, 0x68, 0xca, 0x95,
843         0x16, 0x32, 0xc3, 0x90, 0x3e, 0xed, 0x4c, 0xc7, 0x97, 0x05, 0x40, 0x08, 0xf8, 0xb1, 0x4c, 0x38,
844         0xc6, 0x5e, 0xa3, 0xf8, 0x3b, 0xec, 0x43, 0xeb, 0x48, 0x6b, 0x6e, 0xfa, 0x27, 0xff, 0xb8, 0x90,
845         0x53, 0xe8, 0x62, 0xa8, 0xa3, 0xb1, 0xcc, 0x33, 0x43, 0x9e, 0x41, 0x9b, 0x59, 0x33, 0x12, 0x09,
846         0x06, 0xed, 0x1e, 0x74, 0x77, 0x07, 0xf1, 0xae, 0xcb, 0x46, 0x5b, 0xb8, 0xd8, 0x4f, 0xc8, 0x03,
847         0x68, 0x32, 0xdc, 0x81, 0xa9, 0x7c, 0xea, 0xac, 0x70, 0x04, 0x3d, 0xf4, 0x3d, 0xe1, 0x43, 0x91,
848         0x09, 0x63, 0x1b, 0xf8, 0x06, 0x36, 0x84, 0xd6, 0x39, 0xcb, 0x62, 0x1e, 0x4d, 0x8a, 0x9e, 0xab,
849         0xa1, 0x1d, 0x0d, 0xb4, 0x57, 0x3a, 0x95, 0xbc, 0x3c, 0x02, 0x3f, 0x61, 0x86, 0x61, 0x82, 0xee,
850         0x41, 0xdb, 0xfa, 0x5a, 0xea, 0x29, 0xa2, 0x61, 0x0a, 0xdd, 0x4b, 0x96, 0xe6, 0xfc, 0x5c, 0xe6,
851         0x2a, 0xe6, 0xe4, 0x21, 0x78, 0x8a, 0x0f, 0x5d, 0xdc, 0xb9, 0xaf, 0x05, 0xc9, 0x53, 0x68, 0x4c,
852         0xad, 0xab, 0x8b, 0xd4, 0x9b, 0x35, 0x54, 0xf4, 0x4c, 0x8b, 0x55, 0xf2, 0x10, 0xda, 0x13, 0xa9,
853         0xb1, 0x66, 0xe4, 0xcb, 0xa7, 0x33, 0x3b, 0xfc, 0x19, 0x36, 0x30, 0xdb, 0x09, 0xd7, 0x46, 0x64,
854         0x0c, 0xfb, 0xfa, 0x97, 0x53, 0x1e, 0x43, 0xe3, 0x4c, 0x49, 0x39, 0xb4, 0x03, 0xa0, 0xc5, 0xa8,
855         0x98, 0x8c, 0x35, 0x8a, 0xbf, 0xc9, 0x33, 0x58, 0x8f, 0x65, 0x66, 0x94, 0x4c, 0x1d, 0x5b, 0x6e,
856         0x3c, 0x96, 0xd0, 0xf0, 0x8d, 0x07, 0x1b, 0x2f, 0x6e, 0x8c, 0x1c, 0xbf, 0x48, 0x65, 0xfc, 0xd3,
857         0x2b, 0xce, 0x12, 0xae, 0x48, 0x00, 0xad, 0xc5, 0x69, 0x2b, 0x4d, 0x7b, 0xaa, 0x57, 0x5c, 0x8c,
858         0xae, 0x66, 0xa7, 0x5a, 0x58, 0xe4, 0x39, 0x6c, 0x4e, 0x14, 0x9f, 0x0a, 0x99, 0xeb, 0x68, 0x60,
859         0x23, 0xd9, 0xf1, 0xf0, 0x96, 0x1a, 0xef, 0x95, 0x2e, 0x98, 0xab, 0x9f, 0x90, 0x47, 0xd0, 0x31,
860         0x62, 0xcc, 0xb5, 0x61, 0xe3, 0x09, 0x4e, 0x9c, 0x4f, 0xe7, 0x00, 0xf9, 0x1a, 0x36, 0x8d, 0x62,
861         0x99, 0x66, 0xb1, 0x6d, 0x57, 0x47, 0x4a, 0x4a, 0x13, 0x34, 0x96, 0x62, 0x6e, 0x54, 0x5d, 0xa8,
862         0x94, 0x86, 0x7c, 0x0f, 0x9f, 0x55, 0xb0, 0x48, 0x1b, 0x66, 0x72, 0x1d, 0x5d, 0x31, 0x7d, 0x15,
863         0x34, 0x97, 0x36, 0xdf, 0xaf, 0x38, 0x9e, 0xa3, 0x1f, 0x5e, 0xdd, 0x6d, 0x68, 0x64, 0x32, 0x8b,
864         0x79, 0xd0, 0xc2, 0x92, 0x0a, 0xc3, 0xb2, 0x3c, 0x10, 0x46, 0x07, 0x6d, 0x04, 0xf1, 0x37, 0x39,
865         0x01, 0x72, 0x37, 0x57, 0xd0, 0xc1, 0x34, 0xf7, 0x6d, 0x9a, 0x8b, 0xe5, 0x04, 0x74, 0xf3, 0x4e,
866         0xce, 0xf0, 0x37, 0x0f, 0xba, 0x9f, 0xe8, 0xff, 0xaf, 0xe8, 0x27, 0x8f, 0xdd, 0x3d, 0x0a, 0x00,
867         0x37, 0x76, 0x9c, 0xe6, 0xc8, 0x21, 0x2d, 0xf0, 0xf0, 0xd7, 0x1a, 0xb4, 0x2f, 0xae, 0xdf, 0x7b,
868         0x38, 0x3b, 0xd0, 0xd3, 0x5c, 0x09, 0x96, 0x8a, 0x5b, 0x9e, 0x44, 0x5a, 0xdc, 0x72, 0x77, 0x4a,
869         0xeb, 0x73, 0xf8, 0x5c, 0xdc, 0x72, 0xab, 0xe7, 0x96, 0xe6, 0x48, 0xb1, 0x6c, 0xc4, 0xdd, 0xb5,
870         0x46, 0xe2, 0xa9, 0x05, 0xc8, 0x0e, 0x80, 0xe2, 0x3a, 0x4f, 0xad, 0xc4, 0xea, 0xc0, 0x7f, 0xe2,
871         0x2d, 0x90, 0xd6, 0x29, 0xd6, 0xfa, 0x89, 0x0e, 0xf7, 0x61, 0xfd, 0xe2, 0xfa, 0x92, 0x2b, 0x31,
872         0xbc, 0xa1, 0x08, 0x92, 0xc7, 0xd0, 0x75, 0x84, 0x0f, 0x99, 0x48, 0xb1, 0xc0, 0x36, 0x85, 0x02,
873         0x7a, 0xc9, 0x44, 0x1a, 0x0e, 0x61, 0xf3, 0x0e, 0x27, 0xef, 0x68, 0xe9, 0x5b, 0xb8, 0x37, 0xc5,
874         0xf8, 0x25, 0xb7, 0x75, 0xac, 0x86, 0x20, 0xb7, 0x0b, 0xa9, 0xe9, 0x5a, 0xe1, 0xe8, 0x46, 0xfa,
875         0xcf, 0x1a, 0x78, 0xa7, 0xf9, 0x35, 0xf9, 0x12, 0x5a, 0x1a, 0xf5, 0x57, 0x07, 0x35, 0xdc, 0x8a,
876         0x42, 0x57, 0xd1, 0x65, 0x5a, 0xae, 0x93, 0xa7, 0xd0, 0x9a, 0x54, 0xa4, 0x6a, 0x49, 0xfc, 0xcb,
877         0x35, 0xf2, 0x23, 0x6c, 0xff, 0x22, 0x4c, 0xc6, 0xb5, 0x8e, 0x92, 0xb9, 0xd6, 0xea, 0xc0, 0xc3,
878         0xf0, 0xdb, 0xb3, 0xf0, 0x15, 0x21, 0xa6, 0x5b, 0x6e, 0x47, 0x05, 0xd3, 0xe4, 0x2b, 0xd8, 0x2c,
879         0x03, 0x31, 0x35, 0xca, 0xc7, 0x3c, 0x33, 0x05, 0xdb, 0x6b, 0x74, 0xc3, 0x2d, 0x1c, 0x95, 0x78,
880         0x28, 0xa1, 0x7d, 0x2c, 0x45, 0x36, 0x60, 0x9a, 0x93, 0x1f, 0x60, 0x6b, 0x45, 0x05, 0x4e, 0xe6,
881         0x57, 0x17, 0x40, 0xee, 0x16, 0x60, 0x6f, 0x1f, 0x53, 0x03, 0x61, 0x14, 0x53, 0x37, 0x4e, 0x9c,
882         0xe7, 0x40, 0xf8, 0xa6, 0x06, 0xcd, 0xd7, 0xb9, 0x99, 0xe4, 0x86, 0xec, 0x40, 0xb3, 0xe0, 0xc8,
883         0xa5, 0xb8, 0x43, 0xa1, 0x5b, 0x26, 0xcf, 0xa1, 0xe7, 0xd4, 0x3d, 0x7a, 0x07, 0x93, 0x4b, 0x5f,
884         0x00, 0x7b, 0xfa, 0x52, 0x25, 0x22, 0x63, 0xa9, 0x1b, 0xc5, 0xd2, 0x0c, 0x5f, 0x03, 0x50, 0x6e,
885         0x84, 0xe2, 0x96, 0x83, 0x0f, 0x2f, 0xa3, 0x12, 0xb0, 0xbe, 0x18, 0xf0, 0xf7, 0x3a, 0xb4, 0xfb,
886         0xee, 0x23, 0x6e, 0xc7, 0x1c, 0x6f, 0x76, 0xa1, 0x0d, 0xcb, 0x1f, 0xc9, 0x0e, 0xae, 0xa1, 0x1e,
887         0x7c, 0xe0, 0xa7, 0xf2, 0x2d, 0xc7, 0xe2, 0x7d, 0xe4, 0xb1, 0x9c, 0x42, 0x30, 0x1b, 0x0b, 0x7c,
888         0xe7, 0x24, 0xb3, 0x87, 0x0a, 0x6a, 0x64, 0xf7, 0x60, 0x6b, 0x56, 0xc0, 0xfc, 0x0d, 0x43, 0x1f,
889         0x94, 0x23, 0xb3, 0xf4, 0xb6, 0x59, 0x39, 0x65, 0x8d, 0xd5, 0x53, 0x56, 0x65, 0xae, 0xb9, 0xc8,
890         0xdc, 0x1f, 0x35, 0x68, 0x9c, 0x4f, 0x78, 0x96, 0x90, 0x3d, 0xe8, 0xe9, 0x09, 0xcf, 0x4c, 0x24,
891         0x71, 0x3a, 0xe6, 0xcf, 0xb0, 0x39, 0x77, 0xf7, 0xd0, 0xa1, 0x98, 0x9e, 0x7e, 0xf2, 0x36, 0x62,
892         0xea, 0x1f, 0x49, 0xcc, 0xca, 0x4e, 0xbc, 0xf7, 0x77, 0xe2, 0x2f, 0x76, 0xf2, 0x57, 0x0d, 0x1a,
893         0xc7, 0x29, 0x13, 0xe3, 0xff, 0x7b, 0x27, 0x24, 0x84, 0xb5, 0x33, 0x3e, 0x12, 0x99, 0xdb, 0xe2,
894         0x4e, 0x75, 0x01, 0x1b, 0x34, 0xf1, 0x8f, 0xc1, 0xe1, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x9d,
895         0xe4, 0x01, 0xce, 0x24, 0x0c, 0x00, 0x00,
896 }