aboutsummaryrefslogtreecommitdiff
path: root/src/pubkey.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-12-12 11:16:55 +0100
committerWladimir J. van der Laan <[email protected]>2014-12-12 11:17:23 +0100
commit6f2ee04f75e72e556229500ddec9276c50cde049 (patch)
tree572b861ce76659a8e5ddc0683bd3afbf192d1f6e /src/pubkey.cpp
parentMerge pull request #5440 (diff)
parentUpdate Bitcoin for libsecp256k1 API change (diff)
downloaddiscoin-6f2ee04f75e72e556229500ddec9276c50cde049.tar.xz
discoin-6f2ee04f75e72e556229500ddec9276c50cde049.zip
Merge pull request #5457
830ee48 Update Bitcoin for libsecp256k1 API change (Pieter Wuille) ecae2ac Squashed 'src/secp256k1/' changes from b0210a9..bccaf86 (Pieter Wuille)
Diffstat (limited to 'src/pubkey.cpp')
-rw-r--r--src/pubkey.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pubkey.cpp b/src/pubkey.cpp
index 91979ff4d..80bbac920 100644
--- a/src/pubkey.cpp
+++ b/src/pubkey.cpp
@@ -16,7 +16,7 @@ bool CPubKey::Verify(const uint256 &hash, const std::vector<unsigned char>& vchS
if (!IsValid())
return false;
#ifdef USE_SECP256K1
- if (secp256k1_ecdsa_verify((const unsigned char*)&hash, 32, &vchSig[0], vchSig.size(), begin(), size()) != 1)
+ if (secp256k1_ecdsa_verify((const unsigned char*)&hash, &vchSig[0], vchSig.size(), begin(), size()) != 1)
return false;
#else
CECKey key;
@@ -35,7 +35,7 @@ bool CPubKey::RecoverCompact(const uint256 &hash, const std::vector<unsigned cha
bool fComp = ((vchSig[0] - 27) & 4) != 0;
#ifdef USE_SECP256K1
int pubkeylen = 65;
- if (!secp256k1_ecdsa_recover_compact((const unsigned char*)&hash, 32, &vchSig[1], (unsigned char*)begin(), &pubkeylen, fComp, recid))
+ if (!secp256k1_ecdsa_recover_compact((const unsigned char*)&hash, &vchSig[1], (unsigned char*)begin(), &pubkeylen, fComp, recid))
return false;
assert((int)size() == pubkeylen);
#else