github.com/Bytom/bytom@v1.1.2-0.20210127130405-ae40204c0b09/protocol/bc/bc.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: bc.proto
     3  
     4  /*
     5  Package bc is a generated protocol buffer package.
     6  
     7  It is generated from these files:
     8  	bc.proto
     9  
    10  It has these top-level messages:
    11  	Hash
    12  	Program
    13  	AssetID
    14  	AssetAmount
    15  	AssetDefinition
    16  	ValueSource
    17  	ValueDestination
    18  	BlockHeader
    19  	TxHeader
    20  	TxVerifyResult
    21  	TransactionStatus
    22  	Mux
    23  	Coinbase
    24  	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  }
   353  
   354  func (m *TxHeader) Reset()                    { *m = TxHeader{} }
   355  func (m *TxHeader) String() string            { return proto.CompactTextString(m) }
   356  func (*TxHeader) ProtoMessage()               {}
   357  func (*TxHeader) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
   358  
   359  func (m *TxHeader) GetVersion() uint64 {
   360  	if m != nil {
   361  		return m.Version
   362  	}
   363  	return 0
   364  }
   365  
   366  func (m *TxHeader) GetSerializedSize() uint64 {
   367  	if m != nil {
   368  		return m.SerializedSize
   369  	}
   370  	return 0
   371  }
   372  
   373  func (m *TxHeader) GetTimeRange() uint64 {
   374  	if m != nil {
   375  		return m.TimeRange
   376  	}
   377  	return 0
   378  }
   379  
   380  func (m *TxHeader) GetResultIds() []*Hash {
   381  	if m != nil {
   382  		return m.ResultIds
   383  	}
   384  	return nil
   385  }
   386  
   387  type TxVerifyResult struct {
   388  	StatusFail bool `protobuf:"varint,1,opt,name=status_fail,json=statusFail" json:"status_fail,omitempty"`
   389  }
   390  
   391  func (m *TxVerifyResult) Reset()                    { *m = TxVerifyResult{} }
   392  func (m *TxVerifyResult) String() string            { return proto.CompactTextString(m) }
   393  func (*TxVerifyResult) ProtoMessage()               {}
   394  func (*TxVerifyResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
   395  
   396  func (m *TxVerifyResult) GetStatusFail() bool {
   397  	if m != nil {
   398  		return m.StatusFail
   399  	}
   400  	return false
   401  }
   402  
   403  type TransactionStatus struct {
   404  	Version      uint64            `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
   405  	VerifyStatus []*TxVerifyResult `protobuf:"bytes,2,rep,name=verify_status,json=verifyStatus" json:"verify_status,omitempty"`
   406  }
   407  
   408  func (m *TransactionStatus) Reset()                    { *m = TransactionStatus{} }
   409  func (m *TransactionStatus) String() string            { return proto.CompactTextString(m) }
   410  func (*TransactionStatus) ProtoMessage()               {}
   411  func (*TransactionStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
   412  
   413  func (m *TransactionStatus) GetVersion() uint64 {
   414  	if m != nil {
   415  		return m.Version
   416  	}
   417  	return 0
   418  }
   419  
   420  func (m *TransactionStatus) GetVerifyStatus() []*TxVerifyResult {
   421  	if m != nil {
   422  		return m.VerifyStatus
   423  	}
   424  	return nil
   425  }
   426  
   427  type Mux struct {
   428  	Sources             []*ValueSource      `protobuf:"bytes,1,rep,name=sources" json:"sources,omitempty"`
   429  	Program             *Program            `protobuf:"bytes,2,opt,name=program" json:"program,omitempty"`
   430  	WitnessDestinations []*ValueDestination `protobuf:"bytes,3,rep,name=witness_destinations,json=witnessDestinations" json:"witness_destinations,omitempty"`
   431  	WitnessArguments    [][]byte            `protobuf:"bytes,4,rep,name=witness_arguments,json=witnessArguments,proto3" json:"witness_arguments,omitempty"`
   432  }
   433  
   434  func (m *Mux) Reset()                    { *m = Mux{} }
   435  func (m *Mux) String() string            { return proto.CompactTextString(m) }
   436  func (*Mux) ProtoMessage()               {}
   437  func (*Mux) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
   438  
   439  func (m *Mux) GetSources() []*ValueSource {
   440  	if m != nil {
   441  		return m.Sources
   442  	}
   443  	return nil
   444  }
   445  
   446  func (m *Mux) GetProgram() *Program {
   447  	if m != nil {
   448  		return m.Program
   449  	}
   450  	return nil
   451  }
   452  
   453  func (m *Mux) GetWitnessDestinations() []*ValueDestination {
   454  	if m != nil {
   455  		return m.WitnessDestinations
   456  	}
   457  	return nil
   458  }
   459  
   460  func (m *Mux) GetWitnessArguments() [][]byte {
   461  	if m != nil {
   462  		return m.WitnessArguments
   463  	}
   464  	return nil
   465  }
   466  
   467  type Coinbase struct {
   468  	WitnessDestination *ValueDestination `protobuf:"bytes,1,opt,name=witness_destination,json=witnessDestination" json:"witness_destination,omitempty"`
   469  	Arbitrary          []byte            `protobuf:"bytes,2,opt,name=arbitrary,proto3" json:"arbitrary,omitempty"`
   470  }
   471  
   472  func (m *Coinbase) Reset()                    { *m = Coinbase{} }
   473  func (m *Coinbase) String() string            { return proto.CompactTextString(m) }
   474  func (*Coinbase) ProtoMessage()               {}
   475  func (*Coinbase) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
   476  
   477  func (m *Coinbase) GetWitnessDestination() *ValueDestination {
   478  	if m != nil {
   479  		return m.WitnessDestination
   480  	}
   481  	return nil
   482  }
   483  
   484  func (m *Coinbase) GetArbitrary() []byte {
   485  	if m != nil {
   486  		return m.Arbitrary
   487  	}
   488  	return nil
   489  }
   490  
   491  type Output struct {
   492  	Source         *ValueSource `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"`
   493  	ControlProgram *Program     `protobuf:"bytes,2,opt,name=control_program,json=controlProgram" json:"control_program,omitempty"`
   494  	Ordinal        uint64       `protobuf:"varint,3,opt,name=ordinal" json:"ordinal,omitempty"`
   495  }
   496  
   497  func (m *Output) Reset()                    { *m = Output{} }
   498  func (m *Output) String() string            { return proto.CompactTextString(m) }
   499  func (*Output) ProtoMessage()               {}
   500  func (*Output) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
   501  
   502  func (m *Output) GetSource() *ValueSource {
   503  	if m != nil {
   504  		return m.Source
   505  	}
   506  	return nil
   507  }
   508  
   509  func (m *Output) GetControlProgram() *Program {
   510  	if m != nil {
   511  		return m.ControlProgram
   512  	}
   513  	return nil
   514  }
   515  
   516  func (m *Output) GetOrdinal() uint64 {
   517  	if m != nil {
   518  		return m.Ordinal
   519  	}
   520  	return 0
   521  }
   522  
   523  type Retirement struct {
   524  	Source  *ValueSource `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"`
   525  	Ordinal uint64       `protobuf:"varint,2,opt,name=ordinal" json:"ordinal,omitempty"`
   526  }
   527  
   528  func (m *Retirement) Reset()                    { *m = Retirement{} }
   529  func (m *Retirement) String() string            { return proto.CompactTextString(m) }
   530  func (*Retirement) ProtoMessage()               {}
   531  func (*Retirement) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
   532  
   533  func (m *Retirement) GetSource() *ValueSource {
   534  	if m != nil {
   535  		return m.Source
   536  	}
   537  	return nil
   538  }
   539  
   540  func (m *Retirement) GetOrdinal() uint64 {
   541  	if m != nil {
   542  		return m.Ordinal
   543  	}
   544  	return 0
   545  }
   546  
   547  type Issuance struct {
   548  	NonceHash              *Hash             `protobuf:"bytes,1,opt,name=nonce_hash,json=nonceHash" json:"nonce_hash,omitempty"`
   549  	Value                  *AssetAmount      `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
   550  	WitnessDestination     *ValueDestination `protobuf:"bytes,3,opt,name=witness_destination,json=witnessDestination" json:"witness_destination,omitempty"`
   551  	WitnessAssetDefinition *AssetDefinition  `protobuf:"bytes,4,opt,name=witness_asset_definition,json=witnessAssetDefinition" json:"witness_asset_definition,omitempty"`
   552  	WitnessArguments       [][]byte          `protobuf:"bytes,5,rep,name=witness_arguments,json=witnessArguments,proto3" json:"witness_arguments,omitempty"`
   553  	Ordinal                uint64            `protobuf:"varint,6,opt,name=ordinal" json:"ordinal,omitempty"`
   554  }
   555  
   556  func (m *Issuance) Reset()                    { *m = Issuance{} }
   557  func (m *Issuance) String() string            { return proto.CompactTextString(m) }
   558  func (*Issuance) ProtoMessage()               {}
   559  func (*Issuance) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
   560  
   561  func (m *Issuance) GetNonceHash() *Hash {
   562  	if m != nil {
   563  		return m.NonceHash
   564  	}
   565  	return nil
   566  }
   567  
   568  func (m *Issuance) GetValue() *AssetAmount {
   569  	if m != nil {
   570  		return m.Value
   571  	}
   572  	return nil
   573  }
   574  
   575  func (m *Issuance) GetWitnessDestination() *ValueDestination {
   576  	if m != nil {
   577  		return m.WitnessDestination
   578  	}
   579  	return nil
   580  }
   581  
   582  func (m *Issuance) GetWitnessAssetDefinition() *AssetDefinition {
   583  	if m != nil {
   584  		return m.WitnessAssetDefinition
   585  	}
   586  	return nil
   587  }
   588  
   589  func (m *Issuance) GetWitnessArguments() [][]byte {
   590  	if m != nil {
   591  		return m.WitnessArguments
   592  	}
   593  	return nil
   594  }
   595  
   596  func (m *Issuance) GetOrdinal() uint64 {
   597  	if m != nil {
   598  		return m.Ordinal
   599  	}
   600  	return 0
   601  }
   602  
   603  type Spend struct {
   604  	SpentOutputId      *Hash             `protobuf:"bytes,1,opt,name=spent_output_id,json=spentOutputId" json:"spent_output_id,omitempty"`
   605  	WitnessDestination *ValueDestination `protobuf:"bytes,2,opt,name=witness_destination,json=witnessDestination" json:"witness_destination,omitempty"`
   606  	WitnessArguments   [][]byte          `protobuf:"bytes,3,rep,name=witness_arguments,json=witnessArguments,proto3" json:"witness_arguments,omitempty"`
   607  	Ordinal            uint64            `protobuf:"varint,4,opt,name=ordinal" json:"ordinal,omitempty"`
   608  }
   609  
   610  func (m *Spend) Reset()                    { *m = Spend{} }
   611  func (m *Spend) String() string            { return proto.CompactTextString(m) }
   612  func (*Spend) ProtoMessage()               {}
   613  func (*Spend) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
   614  
   615  func (m *Spend) GetSpentOutputId() *Hash {
   616  	if m != nil {
   617  		return m.SpentOutputId
   618  	}
   619  	return nil
   620  }
   621  
   622  func (m *Spend) GetWitnessDestination() *ValueDestination {
   623  	if m != nil {
   624  		return m.WitnessDestination
   625  	}
   626  	return nil
   627  }
   628  
   629  func (m *Spend) GetWitnessArguments() [][]byte {
   630  	if m != nil {
   631  		return m.WitnessArguments
   632  	}
   633  	return nil
   634  }
   635  
   636  func (m *Spend) GetOrdinal() uint64 {
   637  	if m != nil {
   638  		return m.Ordinal
   639  	}
   640  	return 0
   641  }
   642  
   643  func init() {
   644  	proto.RegisterType((*Hash)(nil), "bc.Hash")
   645  	proto.RegisterType((*Program)(nil), "bc.Program")
   646  	proto.RegisterType((*AssetID)(nil), "bc.AssetID")
   647  	proto.RegisterType((*AssetAmount)(nil), "bc.AssetAmount")
   648  	proto.RegisterType((*AssetDefinition)(nil), "bc.AssetDefinition")
   649  	proto.RegisterType((*ValueSource)(nil), "bc.ValueSource")
   650  	proto.RegisterType((*ValueDestination)(nil), "bc.ValueDestination")
   651  	proto.RegisterType((*BlockHeader)(nil), "bc.BlockHeader")
   652  	proto.RegisterType((*TxHeader)(nil), "bc.TxHeader")
   653  	proto.RegisterType((*TxVerifyResult)(nil), "bc.TxVerifyResult")
   654  	proto.RegisterType((*TransactionStatus)(nil), "bc.TransactionStatus")
   655  	proto.RegisterType((*Mux)(nil), "bc.Mux")
   656  	proto.RegisterType((*Coinbase)(nil), "bc.Coinbase")
   657  	proto.RegisterType((*Output)(nil), "bc.Output")
   658  	proto.RegisterType((*Retirement)(nil), "bc.Retirement")
   659  	proto.RegisterType((*Issuance)(nil), "bc.Issuance")
   660  	proto.RegisterType((*Spend)(nil), "bc.Spend")
   661  }
   662  
   663  func init() { proto.RegisterFile("bc.proto", fileDescriptor0) }
   664  
   665  var fileDescriptor0 = []byte{
   666  	// 913 bytes of a gzipped FileDescriptorProto
   667  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4b, 0x6f, 0x23, 0x45,
   668  	0x10, 0x96, 0xc7, 0xe3, 0x57, 0x39, 0x1b, 0xc7, 0x9d, 0xec, 0x32, 0x5a, 0x2d, 0x62, 0x35, 0xd2,
   669  	0x12, 0x10, 0x52, 0x94, 0x38, 0x0b, 0x5c, 0x38, 0x10, 0x08, 0xcb, 0xfa, 0x10, 0x2d, 0xea, 0x44,
   670  	0xb9, 0x8e, 0xda, 0x33, 0x6d, 0xbb, 0xc5, 0x78, 0xda, 0x74, 0xf7, 0x98, 0x6c, 0x6e, 0xfc, 0x08,
   671  	0x7e, 0x0b, 0x3f, 0x81, 0x13, 0xff, 0x88, 0x03, 0xea, 0x9a, 0x1e, 0x7b, 0xfc, 0xd8, 0x97, 0xd0,
   672  	0xde, 0x5c, 0x8f, 0xf9, 0xaa, 0xea, 0xab, 0x47, 0x1b, 0xda, 0xa3, 0xf8, 0x64, 0xae, 0xa4, 0x91,
   673  	0xc4, 0x1b, 0xc5, 0xe1, 0x0b, 0xf0, 0x5f, 0x32, 0x3d, 0x25, 0xfb, 0xe0, 0x2d, 0x4e, 0x83, 0xda,
   674  	0xd3, 0xda, 0x17, 0x4d, 0xea, 0x2d, 0x4e, 0x51, 0x3e, 0x0b, 0x3c, 0x27, 0x9f, 0xa1, 0x3c, 0x08,
   675  	0xea, 0x4e, 0x1e, 0xa0, 0x7c, 0x1e, 0xf8, 0x4e, 0x3e, 0x0f, 0xbf, 0x83, 0xd6, 0x2f, 0x4a, 0x4e,
   676  	0x14, 0x9b, 0x91, 0x4f, 0x01, 0x16, 0xb3, 0x68, 0xc1, 0x95, 0x16, 0x32, 0x43, 0x48, 0x9f, 0x76,
   677  	0x16, 0xb3, 0xdb, 0x42, 0x41, 0x08, 0xf8, 0xb1, 0x4c, 0x38, 0x62, 0xef, 0x51, 0xfc, 0x1d, 0x0e,
   678  	0xa1, 0x75, 0xa1, 0x35, 0x37, 0xc3, 0xcb, 0xff, 0x9d, 0xc8, 0x15, 0x74, 0x11, 0xea, 0x62, 0x26,
   679  	0xf3, 0xcc, 0x90, 0xcf, 0xa1, 0xcd, 0xac, 0x18, 0x89, 0x04, 0x41, 0xbb, 0x83, 0xee, 0xc9, 0x28,
   680  	0x3e, 0x71, 0xd1, 0x68, 0x0b, 0x8d, 0xc3, 0x84, 0x3c, 0x82, 0x26, 0xc3, 0x2f, 0x30, 0x94, 0x4f,
   681  	0x9d, 0x14, 0x4e, 0xa0, 0x87, 0xbe, 0x97, 0x7c, 0x2c, 0x32, 0x61, 0x6c, 0x01, 0xdf, 0xc0, 0x81,
   682  	0xd0, 0x3a, 0x67, 0x59, 0xcc, 0xa3, 0x79, 0x51, 0x73, 0x15, 0xda, 0xd1, 0x40, 0x7b, 0xa5, 0x53,
   683  	0xc9, 0xcb, 0x13, 0xf0, 0x13, 0x66, 0x18, 0x06, 0xe8, 0x0e, 0xda, 0xd6, 0xd7, 0x52, 0x4f, 0x51,
   684  	0x1b, 0xa6, 0xd0, 0xbd, 0x65, 0x69, 0xce, 0xaf, 0x65, 0xae, 0x62, 0x4e, 0x1e, 0x43, 0x5d, 0xf1,
   685  	0xb1, 0xc3, 0x5d, 0xf9, 0x5a, 0x25, 0x79, 0x06, 0x8d, 0x85, 0x75, 0x75, 0x48, 0xbd, 0x65, 0x41,
   686  	0x45, 0xcd, 0xb4, 0xb0, 0x92, 0xc7, 0xd0, 0x9e, 0x4b, 0x8d, 0x39, 0x23, 0x5f, 0x3e, 0x5d, 0xca,
   687  	0xe1, 0x6f, 0x70, 0x80, 0xd1, 0x2e, 0xb9, 0x36, 0x22, 0x63, 0x58, 0xd7, 0x47, 0x0e, 0xf9, 0xaf,
   688  	0x07, 0xdd, 0x1f, 0x52, 0x19, 0xff, 0xfa, 0x92, 0xb3, 0x84, 0x2b, 0x12, 0x40, 0x6b, 0x7d, 0x46,
   689  	0x4a, 0xd1, 0xf6, 0x62, 0xca, 0xc5, 0x64, 0xba, 0xec, 0x45, 0x21, 0x91, 0xe7, 0xd0, 0x9f, 0x2b,
   690  	0xbe, 0x10, 0x32, 0xd7, 0xd1, 0xc8, 0x22, 0xd9, 0xa6, 0xd6, 0x37, 0xd2, 0xed, 0x95, 0x2e, 0x18,
   691  	0x6b, 0x98, 0x90, 0x27, 0xd0, 0x31, 0x62, 0xc6, 0xb5, 0x61, 0xb3, 0x39, 0xce, 0x89, 0x4f, 0x57,
   692  	0x0a, 0xf2, 0x35, 0xf4, 0x8d, 0x62, 0x99, 0x66, 0xb1, 0x4d, 0x52, 0x47, 0x4a, 0x4a, 0x13, 0x34,
   693  	0x36, 0x30, 0x0f, 0xaa, 0x2e, 0x54, 0x4a, 0x43, 0xbe, 0x87, 0x4f, 0x2a, 0xba, 0x48, 0x1b, 0x66,
   694  	0x72, 0x1d, 0x4d, 0x99, 0x9e, 0x06, 0xcd, 0x8d, 0x8f, 0x1f, 0x56, 0x1c, 0xaf, 0xd1, 0x0f, 0x17,
   695  	0xee, 0x08, 0x1a, 0x99, 0xcc, 0x62, 0x1e, 0xb4, 0x30, 0xa5, 0x42, 0xb0, 0xcb, 0x31, 0x12, 0x46,
   696  	0x07, 0x6d, 0x54, 0xe2, 0x6f, 0x72, 0x09, 0x64, 0x3b, 0x56, 0xd0, 0xc1, 0x30, 0x0f, 0x6d, 0x98,
   697  	0x9b, 0xcd, 0x00, 0xb4, 0xbf, 0x15, 0x33, 0xfc, 0xb3, 0x06, 0xed, 0x9b, 0xbb, 0x77, 0x72, 0x7f,
   698  	0x0c, 0x3d, 0xcd, 0x95, 0x60, 0xa9, 0xb8, 0xe7, 0x49, 0xa4, 0xc5, 0x3d, 0x77, 0x4d, 0xd8, 0x5f,
   699  	0xa9, 0xaf, 0xc5, 0x3d, 0xb7, 0x5b, 0x6e, 0x59, 0x8c, 0x14, 0xcb, 0x26, 0xdc, 0x35, 0x1b, 0x79,
   700  	0xa5, 0x56, 0x41, 0x8e, 0x01, 0x14, 0xd7, 0x79, 0x6a, 0x17, 0x4f, 0x07, 0xfe, 0xd3, 0xfa, 0x1a,
   701  	0x27, 0x9d, 0xc2, 0x36, 0x4c, 0x74, 0x78, 0x06, 0xfb, 0x37, 0x77, 0xb7, 0x5c, 0x89, 0xf1, 0x6b,
   702  	0x8a, 0x4a, 0xf2, 0x19, 0x74, 0x1d, 0x9f, 0x63, 0x26, 0x52, 0x4c, 0xb0, 0x4d, 0xa1, 0x50, 0xbd,
   703  	0x60, 0x22, 0x0d, 0xc7, 0xd0, 0xdf, 0x2a, 0xf9, 0x2d, 0x25, 0x7d, 0x0b, 0x0f, 0x16, 0x88, 0x5f,
   704  	0x52, 0xe7, 0x61, 0x36, 0x04, 0xa9, 0x5b, 0x0b, 0x4d, 0xf7, 0x0a, 0x47, 0x47, 0xd9, 0x3f, 0x35,
   705  	0xa8, 0x5f, 0xe5, 0x77, 0xe4, 0x4b, 0x68, 0x69, 0xdc, 0x4a, 0x1d, 0xd4, 0xf0, 0x53, 0x1c, 0xff,
   706  	0xca, 0xb6, 0xd2, 0xd2, 0x4e, 0x9e, 0x41, 0xab, 0x3c, 0x09, 0xde, 0xf6, 0x49, 0x28, 0x6d, 0xe4,
   707  	0x67, 0x38, 0xfa, 0x5d, 0x98, 0x8c, 0x6b, 0x1d, 0x25, 0xab, 0x0d, 0xd4, 0x41, 0x1d, 0xe1, 0x8f,
   708  	0x96, 0xf0, 0x95, 0xf5, 0xa4, 0x87, 0xee, 0x8b, 0x8a, 0x4e, 0x93, 0xaf, 0xa0, 0x5f, 0x02, 0x31,
   709  	0x35, 0xc9, 0x67, 0x3c, 0x33, 0x05, 0xdb, 0x7b, 0xf4, 0xc0, 0x19, 0x2e, 0x4a, 0x7d, 0x28, 0xa1,
   710  	0xfd, 0xa3, 0x14, 0xd9, 0x88, 0x69, 0x4e, 0x7e, 0x82, 0xc3, 0x1d, 0x19, 0xb8, 0xe5, 0xdf, 0x9d,
   711  	0x00, 0xd9, 0x4e, 0xc0, 0x2e, 0x17, 0x53, 0x23, 0x61, 0x14, 0x53, 0xaf, 0xdd, 0x45, 0x5f, 0x29,
   712  	0xc2, 0x3f, 0x6a, 0xd0, 0x7c, 0x95, 0x9b, 0x79, 0x6e, 0xc8, 0x31, 0x34, 0x0b, 0x8e, 0x5c, 0x88,
   713  	0x2d, 0x0a, 0x9d, 0x99, 0x3c, 0x87, 0x5e, 0x2c, 0x33, 0xa3, 0x64, 0x1a, 0xbd, 0x85, 0xc9, 0x7d,
   714  	0xe7, 0x53, 0xde, 0xd6, 0x00, 0x5a, 0x52, 0x25, 0x22, 0x63, 0xa9, 0x1b, 0xc5, 0x52, 0x0c, 0x5f,
   715  	0x01, 0x50, 0x6e, 0x84, 0xe2, 0x96, 0x83, 0xf7, 0x4f, 0xa3, 0x02, 0xe8, 0xad, 0x03, 0xfe, 0xe5,
   716  	0x41, 0x7b, 0xe8, 0x4e, 0xbb, 0x1d, 0x73, 0x5c, 0xdc, 0x62, 0xf5, 0x37, 0x4f, 0x67, 0x07, 0x6d,
   717  	0xb8, 0xee, 0xef, 0x79, 0x40, 0xdf, 0xd0, 0x96, 0xfa, 0x07, 0xb6, 0xe5, 0x0a, 0x82, 0xe5, 0x58,
   718  	0xe0, 0xeb, 0x97, 0x2c, 0x9f, 0x2f, 0x3c, 0x81, 0xdd, 0xc1, 0xe1, 0x32, 0x81, 0xd5, 0xcb, 0x46,
   719  	0x1f, 0x95, 0x23, 0xb3, 0xf1, 0xe2, 0xed, 0x9c, 0xb2, 0xc6, 0xee, 0x29, 0xab, 0x32, 0xd7, 0x5c,
   720  	0x67, 0xee, 0xef, 0x1a, 0x34, 0xae, 0xe7, 0x3c, 0x4b, 0xc8, 0x29, 0xf4, 0xf4, 0x9c, 0x67, 0x26,
   721  	0x92, 0x38, 0x1d, 0xab, 0xc7, 0x79, 0xc5, 0xdd, 0x03, 0x74, 0x28, 0xa6, 0x67, 0x98, 0xbc, 0x89,
   722  	0x18, 0xef, 0x03, 0x89, 0xd9, 0x59, 0x49, 0xfd, 0xdd, 0x95, 0xf8, 0x6b, 0x95, 0x8c, 0x9a, 0xf8,
   723  	0x07, 0xea, 0xfc, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5a, 0x57, 0x4f, 0xd8, 0x4c, 0x09, 0x00,
   724  	0x00,
   725  }