diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2015-04-21 18:09:37 -0400 |
---|---|---|
committer | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-05-06 17:22:46 +0200 |
commit | a574899671d428682b339ff988363ecaf7dfcd07 (patch) | |
tree | dcf40bfa5daab7b6d18a9f301eb460069859ee8c /src/hash.h | |
parent | 8cf1485f3b7a976548128c0d3866747819cbea51 (diff) |
chaincodes: abstract away more chaincode behavior
[squashme] replace struct CCainCode with a typedef uint256 ChainCode
Diffstat (limited to 'src/hash.h')
-rw-r--r-- | src/hash.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hash.h b/src/hash.h index e56b784a61..0771555623 100644 --- a/src/hash.h +++ b/src/hash.h @@ -14,6 +14,8 @@ #include <vector> +typedef uint256 ChainCode; + /** A hasher class for Bitcoin's 256-bit hash (double SHA-256). */ class CHash256 { private: @@ -159,6 +161,6 @@ uint256 SerializeHash(const T& obj, int nType=SER_GETHASH, int nVersion=PROTOCOL unsigned int MurmurHash3(unsigned int nHashSeed, const std::vector<unsigned char>& vDataToHash); -void BIP32Hash(const unsigned char chainCode[32], unsigned int nChild, unsigned char header, const unsigned char data[32], unsigned char output[64]); +void BIP32Hash(const ChainCode &chainCode, unsigned int nChild, unsigned char header, const unsigned char data[32], unsigned char output[64]); #endif // BITCOIN_HASH_H |