Documentation
¶
Overview ¶
Package doublehash implements double hashing via a hash.Hash.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a new hash.Hash that computes a double hash. The hashes are specified by name, e.g. crypto.SHA256.
func SumDoubleSha256 ¶
SumDoubleSha256 is a convience function that returns the double sha256 hash of the data.
func SumSha256Ripemd160 ¶
SumSha256Ripemd160 is a convience function that returns the ripemd160 hash of the sha256 hash of the data. SumSha256Ripemd160 panics if the crypto.RIPEMD160 hash is not linked into the binary.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.