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

Method ComputeEntry

src/sigcache.cpp:9–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include "sigcache.h"
8
9void CSignatureCache::ComputeEntry(uint256& entry, const uint256& sigHash,
10 const std::vector<unsigned char>& vchSig,
11 const CPubKey& pubKey) {
12 CSHA256()
13 .Write(sigHash.begin(), 32)
14 .Write(&pubKey[0], pubKey.size())
15 .Write(&vchSig[0], vchSig.size())
16 .Finalize(entry.begin());
17}
18
19bool CSignatureCache::Get(const uint256& sigHash, const std::vector<unsigned char>& vchSig,
20 const CPubKey& pubKey) {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected