func (t ATXID) Bytes() []byte {
	return Hash32(t).Bytes()
}
Bytes returns the ATXID as a byte slice.
package types
import (
	"bytes"
	"encoding/hex"
	"fmt"
	"sort"
	"strconv"
	poetShared "github.com/spacemeshos/poet/shared"
	postShared "github.com/spacemeshos/post/shared"
	"github.com/spacemeshos/sha256-simd"
	"github.com/spacemeshos/go-spacemesh/common/util"
	"github.com/spacemeshos/go-spacemesh/log"
)
type EpochID uint32
func (l EpochID) ToBytes() []byte { return util.Uint32ToBytes(uint32(l)) }
func (l EpochID) IsGenesis() bool {
	return l < 2
}
func (l EpochID) NeedsGoldenPositioningATX() bool {
	return l == 1
}
func (l EpochID) FirstLayer() LayerID {
	return NewLayerID(uint32(l)).Mul(getLayersPerEpoch())
}
func (l EpochID) Field() log.Field { return log.Uint32("epoch_id", uint32(l)) }
func (l EpochID) String() string {
	return strconv.FormatUint(uint64(l), 10)
}
type ATXID Hash32
func (t ATXID) ShortString() string {
	return t.Hash32().ShortString()
}
func (t ATXID) Hash32() Hash32 {
	return Hash32(t)
}