func newShaHash(hexStr string) *chainhash.Hash {
	sha, err := chainhash.NewHashFromStr(hexStr)
	if err != nil {
		panic(err)
	}
	return sha
}
newShaHash converts the passed big-endian hex string into a wire.ShaHash.
It only differs from the one available in wire in that it panics on an
error since it will only (and must only) be called with hard-coded, and
therefore known good, hashes.
package udb
import (
	"encoding/hex"
	"fmt"
	"os"
	"reflect"
	"testing"
	"github.com/HcashOrg/hcashd/chaincfg"
	"github.com/HcashOrg/hcashd/chaincfg/chainec"
	"github.com/HcashOrg/hcashd/chaincfg/chainhash"
	"github.com/HcashOrg/hcashutil"
	"github.com/HcashOrg/hcashwallet/apperrors"
	"github.com/HcashOrg/hcashwallet/walletdb"
)