MCPcopy Create free account
hub / github.com/citp/BlockSci / getUint160Address

Method getUint160Address

src/scripts/scripthash_script.cpp:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

ripemd160Function · 0.85
getBackingDataFunction · 0.50

Tested by

no test coverage detected