3 // CoinbaseInput is record the coinbase message
4 type CoinbaseInput struct {
8 // IsIssuance is the interface function for return the struct type
9 func (cb *CoinbaseInput) IsIssuance() bool { return false }
11 // IsCoinbase is the interface function for return the struct type
12 func (cb *CoinbaseInput) IsCoinbase() bool { return true }
14 // NewCoinbaseInput create a new coinbase input struct
15 func NewCoinbaseInput(arbitrary []byte) *TxInput {
18 TypedInput: &CoinbaseInput{