aboutsummaryrefslogtreecommitdiff
path: root/src/key.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2011-07-03 15:33:01 +0200
committerMatt Corallo <matt@bluematt.me>2011-07-13 02:11:25 +0200
commit0efda1a79eab6dd2e101edc615c6dd14138c31a2 (patch)
tree948076f3e360c60969f298edc0e08bd74146b616 /src/key.h
parentb6b039d84ed3d1616cb97ee45ff24ec343efbed0 (diff)
Do not use obsolete CPrivKey for passing keys around
Diffstat (limited to 'src/key.h')
-rw-r--r--src/key.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/key.h b/src/key.h
index c0fce18bf3..c43e4ee235 100644
--- a/src/key.h
+++ b/src/key.h
@@ -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