5 func (Coinbase) typ() string { return "coinbase1" }
6 func (c *Coinbase) writeForHash(w io.Writer) {
7 mustWriteForHash(w, c.Arbitrary)
10 // SetDestination is support function for map tx
11 func (c *Coinbase) SetDestination(id *Hash, val *AssetAmount, pos uint64) {
12 c.WitnessDestination = &ValueDestination{
19 // NewCoinbase creates a new Coinbase.
20 func NewCoinbase(arbitrary []byte) *Coinbase {
21 return &Coinbase{Arbitrary: arbitrary}