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

Method isSegwitMarker

src/scripts/nulldata_script.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 }
26
27 bool ScriptAddress<AddressType::NULL_DATA>::isSegwitMarker() const {
28 auto data = getData();
29 uint32_t startVal;
30 std::memcpy(&startVal, data.c_str(), sizeof(startVal));
31 return startVal == 0xaa21a9ed;
32 }
33} // namespace blocksci

Callers 1

isSegwitMarkerFunction · 0.80

Calls 1

getDataFunction · 0.50

Tested by

no test coverage detected