3 // CoinbaseInput records the coinbase message
4 type CoinbaseInput struct {
8 // NewCoinbaseInput creates a new coinbase input struct
9 func NewCoinbaseInput(arbitrary []byte) *TxInput {
12 TypedInput: &CoinbaseInput{Arbitrary: arbitrary},
16 // InputType is the interface function for return the input type
17 func (cb *CoinbaseInput) InputType() uint8 { return CoinbaseInputType }