MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / WitnessV0ScriptHash

Method WitnessV0ScriptHash

src/script/standard.cpp:22–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20CScriptID::CScriptID(const CScript& in) : uint160(Hash160(in.begin(), in.end())) {}
21
22WitnessV0ScriptHash::WitnessV0ScriptHash(const CScript& in)
23{
24 CSHA256().Write(in.data(), in.size()).Finalize(begin());
25}
26
27const char* GetTxnOutputType(txnouttype t)
28{

Callers

nothing calls this directly

Calls 5

CSHA256Class · 0.85
FinalizeMethod · 0.45
WriteMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected