MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / DescriptorID

Function DescriptorID

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

Source from the content-addressed store, hash-verified

2983}
2984
2985uint256 DescriptorID(const Descriptor& desc)
2986{
2987 std::string desc_str = desc.ToString(/*compat_format=*/true);
2988 uint256 id;
2989 CSHA256().Write((unsigned char*)desc_str.data(), desc_str.size()).Finalize(id.begin());
2990 return id;
2991}
2992
2993void DescriptorCache::CacheParentExtPubKey(uint32_t key_exp_pos, const CExtPubKey& xpub)
2994{

Callers 4

DeserializeDescriptorMethod · 0.85
WalletDescriptorMethod · 0.85
createwalletdescriptorFunction · 0.85
DoCheckFunction · 0.85

Calls 7

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

Tested by 1

DoCheckFunction · 0.68