Implement signature verification in CheckTransaction

This commit is contained in:
Taylor Hornby
2016-05-26 16:31:18 -06:00
parent ed6c1b5d15
commit a138f81404
4 changed files with 26 additions and 12 deletions

View File

@@ -251,13 +251,12 @@ public:
return hash;
}
// TODO: implement this to verify the shorter kind of signature
// TODO: make sure to check the s value thing etc.
// TODO: this used to have "const" at the end, what does that mean??
bool Verify(const uint256& hash, const std::vector<unsigned char>& vchSig)
bool Verify(const uint256& hash, const std::vector<unsigned char>& vchSig) const
{
// TODO implement signature verification.
return false;
// TODO: make sure to check the s < 0xffff.... value thing etc.
// TODO: use compact signatures (maybe just use the secp256k1 API
// instead of these classes).
return pubKey.Verify(hash, vchSig);
}
};