package
1.9.25
Repository: https://github.com/p9c/pod.git
Documentation: pkg.go.dev

# README

chainhash

ISC License GoDoc

chainhash provides a generic hash type and associated functions that allows the specific hash algorithm to be abstracted.

Installation and Updating

$ go get -u github.com/p9c/pod/chaincfg/chainhash

License

Package chainhash is licensed under the copyfree ISC License.

# Functions

Decode decodes the byte-reversed hexadecimal string encoding of a Hash to a destination.
DoubleHashB calculates hash(hash(b)) and returns the resulting bytes.
DoubleHashH calculates hash(hash(b)) and returns the resulting bytes as a Hash.
HashB calculates hash(b) and returns the resulting bytes.
HashH calculates hash(b) and returns the resulting bytes as a Hash.
NewHash returns a new Hash from a byte slice.
NewHashFromStr creates a Hash from a hash string.

# Constants

HashSize of array used to store hashes.
MaxHashStringSize is the maximum length of a Hash hash string.

# Variables

No description provided by the author
No description provided by the author
ErrHashStrSize describes an error that indicates the caller specified a hash string that has too many characters.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

Hash is used in several of the bitcoin messages and common structures.