diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2017-03-28 08:40:16 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2017-04-26 21:20:02 +0200 |
commit | b51aaf1c42d9936ddbe8ec48a0d9b675221ab7ba (patch) | |
tree | 97be0a701731d6c02e528c95b5023dbafc69d527 /src/key.cpp | |
parent | 95f5e44075028d86ac35839696a0df51792a4f04 (diff) |
Remove unused C++ code not covered by unit tests
Diffstat (limited to 'src/key.cpp')
-rw-r--r-- | src/key.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/key.cpp b/src/key.cpp index b4f0dc8202..5a75647f1a 100644 --- a/src/key.cpp +++ b/src/key.cpp @@ -131,14 +131,6 @@ void CKey::MakeNewKey(bool fCompressedIn) { fCompressed = fCompressedIn; } -bool CKey::SetPrivKey(const CPrivKey &privkey, bool fCompressedIn) { - if (!ec_privkey_import_der(secp256k1_context_sign, (unsigned char*)begin(), &privkey[0], privkey.size())) - return false; - fCompressed = fCompressedIn; - fValid = true; - return true; -} - CPrivKey CKey::GetPrivKey() const { assert(fValid); CPrivKey privkey; |