//////////////////////////////////////////////////// // lux
| 303 | |
| 304 | ///////////////////////////////////////////////////////// // lux |
| 305 | bool CScript::IsPayToPubkey() const |
| 306 | { |
| 307 | if (this->size() == 35 && (*this)[0] == 33 && (*this)[34] == OP_CHECKSIG |
| 308 | && ((*this)[1] == 0x02 || (*this)[1] == 0x03)) { |
| 309 | return true; |
| 310 | } |
| 311 | if (this->size() == 67 && (*this)[0] == 65 && (*this)[66] == OP_CHECKSIG |
| 312 | && (*this)[1] == 0x04) { |
| 313 | return true; |
| 314 | } |
| 315 | return false; |
| 316 | } |
| 317 | |
| 318 | bool CScript::IsPayToPubkeyHash() const |
| 319 | { |
no test coverage detected