import (
"bytes"
+ "encoding/hex"
"io"
"testing"
return h
}
+func MustDecodeHexString(s string) []byte {
+ bytes, err := hex.DecodeString(s)
+ if err != nil {
+ panic(err)
+ }
+ return bytes
+}
+
func MustDecodeAsset(s string) (h bc.AssetID) {
if err := h.UnmarshalText([]byte(s)); err != nil {
panic(err)