4 "github.com/bytom/bytom/protocol/bc"
7 // CoinbaseInput records the coinbase message
8 type CoinbaseInput struct {
12 // NewCoinbaseInput creates a new coinbase input struct
13 func NewCoinbaseInput(arbitrary []byte) *TxInput {
16 TypedInput: &CoinbaseInput{Arbitrary: arbitrary},
20 // AssetID implement the TypedInput.
21 func (cb *CoinbaseInput) AssetID() bc.AssetID {
25 // InputType is the interface function for return the input type
26 func (cb *CoinbaseInput) InputType() uint8 { return CoinbaseInputType }