X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fkey.cpp;h=1ed4e25087db9e8786db0a40170f5aef19efe1ae;hb=4ca0237ec0d2825004fa3aa2b00a94da2a083b8b;hp=c68fcda5fd748d1666560cd7eabffc97feb49a85;hpb=7218a68da35b3dddb228fd4647da831d249e6cd5;p=novacoin.git diff --git a/src/key.cpp b/src/key.cpp index c68fcda..1ed4e25 100644 --- a/src/key.cpp +++ b/src/key.cpp @@ -521,7 +521,7 @@ bool CPubKey::Verify(const uint256 &hash, const std::vector& vchS break; // -1 = error, 0 = bad sig, 1 = good - ret = ECDSA_verify(0, hash.begin(), hash.size(), norm_der, derlen, pkey) == 1; + ret = ECDSA_verify(0, (const unsigned char*)&hash, sizeof(hash), norm_der, derlen, pkey) == 1; OPENSSL_free(norm_der); } while(false);