| 263 | } |
| 264 | |
| 265 | bool CBitcoinAddress::GetKeyID(CKeyID& keyID) const |
| 266 | { |
| 267 | if (!IsValid() || vchVersion != Params().Base58Prefix(CChainParams::PUBKEY_ADDRESS)) |
| 268 | return false; |
| 269 | uint160 id; |
| 270 | memcpy(&id, &vchData[0], 20); |
| 271 | keyID = CKeyID(id); |
| 272 | return true; |
| 273 | } |
| 274 | |
| 275 | bool CBitcoinAddress::IsScript() const |
| 276 | { |
no test coverage detected