Changeset View
Changeset View
Standalone View
Standalone View
src/keystore.cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "keystore.h" | #include <keystore.h> | ||||
#include "key.h" | #include <key.h> | ||||
#include "pubkey.h" | #include <pubkey.h> | ||||
#include "util.h" | #include <util.h> | ||||
bool CKeyStore::AddKey(const CKey &key) { | bool CKeyStore::AddKey(const CKey &key) { | ||||
return AddKeyPubKey(key, key.GetPubKey()); | return AddKeyPubKey(key, key.GetPubKey()); | ||||
} | } | ||||
bool CBasicKeyStore::GetPubKey(const CKeyID &address, | bool CBasicKeyStore::GetPubKey(const CKeyID &address, | ||||
CPubKey &vchPubKeyOut) const { | CPubKey &vchPubKeyOut) const { | ||||
CKey key; | CKey key; | ||||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |