711f33450c
This is a backport of the chainhash package made in Decred along with a few additional things cleaned up, finished test coverage, and rewording of some documentation to make it more generic. In particular, the new package provides the definition of the hash type and associated hashing functions which will allow the rest of the code to be agnostic to the specific hash algorithm. This only implements the package and does not change any of the code base over to use it.
5 lines
213 B
Go
5 lines
213 B
Go
// Package chainhash provides abstracted hash functionality.
|
|
//
|
|
// This package provides a generic hash type and associated functions that
|
|
// allows the specific hash algorithm to be abstracted.
|
|
package chainhash
|