btcsuite / btcutil

Provides bitcoin-specific convenience functions and types
477 stars 410 forks source link

Update for recent chainhash-related API changes. #78

Closed davecgh closed 8 years ago

davecgh commented 8 years ago

This PR requires btcsuite/btcd#729.

This updates all code in the main package and subpackages to make use of the new chainhash package since the old wire.ShaHash type and functions have been removed in favor of the abstracted package.

Also, since this required API changes anyways and the hash algorithm is no longer tied specifically to SHA, all other functions throughout the code base which had Sha in their name have been changed to Hash so they are not incorrectly implying the hash algorithm.

The following is an overview of the changes:

NOTE: This PR will fail the CI build because it depends on the aforementioned btcd PR.

jcvernaleo commented 8 years ago

OK

marcopeereboom commented 8 years ago

ok

cjepson commented 8 years ago

OK