btcd/chaincfg/chainhash
Dave Collins 711f33450c chainhash: Implement a new chainhash package. (#730)
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.
2016-08-08 12:05:51 -05:00
..
doc.go chainhash: Implement a new chainhash package. (#730) 2016-08-08 12:05:51 -05:00
hash_test.go chainhash: Implement a new chainhash package. (#730) 2016-08-08 12:05:51 -05:00
hash.go chainhash: Implement a new chainhash package. (#730) 2016-08-08 12:05:51 -05:00
hashfuncs_test.go chainhash: Implement a new chainhash package. (#730) 2016-08-08 12:05:51 -05:00
hashfuncs.go chainhash: Implement a new chainhash package. (#730) 2016-08-08 12:05:51 -05:00
README.md chainhash: Implement a new chainhash package. (#730) 2016-08-08 12:05:51 -05:00

chainhash

[Build Status] (https://travis-ci.org/btcsuite/btcd) ![ISC License] (http://img.shields.io/badge/license-ISC-blue.svg) [GoDoc] (http://godoc.org/github.com/btcsuite/btcd/chaincfg/chainhash)

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/btcsuite/btcd/chaincfg/chainhash

GPG Verification Key

All official release tags are signed by Conformal so users can ensure the code has not been tampered with and is coming from the btcsuite developers. To verify the signature perform the following:

  • Download the public key from the Conformal website at https://opensource.conformal.com/GIT-GPG-KEY-conformal.txt

  • Import the public key into your GPG keyring:

    gpg --import GIT-GPG-KEY-conformal.txt
    
  • Verify the release tag with the following command where TAG_NAME is a placeholder for the specific tag:

    git tag -v TAG_NAME
    

License

Package chainhash is licensed under the copyfree ISC License.