Browse Source
Remove unused GetKeyID and IsScript methods from CBitcoinAddress
pull/4/head
João Barbosa
7 years ago
committed by
Jack Grigg
No known key found for this signature in database
GPG Key ID: 665DBCD284F7DAFF
1 changed files with
0 additions and
17 deletions
-
src/base58.cpp
|
|
@ -228,8 +228,6 @@ public: |
|
|
|
CBitcoinAddress(const char* pszAddress) { SetString(pszAddress); } |
|
|
|
|
|
|
|
CTxDestination Get() const; |
|
|
|
bool GetKeyID(CKeyID &keyID) const; |
|
|
|
bool IsScript() const; |
|
|
|
}; |
|
|
|
|
|
|
|
class CBitcoinAddressVisitor : public boost::static_visitor<bool> |
|
|
@ -301,21 +299,6 @@ CTxDestination CBitcoinAddress::Get() const |
|
|
|
return CNoDestination(); |
|
|
|
} |
|
|
|
|
|
|
|
bool CBitcoinAddress::GetKeyID(CKeyID& keyID) const |
|
|
|
{ |
|
|
|
if (!IsValid() || vchVersion != Params().Base58Prefix(CChainParams::PUBKEY_ADDRESS)) |
|
|
|
return false; |
|
|
|
uint160 id; |
|
|
|
memcpy(&id, vchData.data(), 20); |
|
|
|
keyID = CKeyID(id); |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
bool CBitcoinAddress::IsScript() const |
|
|
|
{ |
|
|
|
return IsValid() && vchVersion == Params().Base58Prefix(CChainParams::SCRIPT_ADDRESS); |
|
|
|
} |
|
|
|
|
|
|
|
void CBitcoinSecret::SetKey(const CKey& vchSecret) |
|
|
|
{ |
|
|
|
assert(vchSecret.IsValid()); |
|
|
|