chainhash provides a generic hash type and associated functions that allows the specific hash algorithm to be abstracted.
$ go get -u github.com/decred/dcrd/chaincfg/chainhash
Package chainhash is licensed under the copyfree ISC License.