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

Function P2PKGetScript

src/script/descriptor.cpp:232–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230
231CScript P2PKHGetScript(const CPubKey& pubkey) { return GetScriptForDestination(pubkey.GetID()); }
232CScript P2PKGetScript(const CPubKey& pubkey) { return GetScriptForRawPubKey(pubkey); }
233CScript P2WPKHGetScript(const CPubKey& pubkey) { return GetScriptForDestination(WitnessV0KeyHash(pubkey.GetID())); }
234
235/** A parsed multi(...) descriptor. */

Callers

nothing calls this directly

Calls 1

GetScriptForRawPubKeyFunction · 0.85

Tested by

no test coverage detected