mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
Remove unused GetKeyID and IsScript methods from CBitcoinAddress
This commit is contained in:
parent
bcc8a620ea
commit
8d0041e607
@ -232,8 +232,6 @@ public:
|
|||||||
CBitcoinAddress(const char* pszAddress) { SetString(pszAddress); }
|
CBitcoinAddress(const char* pszAddress) { SetString(pszAddress); }
|
||||||
|
|
||||||
CTxDestination Get() const;
|
CTxDestination Get() const;
|
||||||
bool GetKeyID(CKeyID &keyID) const;
|
|
||||||
bool IsScript() const;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class CBitcoinAddressVisitor : public boost::static_visitor<bool>
|
class CBitcoinAddressVisitor : public boost::static_visitor<bool>
|
||||||
@ -295,21 +293,6 @@ CTxDestination CBitcoinAddress::Get() const
|
|||||||
return CNoDestination();
|
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)
|
void CBitcoinSecret::SetKey(const CKey& vchSecret)
|
||||||
{
|
{
|
||||||
assert(vchSecret.IsValid());
|
assert(vchSecret.IsValid());
|
||||||
|
Loading…
Reference in New Issue
Block a user