MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / ComputeEntry

Method ComputeEntry

src/script/sigcache.cpp:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void SignatureCache::ComputeEntry(uint256 &entry, const uint256 &hash,
36 const std::vector<uint8_t> &vchSig,
37 const CPubKey &pubkey) const {
38 CSHA256 hasher = m_salted_hasher;
39 hasher.Write(hash.begin(), 32)
40 .Write(pubkey.data(), pubkey.size())
41 .Write(vchSig.data(), vchSig.size())
42 .Finalize(entry.begin());
43}
44
45bool SignatureCache::Get(const uint256 &entry, const bool erase) {
46 std::shared_lock<std::shared_mutex> lock(cs_sigcache);

Callers 1

RunMemoizedCheckFunction · 0.80

Calls 5

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

Tested by

no test coverage detected