diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-25 16:11:39 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-25 16:19:54 +0200 |
commit | 0f1040ba5213bde402e8ac9c1e4da91ca319c9de (patch) | |
tree | ac50062f0b1a6a328e96e5280b725f832271945d /src/key.cpp | |
parent | 526711503a7ad4de6d2e569d0c35a1cd6654e742 (diff) | |
parent | f40dbeedde3a6a73c13b0241258cf23248db1de1 (diff) | |
download | bitcoin-0f1040ba5213bde402e8ac9c1e4da91ca319c9de.tar.xz |
Merge pull request #4183
f40dbee remove CPubKey::VerifyCompact( ) which is never used (Kamil Domanski)
28b6c1d remove GetMedianTime( ) which is never used (Kamil Domanski)
5bd4adc remove LookupHostNumeric( ) which is never used (Kamil Domanski)
595f691 remove LogException( ) which is never used (Kamil Domanski)
f4057cb remove CTransaction::IsNewerThan which is never used (Kamil Domanski)
0e31e56 remove CWallet::AddReserveKey which is never used (Kamil Domanski)
Diffstat (limited to 'src/key.cpp')
-rw-r--r-- | src/key.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/key.cpp b/src/key.cpp index 2199996cf3..aa24f0a622 100644 --- a/src/key.cpp +++ b/src/key.cpp @@ -485,21 +485,6 @@ bool CPubKey::RecoverCompact(const uint256 &hash, const std::vector<unsigned cha return true; } -bool CPubKey::VerifyCompact(const uint256 &hash, const std::vector<unsigned char>& vchSig) const { - if (!IsValid()) - return false; - if (vchSig.size() != 65) - return false; - CECKey key; - if (!key.Recover(hash, &vchSig[1], (vchSig[0] - 27) & ~4)) - return false; - CPubKey pubkeyRec; - key.GetPubKey(pubkeyRec, IsCompressed()); - if (*this != pubkeyRec) - return false; - return true; -} - bool CPubKey::IsFullyValid() const { if (!IsValid()) return false; |