Page MenuHomePhabricator

D3380.id9622.diff
No OneTemporary

D3380.id9622.diff

diff --git a/src/key.h b/src/key.h
--- a/src/key.h
+++ b/src/key.h
@@ -142,7 +142,8 @@
bool VerifyPubKey(const CPubKey &vchPubKey) const;
//! Load private key and check that public key matches.
- bool Load(CPrivKey &privkey, CPubKey &vchPubKey, bool fSkipCheck);
+ bool Load(const CPrivKey &privkey, const CPubKey &vchPubKey,
+ bool fSkipCheck);
};
struct CExtKey {
diff --git a/src/key.cpp b/src/key.cpp
--- a/src/key.cpp
+++ b/src/key.cpp
@@ -259,7 +259,7 @@
return true;
}
-bool CKey::Load(CPrivKey &privkey, CPubKey &vchPubKey,
+bool CKey::Load(const CPrivKey &privkey, const CPubKey &vchPubKey,
bool fSkipCheck = false) {
if (!ec_privkey_import_der(secp256k1_context_sign, (uint8_t *)begin(),
privkey.data(), privkey.size()))

File Metadata

Mime Type
text/plain
Expires
Thu, Feb 6, 17:12 (21 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5082757
Default Alt Text
D3380.id9622.diff (829 B)

Event Timeline