OSDN Git Service

update master (#487)
[bytom/bytom-spv.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         TransactionStatus
21         Mux
22         Nonce
23         Coinbase
24         Output
25         Retirement
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         IssuanceProgram *Program `protobuf:"bytes,1,opt,name=issuance_program,json=issuanceProgram" json:"issuance_program,omitempty"`
181         Data            *Hash    `protobuf:"bytes,2,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) GetIssuanceProgram() *Program {
190         if m != nil {
191                 return m.IssuanceProgram
192         }
193         return nil
194 }
195
196 func (m *AssetDefinition) GetData() *Hash {
197         if m != nil {
198                 return m.Data
199         }
200         return nil
201 }
202
203 type ValueSource struct {
204         Ref      *Hash        `protobuf:"bytes,1,opt,name=ref" json:"ref,omitempty"`
205         Value    *AssetAmount `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
206         Position uint64       `protobuf:"varint,3,opt,name=position" json:"position,omitempty"`
207 }
208
209 func (m *ValueSource) Reset()                    { *m = ValueSource{} }
210 func (m *ValueSource) String() string            { return proto.CompactTextString(m) }
211 func (*ValueSource) ProtoMessage()               {}
212 func (*ValueSource) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
213
214 func (m *ValueSource) GetRef() *Hash {
215         if m != nil {
216                 return m.Ref
217         }
218         return nil
219 }
220
221 func (m *ValueSource) GetValue() *AssetAmount {
222         if m != nil {
223                 return m.Value
224         }
225         return nil
226 }
227
228 func (m *ValueSource) GetPosition() uint64 {
229         if m != nil {
230                 return m.Position
231         }
232         return 0
233 }
234
235 type ValueDestination struct {
236         Ref      *Hash        `protobuf:"bytes,1,opt,name=ref" json:"ref,omitempty"`
237         Value    *AssetAmount `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
238         Position uint64       `protobuf:"varint,3,opt,name=position" json:"position,omitempty"`
239 }
240
241 func (m *ValueDestination) Reset()                    { *m = ValueDestination{} }
242 func (m *ValueDestination) String() string            { return proto.CompactTextString(m) }
243 func (*ValueDestination) ProtoMessage()               {}
244 func (*ValueDestination) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
245
246 func (m *ValueDestination) GetRef() *Hash {
247         if m != nil {
248                 return m.Ref
249         }
250         return nil
251 }
252
253 func (m *ValueDestination) GetValue() *AssetAmount {
254         if m != nil {
255                 return m.Value
256         }
257         return nil
258 }
259
260 func (m *ValueDestination) GetPosition() uint64 {
261         if m != nil {
262                 return m.Position
263         }
264         return 0
265 }
266
267 type BlockHeader struct {
268         Version               uint64             `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
269         Height                uint64             `protobuf:"varint,2,opt,name=height" json:"height,omitempty"`
270         PreviousBlockId       *Hash              `protobuf:"bytes,3,opt,name=previous_block_id,json=previousBlockId" json:"previous_block_id,omitempty"`
271         Timestamp             uint64             `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"`
272         TransactionsRoot      *Hash              `protobuf:"bytes,5,opt,name=transactions_root,json=transactionsRoot" json:"transactions_root,omitempty"`
273         TransactionStatusHash *Hash              `protobuf:"bytes,6,opt,name=transaction_status_hash,json=transactionStatusHash" json:"transaction_status_hash,omitempty"`
274         Nonce                 uint64             `protobuf:"varint,7,opt,name=nonce" json:"nonce,omitempty"`
275         Bits                  uint64             `protobuf:"varint,8,opt,name=bits" json:"bits,omitempty"`
276         TransactionStatus     *TransactionStatus `protobuf:"bytes,9,opt,name=transaction_status,json=transactionStatus" json:"transaction_status,omitempty"`
277 }
278
279 func (m *BlockHeader) Reset()                    { *m = BlockHeader{} }
280 func (m *BlockHeader) String() string            { return proto.CompactTextString(m) }
281 func (*BlockHeader) ProtoMessage()               {}
282 func (*BlockHeader) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
283
284 func (m *BlockHeader) GetVersion() uint64 {
285         if m != nil {
286                 return m.Version
287         }
288         return 0
289 }
290
291 func (m *BlockHeader) GetHeight() uint64 {
292         if m != nil {
293                 return m.Height
294         }
295         return 0
296 }
297
298 func (m *BlockHeader) GetPreviousBlockId() *Hash {
299         if m != nil {
300                 return m.PreviousBlockId
301         }
302         return nil
303 }
304
305 func (m *BlockHeader) GetTimestamp() uint64 {
306         if m != nil {
307                 return m.Timestamp
308         }
309         return 0
310 }
311
312 func (m *BlockHeader) GetTransactionsRoot() *Hash {
313         if m != nil {
314                 return m.TransactionsRoot
315         }
316         return nil
317 }
318
319 func (m *BlockHeader) GetTransactionStatusHash() *Hash {
320         if m != nil {
321                 return m.TransactionStatusHash
322         }
323         return nil
324 }
325
326 func (m *BlockHeader) GetNonce() uint64 {
327         if m != nil {
328                 return m.Nonce
329         }
330         return 0
331 }
332
333 func (m *BlockHeader) GetBits() uint64 {
334         if m != nil {
335                 return m.Bits
336         }
337         return 0
338 }
339
340 func (m *BlockHeader) GetTransactionStatus() *TransactionStatus {
341         if m != nil {
342                 return m.TransactionStatus
343         }
344         return nil
345 }
346
347 type TxHeader struct {
348         Version        uint64  `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
349         SerializedSize uint64  `protobuf:"varint,2,opt,name=serialized_size,json=serializedSize" json:"serialized_size,omitempty"`
350         TimeRange      uint64  `protobuf:"varint,3,opt,name=time_range,json=timeRange" json:"time_range,omitempty"`
351         ResultIds      []*Hash `protobuf:"bytes,4,rep,name=result_ids,json=resultIds" json:"result_ids,omitempty"`
352         ExtHash        *Hash   `protobuf:"bytes,5,opt,name=ext_hash,json=extHash" json:"ext_hash,omitempty"`
353 }
354
355 func (m *TxHeader) Reset()                    { *m = TxHeader{} }
356 func (m *TxHeader) String() string            { return proto.CompactTextString(m) }
357 func (*TxHeader) ProtoMessage()               {}
358 func (*TxHeader) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
359
360 func (m *TxHeader) GetVersion() uint64 {
361         if m != nil {
362                 return m.Version
363         }
364         return 0
365 }
366
367 func (m *TxHeader) GetSerializedSize() uint64 {
368         if m != nil {
369                 return m.SerializedSize
370         }
371         return 0
372 }
373
374 func (m *TxHeader) GetTimeRange() uint64 {
375         if m != nil {
376                 return m.TimeRange
377         }
378         return 0
379 }
380
381 func (m *TxHeader) GetResultIds() []*Hash {
382         if m != nil {
383                 return m.ResultIds
384         }
385         return nil
386 }
387
388 func (m *TxHeader) GetExtHash() *Hash {
389         if m != nil {
390                 return m.ExtHash
391         }
392         return nil
393 }
394
395 type TransactionStatus struct {
396         Bitmap []byte `protobuf:"bytes,1,opt,name=bitmap,proto3" json:"bitmap,omitempty"`
397 }
398
399 func (m *TransactionStatus) Reset()                    { *m = TransactionStatus{} }
400 func (m *TransactionStatus) String() string            { return proto.CompactTextString(m) }
401 func (*TransactionStatus) ProtoMessage()               {}
402 func (*TransactionStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
403
404 func (m *TransactionStatus) GetBitmap() []byte {
405         if m != nil {
406                 return m.Bitmap
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{10} }
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         ExtHash           *Hash    `protobuf:"bytes,2,opt,name=ext_hash,json=extHash" json:"ext_hash,omitempty"`
462         WitnessArguments  [][]byte `protobuf:"bytes,3,rep,name=witness_arguments,json=witnessArguments,proto3" json:"witness_arguments,omitempty"`
463         WitnessAnchoredId *Hash    `protobuf:"bytes,4,opt,name=witness_anchored_id,json=witnessAnchoredId" json:"witness_anchored_id,omitempty"`
464 }
465
466 func (m *Nonce) Reset()                    { *m = Nonce{} }
467 func (m *Nonce) String() string            { return proto.CompactTextString(m) }
468 func (*Nonce) ProtoMessage()               {}
469 func (*Nonce) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
470
471 func (m *Nonce) GetProgram() *Program {
472         if m != nil {
473                 return m.Program
474         }
475         return nil
476 }
477
478 func (m *Nonce) GetExtHash() *Hash {
479         if m != nil {
480                 return m.ExtHash
481         }
482         return nil
483 }
484
485 func (m *Nonce) GetWitnessArguments() [][]byte {
486         if m != nil {
487                 return m.WitnessArguments
488         }
489         return nil
490 }
491
492 func (m *Nonce) GetWitnessAnchoredId() *Hash {
493         if m != nil {
494                 return m.WitnessAnchoredId
495         }
496         return nil
497 }
498
499 type Coinbase struct {
500         WitnessDestination *ValueDestination `protobuf:"bytes,1,opt,name=witness_destination,json=witnessDestination" json:"witness_destination,omitempty"`
501         Arbitrary          []byte            `protobuf:"bytes,2,opt,name=arbitrary,proto3" json:"arbitrary,omitempty"`
502 }
503
504 func (m *Coinbase) Reset()                    { *m = Coinbase{} }
505 func (m *Coinbase) String() string            { return proto.CompactTextString(m) }
506 func (*Coinbase) ProtoMessage()               {}
507 func (*Coinbase) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
508
509 func (m *Coinbase) GetWitnessDestination() *ValueDestination {
510         if m != nil {
511                 return m.WitnessDestination
512         }
513         return nil
514 }
515
516 func (m *Coinbase) GetArbitrary() []byte {
517         if m != nil {
518                 return m.Arbitrary
519         }
520         return nil
521 }
522
523 type Output struct {
524         Source         *ValueSource `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"`
525         ControlProgram *Program     `protobuf:"bytes,2,opt,name=control_program,json=controlProgram" json:"control_program,omitempty"`
526         ExtHash        *Hash        `protobuf:"bytes,3,opt,name=ext_hash,json=extHash" json:"ext_hash,omitempty"`
527         Ordinal        uint64       `protobuf:"varint,4,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{13} }
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) GetExtHash() *Hash {
550         if m != nil {
551                 return m.ExtHash
552         }
553         return nil
554 }
555
556 func (m *Output) GetOrdinal() uint64 {
557         if m != nil {
558                 return m.Ordinal
559         }
560         return 0
561 }
562
563 type Retirement struct {
564         Source  *ValueSource `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"`
565         ExtHash *Hash        `protobuf:"bytes,2,opt,name=ext_hash,json=extHash" json:"ext_hash,omitempty"`
566         Ordinal uint64       `protobuf:"varint,3,opt,name=ordinal" json:"ordinal,omitempty"`
567 }
568
569 func (m *Retirement) Reset()                    { *m = Retirement{} }
570 func (m *Retirement) String() string            { return proto.CompactTextString(m) }
571 func (*Retirement) ProtoMessage()               {}
572 func (*Retirement) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
573
574 func (m *Retirement) GetSource() *ValueSource {
575         if m != nil {
576                 return m.Source
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 Issuance struct {
596         AnchorId               *Hash             `protobuf:"bytes,1,opt,name=anchor_id,json=anchorId" json:"anchor_id,omitempty"`
597         Value                  *AssetAmount      `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
598         ExtHash                *Hash             `protobuf:"bytes,3,opt,name=ext_hash,json=extHash" json:"ext_hash,omitempty"`
599         WitnessDestination     *ValueDestination `protobuf:"bytes,4,opt,name=witness_destination,json=witnessDestination" json:"witness_destination,omitempty"`
600         WitnessAssetDefinition *AssetDefinition  `protobuf:"bytes,5,opt,name=witness_asset_definition,json=witnessAssetDefinition" json:"witness_asset_definition,omitempty"`
601         WitnessArguments       [][]byte          `protobuf:"bytes,6,rep,name=witness_arguments,json=witnessArguments,proto3" json:"witness_arguments,omitempty"`
602         WitnessAnchoredId      *Hash             `protobuf:"bytes,7,opt,name=witness_anchored_id,json=witnessAnchoredId" json:"witness_anchored_id,omitempty"`
603         Ordinal                uint64            `protobuf:"varint,8,opt,name=ordinal" json:"ordinal,omitempty"`
604 }
605
606 func (m *Issuance) Reset()                    { *m = Issuance{} }
607 func (m *Issuance) String() string            { return proto.CompactTextString(m) }
608 func (*Issuance) ProtoMessage()               {}
609 func (*Issuance) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
610
611 func (m *Issuance) GetAnchorId() *Hash {
612         if m != nil {
613                 return m.AnchorId
614         }
615         return nil
616 }
617
618 func (m *Issuance) GetValue() *AssetAmount {
619         if m != nil {
620                 return m.Value
621         }
622         return nil
623 }
624
625 func (m *Issuance) GetExtHash() *Hash {
626         if m != nil {
627                 return m.ExtHash
628         }
629         return nil
630 }
631
632 func (m *Issuance) GetWitnessDestination() *ValueDestination {
633         if m != nil {
634                 return m.WitnessDestination
635         }
636         return nil
637 }
638
639 func (m *Issuance) GetWitnessAssetDefinition() *AssetDefinition {
640         if m != nil {
641                 return m.WitnessAssetDefinition
642         }
643         return nil
644 }
645
646 func (m *Issuance) GetWitnessArguments() [][]byte {
647         if m != nil {
648                 return m.WitnessArguments
649         }
650         return nil
651 }
652
653 func (m *Issuance) GetWitnessAnchoredId() *Hash {
654         if m != nil {
655                 return m.WitnessAnchoredId
656         }
657         return nil
658 }
659
660 func (m *Issuance) GetOrdinal() uint64 {
661         if m != nil {
662                 return m.Ordinal
663         }
664         return 0
665 }
666
667 type Spend struct {
668         SpentOutputId      *Hash             `protobuf:"bytes,1,opt,name=spent_output_id,json=spentOutputId" json:"spent_output_id,omitempty"`
669         ExtHash            *Hash             `protobuf:"bytes,2,opt,name=ext_hash,json=extHash" json:"ext_hash,omitempty"`
670         WitnessDestination *ValueDestination `protobuf:"bytes,3,opt,name=witness_destination,json=witnessDestination" json:"witness_destination,omitempty"`
671         WitnessArguments   [][]byte          `protobuf:"bytes,4,rep,name=witness_arguments,json=witnessArguments,proto3" json:"witness_arguments,omitempty"`
672         WitnessAnchoredId  *Hash             `protobuf:"bytes,5,opt,name=witness_anchored_id,json=witnessAnchoredId" json:"witness_anchored_id,omitempty"`
673         Ordinal            uint64            `protobuf:"varint,6,opt,name=ordinal" json:"ordinal,omitempty"`
674 }
675
676 func (m *Spend) Reset()                    { *m = Spend{} }
677 func (m *Spend) String() string            { return proto.CompactTextString(m) }
678 func (*Spend) ProtoMessage()               {}
679 func (*Spend) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
680
681 func (m *Spend) GetSpentOutputId() *Hash {
682         if m != nil {
683                 return m.SpentOutputId
684         }
685         return nil
686 }
687
688 func (m *Spend) GetExtHash() *Hash {
689         if m != nil {
690                 return m.ExtHash
691         }
692         return nil
693 }
694
695 func (m *Spend) GetWitnessDestination() *ValueDestination {
696         if m != nil {
697                 return m.WitnessDestination
698         }
699         return nil
700 }
701
702 func (m *Spend) GetWitnessArguments() [][]byte {
703         if m != nil {
704                 return m.WitnessArguments
705         }
706         return nil
707 }
708
709 func (m *Spend) GetWitnessAnchoredId() *Hash {
710         if m != nil {
711                 return m.WitnessAnchoredId
712         }
713         return nil
714 }
715
716 func (m *Spend) GetOrdinal() uint64 {
717         if m != nil {
718                 return m.Ordinal
719         }
720         return 0
721 }
722
723 func init() {
724         proto.RegisterType((*Hash)(nil), "bc.Hash")
725         proto.RegisterType((*Program)(nil), "bc.Program")
726         proto.RegisterType((*AssetID)(nil), "bc.AssetID")
727         proto.RegisterType((*AssetAmount)(nil), "bc.AssetAmount")
728         proto.RegisterType((*AssetDefinition)(nil), "bc.AssetDefinition")
729         proto.RegisterType((*ValueSource)(nil), "bc.ValueSource")
730         proto.RegisterType((*ValueDestination)(nil), "bc.ValueDestination")
731         proto.RegisterType((*BlockHeader)(nil), "bc.BlockHeader")
732         proto.RegisterType((*TxHeader)(nil), "bc.TxHeader")
733         proto.RegisterType((*TransactionStatus)(nil), "bc.TransactionStatus")
734         proto.RegisterType((*Mux)(nil), "bc.Mux")
735         proto.RegisterType((*Nonce)(nil), "bc.Nonce")
736         proto.RegisterType((*Coinbase)(nil), "bc.Coinbase")
737         proto.RegisterType((*Output)(nil), "bc.Output")
738         proto.RegisterType((*Retirement)(nil), "bc.Retirement")
739         proto.RegisterType((*Issuance)(nil), "bc.Issuance")
740         proto.RegisterType((*Spend)(nil), "bc.Spend")
741 }
742
743 func init() { proto.RegisterFile("bc.proto", fileDescriptor0) }
744
745 var fileDescriptor0 = []byte{
746         // 951 bytes of a gzipped FileDescriptorProto
747         0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xdd, 0x6e, 0xe3, 0x44,
748         0x14, 0x56, 0x62, 0x27, 0x76, 0x4e, 0x4a, 0xd3, 0x4c, 0xbb, 0x8b, 0xb5, 0x5a, 0xa4, 0xca, 0xa8,
749         0x74, 0xd1, 0x4a, 0x55, 0xb7, 0x5d, 0x10, 0x17, 0x5c, 0x50, 0x28, 0xb0, 0xb9, 0x28, 0xac, 0xa6,
750         0xab, 0xbd, 0xb5, 0xc6, 0xf6, 0x6c, 0x32, 0x22, 0xf1, 0x98, 0x99, 0x71, 0x28, 0x7d, 0x0e, 0x9e,
751         0x61, 0x1f, 0x82, 0xc7, 0xe2, 0x9a, 0x0b, 0x34, 0xe3, 0x71, 0xec, 0xfc, 0x94, 0x4d, 0x84, 0xb8,
752         0xf3, 0x39, 0x73, 0x7c, 0x7e, 0xbe, 0xf3, 0x7d, 0x1e, 0x83, 0x1f, 0x27, 0x67, 0xb9, 0xe0, 0x8a,
753         0xa3, 0x76, 0x9c, 0x84, 0x3f, 0x80, 0xfb, 0x8a, 0xc8, 0x09, 0xda, 0x87, 0xf6, 0xfc, 0x3c, 0x68,
754         0x1d, 0xb7, 0x9e, 0x75, 0x71, 0x7b, 0x7e, 0x6e, 0xec, 0x17, 0x41, 0xdb, 0xda, 0x2f, 0x8c, 0x7d,
755         0x11, 0x38, 0xd6, 0xbe, 0x30, 0xf6, 0x65, 0xe0, 0x5a, 0xfb, 0x32, 0xfc, 0x1a, 0xbc, 0xd7, 0x82,
756         0x8f, 0x05, 0x99, 0xa1, 0x4f, 0x00, 0xe6, 0xb3, 0x68, 0x4e, 0x85, 0x64, 0x3c, 0x33, 0x29, 0x5d,
757         0xdc, 0x9b, 0xcf, 0xde, 0x96, 0x0e, 0x84, 0xc0, 0x4d, 0x78, 0x4a, 0x4d, 0xee, 0x3d, 0x6c, 0x9e,
758         0xc3, 0x11, 0x78, 0x57, 0x52, 0x52, 0x35, 0xba, 0xfe, 0xcf, 0x8d, 0xdc, 0x40, 0xdf, 0xa4, 0xba,
759         0x9a, 0xf1, 0x22, 0x53, 0xe8, 0x33, 0xf0, 0x89, 0x36, 0x23, 0x96, 0x9a, 0xa4, 0xfd, 0x8b, 0xfe,
760         0x59, 0x9c, 0x9c, 0xd9, 0x6a, 0xd8, 0x33, 0x87, 0xa3, 0x14, 0x3d, 0x86, 0x2e, 0x31, 0x6f, 0x98,
761         0x52, 0x2e, 0xb6, 0x56, 0x38, 0x86, 0x81, 0x89, 0xbd, 0xa6, 0xef, 0x58, 0xc6, 0x94, 0x1e, 0xe0,
762         0x4b, 0x38, 0x60, 0x52, 0x16, 0x24, 0x4b, 0x68, 0x94, 0x97, 0x33, 0x37, 0x53, 0x5b, 0x18, 0xf0,
763         0xa0, 0x0a, 0xaa, 0x70, 0x79, 0x0a, 0x6e, 0x4a, 0x14, 0x31, 0x05, 0xfa, 0x17, 0xbe, 0x8e, 0xd5,
764         0xd0, 0x63, 0xe3, 0x0d, 0xa7, 0xd0, 0x7f, 0x4b, 0xa6, 0x05, 0xbd, 0xe5, 0x85, 0x48, 0x28, 0x7a,
765         0x02, 0x8e, 0xa0, 0xef, 0x6c, 0xde, 0x3a, 0x56, 0x3b, 0xd1, 0x09, 0x74, 0xe6, 0x3a, 0xd4, 0x66,
766         0x1a, 0x2c, 0x06, 0x2a, 0x67, 0xc6, 0xe5, 0x29, 0x7a, 0x02, 0x7e, 0xce, 0xa5, 0xe9, 0xd9, 0xe0,
767         0xe5, 0xe2, 0x85, 0x1d, 0xfe, 0x0a, 0x07, 0xa6, 0xda, 0x35, 0x95, 0x8a, 0x65, 0xc4, 0xcc, 0xf5,
768         0x3f, 0x97, 0xfc, 0xbb, 0x0d, 0xfd, 0x6f, 0xa7, 0x3c, 0xf9, 0xe5, 0x15, 0x25, 0x29, 0x15, 0x28,
769         0x00, 0x6f, 0x99, 0x23, 0x95, 0xa9, 0x77, 0x31, 0xa1, 0x6c, 0x3c, 0x59, 0xec, 0xa2, 0xb4, 0xd0,
770         0x4b, 0x18, 0xe6, 0x82, 0xce, 0x19, 0x2f, 0x64, 0x14, 0xeb, 0x4c, 0x7a, 0xa9, 0xce, 0x4a, 0xbb,
771         0x83, 0x2a, 0xc4, 0xd4, 0x1a, 0xa5, 0xe8, 0x29, 0xf4, 0x14, 0x9b, 0x51, 0xa9, 0xc8, 0x2c, 0x37,
772         0x3c, 0x71, 0x71, 0xed, 0x40, 0x5f, 0xc0, 0x50, 0x09, 0x92, 0x49, 0x92, 0xe8, 0x26, 0x65, 0x24,
773         0x38, 0x57, 0x41, 0x67, 0x25, 0xe7, 0x41, 0x33, 0x04, 0x73, 0xae, 0xd0, 0x37, 0xf0, 0x71, 0xc3,
774         0x17, 0x49, 0x45, 0x54, 0x21, 0xa3, 0x09, 0x91, 0x93, 0xa0, 0xbb, 0xf2, 0xf2, 0xa3, 0x46, 0xe0,
775         0xad, 0x89, 0x33, 0x82, 0x3b, 0x82, 0x4e, 0xc6, 0xb3, 0x84, 0x06, 0x9e, 0x69, 0xa9, 0x34, 0xb4,
776         0x38, 0x62, 0xa6, 0x64, 0xe0, 0x1b, 0xa7, 0x79, 0x46, 0xd7, 0x80, 0xd6, 0x6b, 0x05, 0x3d, 0x53,
777         0xe6, 0x91, 0x2e, 0xf3, 0x66, 0xb5, 0x00, 0x1e, 0xae, 0xd5, 0x0c, 0xff, 0x6c, 0x81, 0xff, 0xe6,
778         0xee, 0x83, 0xd8, 0x9f, 0xc2, 0x40, 0x52, 0xc1, 0xc8, 0x94, 0xdd, 0xd3, 0x34, 0x92, 0xec, 0x9e,
779         0xda, 0x25, 0xec, 0xd7, 0xee, 0x5b, 0x76, 0x4f, 0xb5, 0xca, 0x35, 0x8a, 0x91, 0x20, 0xd9, 0x98,
780         0xda, 0x65, 0x1b, 0x5c, 0xb1, 0x76, 0xa0, 0x53, 0x00, 0x41, 0x65, 0x31, 0xd5, 0xc2, 0x93, 0x81,
781         0x7b, 0xec, 0x2c, 0x61, 0xd2, 0x2b, 0xcf, 0x46, 0xa9, 0x44, 0x9f, 0x82, 0x4f, 0xef, 0x54, 0x09,
782         0xdd, 0x2a, 0xee, 0x1e, 0xbd, 0x53, 0xfa, 0x21, 0x7c, 0x0e, 0xc3, 0xb5, 0x21, 0x35, 0x4d, 0x62,
783         0xa6, 0x66, 0x24, 0x37, 0x33, 0xec, 0x61, 0x6b, 0x85, 0x7f, 0xb5, 0xc0, 0xb9, 0x29, 0xee, 0xd0,
784         0xe7, 0xe0, 0x49, 0x23, 0x26, 0x19, 0xb4, 0x4c, 0x7d, 0xc3, 0xda, 0x86, 0xc8, 0x70, 0x75, 0x8e,
785         0x4e, 0xc0, 0xab, 0x94, 0xdc, 0x5e, 0x57, 0x72, 0x75, 0xb6, 0xd4, 0xab, 0xf3, 0x40, 0xaf, 0xe8,
786         0x47, 0x38, 0xfa, 0x8d, 0xa9, 0x8c, 0x4a, 0x19, 0xa5, 0xb5, 0xba, 0x2a, 0x0c, 0x8e, 0x16, 0x3d,
787         0x34, 0xa4, 0x87, 0x0f, 0xed, 0x1b, 0x0d, 0x9f, 0x44, 0xcf, 0x61, 0x58, 0x25, 0x22, 0x62, 0x5c,
788         0xcc, 0x68, 0xa6, 0x64, 0xd0, 0x39, 0x76, 0x9e, 0xed, 0xe1, 0x03, 0x7b, 0x70, 0x55, 0xf9, 0xf5,
789         0x7a, 0x3b, 0x3f, 0x19, 0x0a, 0x35, 0x66, 0x69, 0x6d, 0x39, 0x4b, 0xfb, 0xa1, 0x59, 0x36, 0xb6,
790         0xe0, 0x6c, 0x6e, 0x01, 0x7d, 0x05, 0x87, 0x8b, 0xe0, 0x2c, 0x99, 0x70, 0x41, 0x53, 0x2d, 0x50,
791         0x77, 0x25, 0x79, 0x95, 0xf1, 0xca, 0xc6, 0x8c, 0xd2, 0x90, 0x83, 0xff, 0x1d, 0x67, 0x59, 0x4c,
792         0x24, 0x45, 0xdf, 0xd7, 0x59, 0x1a, 0xf0, 0xd9, 0x51, 0x36, 0xa3, 0x87, 0xd6, 0xd1, 0xd3, 0xaa,
793         0x27, 0x22, 0x66, 0x4a, 0x10, 0xf1, 0xbb, 0xbd, 0x6a, 0x6a, 0x47, 0xf8, 0xbe, 0x05, 0xdd, 0x9f,
794         0x0b, 0x95, 0x17, 0x0a, 0x9d, 0x42, 0xb7, 0x64, 0x81, 0x2d, 0xb1, 0x46, 0x12, 0x7b, 0x8c, 0x5e,
795         0xc2, 0x20, 0xe1, 0x99, 0x12, 0x7c, 0x1a, 0xfd, 0x0b, 0x57, 0xf6, 0x6d, 0xcc, 0xeb, 0x5d, 0x28,
796         0x13, 0x80, 0xc7, 0x45, 0xca, 0x32, 0x32, 0xb5, 0x1f, 0xa8, 0xca, 0x0c, 0x15, 0x00, 0xa6, 0x8a,
797         0x09, 0xaa, 0x21, 0xde, 0xbe, 0xd7, 0xad, 0x96, 0xdb, 0xa8, 0xea, 0x2c, 0x57, 0xfd, 0xc3, 0x01,
798         0x7f, 0x64, 0x6f, 0x2f, 0x74, 0x02, 0xbd, 0x72, 0x9d, 0xf5, 0x15, 0x5a, 0x27, 0xf3, 0xcb, 0xa3,
799         0x51, 0xba, 0xed, 0x0d, 0xb1, 0x15, 0x1e, 0x0f, 0x70, 0xc0, 0xdd, 0x91, 0x03, 0x37, 0x10, 0x2c,
800         0x08, 0x69, 0xfe, 0x01, 0xd2, 0xc5, 0x25, 0x6e, 0x3f, 0x35, 0x87, 0x8b, 0x2e, 0xeb, 0xfb, 0x1d,
801         0x3f, 0xae, 0x08, 0xba, 0x72, 0xef, 0x6f, 0x14, 0x43, 0x77, 0x37, 0x31, 0x78, 0x1f, 0x14, 0x43,
802         0x73, 0x2d, 0xfe, 0xf2, 0x5a, 0xde, 0xb7, 0xa1, 0x73, 0x9b, 0xd3, 0x2c, 0x45, 0xe7, 0x30, 0x90,
803         0x39, 0xcd, 0x54, 0xc4, 0x0d, 0x89, 0x37, 0x6d, 0xe6, 0x23, 0x13, 0x50, 0x92, 0x7c, 0x94, 0x6e,
804         0xc7, 0x88, 0x07, 0x70, 0x77, 0x76, 0xc4, 0x7d, 0x23, 0x50, 0xee, 0x6e, 0x40, 0x75, 0x76, 0x02,
805         0xaa, 0xbb, 0x04, 0x54, 0xdc, 0x35, 0xff, 0xb7, 0x97, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0xeb,
806         0x55, 0xfc, 0x14, 0xeb, 0x0a, 0x00, 0x00,
807 }