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

Method ComputeEntrySchnorr

src/script/sigcache.cpp:45–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void SignatureCache::ComputeEntrySchnorr(uint256& entry, const uint256& hash, std::span<const unsigned char> sig, const XOnlyPubKey& pubkey) const
46{
47 CSHA256 hasher = m_salted_hasher_schnorr;
48 hasher.Write(hash.begin(), 32).Write(pubkey.data(), pubkey.size()).Write(sig.data(), sig.size()).Finalize(entry.begin());
49}
50
51bool SignatureCache::Get(const uint256& entry, const bool erase)
52{

Callers 1

Calls 5

FinalizeMethod · 0.45
WriteMethod · 0.45
beginMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected