diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2011-07-03 15:33:01 +0200 |
---|---|---|
committer | Matt Corallo <matt@bluematt.me> | 2011-07-13 02:11:25 +0200 |
commit | 0efda1a79eab6dd2e101edc615c6dd14138c31a2 (patch) | |
tree | 948076f3e360c60969f298edc0e08bd74146b616 /src/key.h | |
parent | b6b039d84ed3d1616cb97ee45ff24ec343efbed0 (diff) |
Do not use obsolete CPrivKey for passing keys around
Diffstat (limited to 'src/key.h')
-rw-r--r-- | src/key.h | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -220,22 +220,6 @@ public: return false; return true; } - - static bool Sign(const CPrivKey& vchPrivKey, uint256 hash, std::vector<unsigned char>& vchSig) - { - CKey key; - if (!key.SetPrivKey(vchPrivKey)) - return false; - return key.Sign(hash, vchSig); - } - - static bool Verify(const std::vector<unsigned char>& vchPubKey, uint256 hash, const std::vector<unsigned char>& vchSig) - { - CKey key; - if (!key.SetPubKey(vchPubKey)) - return false; - return key.Verify(hash, vchSig); - } }; #endif |