diff options
author | Jack Grigg <jack@z.cash> | 2017-10-04 14:41:40 +0100 |
---|---|---|
committer | Jack Grigg <jack@z.cash> | 2017-10-04 14:41:40 +0100 |
commit | 63179d028347bf3e32c7ea61386df4c44307b4a7 (patch) | |
tree | 13f96bb1dc55d166f3a9ec3a43aca14e3e923313 /src/pubkey.cpp | |
parent | 1ce9f0a952a3d5d9442ad8251da898d96209c16c (diff) |
Scope the ECDSA constant sizes to CPubKey / CKey classes
Diffstat (limited to 'src/pubkey.cpp')
-rw-r--r-- | src/pubkey.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pubkey.cpp b/src/pubkey.cpp index 7e7b159223..297c60fb32 100644 --- a/src/pubkey.cpp +++ b/src/pubkey.cpp @@ -252,8 +252,8 @@ void CExtPubKey::Encode(unsigned char code[BIP32_EXTKEY_SIZE]) const { code[5] = (nChild >> 24) & 0xFF; code[6] = (nChild >> 16) & 0xFF; code[7] = (nChild >> 8) & 0xFF; code[8] = (nChild >> 0) & 0xFF; memcpy(code+9, chaincode.begin(), 32); - assert(pubkey.size() == COMPRESSED_PUBLIC_KEY_SIZE); - memcpy(code+41, pubkey.begin(), COMPRESSED_PUBLIC_KEY_SIZE); + assert(pubkey.size() == CPubKey::COMPRESSED_PUBLIC_KEY_SIZE); + memcpy(code+41, pubkey.begin(), CPubKey::COMPRESSED_PUBLIC_KEY_SIZE); } void CExtPubKey::Decode(const unsigned char code[BIP32_EXTKEY_SIZE]) { |