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

Method ComputeEntry

src/script/sigcache.cpp:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 void
39 ComputeEntry(uint256& entry, const uint256 &hash, const std::vector<unsigned char>& vchSig, const CPubKey& pubkey)
40 {
41 CSHA256().Write(nonce.begin(), 32).Write(hash.begin(), 32).Write(&pubkey[0], pubkey.size()).Write(&vchSig[0], vchSig.size()).Finalize(entry.begin());
42 }
43
44 bool
45 Get(const uint256& entry, const bool erase)

Callers 1

VerifySignatureMethod · 0.80

Calls 5

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

Tested by

no test coverage detected