Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F12945023
D3380.id9622.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
829 B
Subscribers
None
D3380.id9622.diff
View Options
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
Details
Attached
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)
Attached To
D3380: Merge #12250: Make CKey::Load references const
Event Timeline
Log In to Comment