package utxostore import "crypto/sha256" // newSHA returns a SHA-256 hash state. The package keeps the constructor in // one place so the double hash is written once. func newSHA() hashState { return sha256.New() } type hashState = interface { Write([]byte) (int, error) Sum([]byte) []byte Reset() }