mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
remove CPubKey::VerifyCompact( ) which is never used
This commit is contained in:
parent
28b6c1def5
commit
f40dbeedde
2 changed files with 0 additions and 19 deletions
15
src/key.cpp
15
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue