diff options
author | Kamil Domanski <kdomanski@kdemail.net> | 2014-05-13 21:41:51 +0200 |
---|---|---|
committer | Kamil Domanski <kdomanski@kdemail.net> | 2014-05-20 14:58:21 +0200 |
commit | f40dbeedde3a6a73c13b0241258cf23248db1de1 (patch) | |
tree | c2416ba8bb0c00d1c5fac3f81c372e6a093e4f04 /src | |
parent | 28b6c1def57360ca5a05745faafaec53910f5e88 (diff) |
remove CPubKey::VerifyCompact( ) which is never used
Diffstat (limited to 'src')
-rw-r--r-- | src/key.cpp | 15 | ||||
-rw-r--r-- | src/key.h | 4 |
2 files changed, 0 insertions, 19 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; @@ -156,10 +156,6 @@ public: // If this public key is not fully valid, the return value will be false. bool Verify(const uint256 &hash, const std::vector<unsigned char>& vchSig) const; - // Verify a compact signature (~65 bytes). - // See CKey::SignCompact. - bool VerifyCompact(const uint256 &hash, const std::vector<unsigned char>& vchSig) const; - // Recover a public key from a compact signature. bool RecoverCompact(const uint256 &hash, const std::vector<unsigned char>& vchSig); |