OSDN Git Service

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