OSDN Git Service

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