btcd/chaincfg/chainhash
beerosagos 36278166e5
chainhash: add support to legacy-marshaled hashes
Recent commits 1d6e578 and 72ea23e introduced a change in the way Hashes
are serialized and deserialized. This change could cause errors in
downstream applications that persisted hashes serialized using the previous
methods.

This introduces support for legacy-serialized hashes unmarshaling and restores
the compatibility with previous versions.
2023-08-29 14:52:29 +02:00
..
doc.go chainhash: Implement a new chainhash package. (#730) 2016-08-08 12:05:51 -05:00
go.mod chainhash: make module 2022-03-09 11:57:23 +01:00
hash_test.go chainhash: add support to legacy-marshaled hashes 2023-08-29 14:52:29 +02:00
hash.go chainhash: add support to legacy-marshaled hashes 2023-08-29 14:52:29 +02:00
hashfuncs_test.go chainhash: Implement a new chainhash package. (#730) 2016-08-08 12:05:51 -05:00
hashfuncs.go mining: drop getwork support. 2017-01-11 13:51:57 -05:00
README.md docs: update shields 2021-03-05 07:45:19 -05:00

chainhash

Build Status 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/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.