git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7218a68
)
We have not yet implemented begin() and size() methods in the master branch.
author
CryptoManiac
<balthazar.ad@gmail.com>
Tue, 12 Apr 2016 18:26:38 +0000 (11:26 -0700)
committer
CryptoManiac
<balthazar.ad@gmail.com>
Tue, 12 Apr 2016 18:26:38 +0000 (11:26 -0700)
src/key.cpp
patch
|
blob
|
history
diff --git
a/src/key.cpp
b/src/key.cpp
index
c68fcda
..
1ed4e25
100644
(file)
--- a/
src/key.cpp
+++ b/
src/key.cpp
@@
-521,7
+521,7
@@
bool CPubKey::Verify(const uint256 &hash, const std::vector<unsigned char>& 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);