func HexToHash(s string) Hash {
	b, err := FromHex(s)
	if err != nil {
		panic(err)
	}
	return BytesToHash(b)
}
HexToHash hex -> hash
package common
import (
	"crypto/sha256"
	"encoding/hex"
	"github.com/33cn/chain33/common/crypto/sha3"
	"golang.org/x/crypto/ripemd160"
)
const Sha256Len = 32
type Hash [Sha256Len]byte
func BytesToHash(b []byte) Hash {
	var h Hash
	h.SetBytes(b)
	return h
}