| 33 | } |
| 34 | |
| 35 | uint160 ScriptHashBase::getUint160Address() const { |
| 36 | auto backing = getBackingData(); |
| 37 | if (backing->isSegwit) { |
| 38 | return ripemd160(reinterpret_cast<const char *>(&backing->hash256), sizeof(backing->hash256)); |
| 39 | } else { |
| 40 | return backing->hash160; |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | ScriptHash::ScriptAddress(uint32_t addressNum_, DataAccess &access_) : ScriptAddress(addressNum_, access_.getScripts().getScriptData<dedupType(addressType)>(addressNum_), access_) {} |
| 45 |
nothing calls this directly
no test coverage detected