OSDN Git Service

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