(s string)
| 261 | } |
| 262 | |
| 263 | func mustDecodeHex(s string) []byte { |
| 264 | data, err := hex.DecodeString(s) |
| 265 | if err != nil { |
| 266 | panic(err) |
| 267 | } |
| 268 | return data |
| 269 | } |
| 270 | |
| 271 | func mustDecodeHash(s string) (h bc.Hash) { |
| 272 | err := h.UnmarshalText([]byte(s)) |