func (i *Uint256) MarshalHash() (o []byte, err error) {
	return i.Bytes(), nil
}
MarshalHash marshals for hash.
package cpuminer
import (
	"bytes"
	"encoding/binary"
	"errors"
	hsp "github.com/SQLess/HashStablePack/marshalhash"
)
const (
	Uint256Size = 8 * 4
)
var (
	ErrBytesLen = errors.New("byte length should be 32 for Uint256")
	ErrEmptyIPv6Addr = errors.New("nil or zero length IPv6")
)
type Uint256 struct {
	A uint64  
	B uint64  
	C uint64  
	D uint64  
}
func (i *Uint256) Inc() (ret *Uint256) {
	if i.A++; i.A == 0 {
		if i.B++; i.B == 0 {
			if i.C++; i.C == 0 {
				i.D++
			}
		}
	}
	return i
}
func (i *Uint256) Bytes() []byte {
	var binBuf bytes.Buffer
	binary.Write(&binBuf, binary.BigEndian, i)
	return binBuf.Bytes()
}