OSDN Git Service

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