MCPcopy Create free account
hub / github.com/LUX-Core/lux / ComputeEntry

Method ComputeEntry

src/script/sigcache.cpp:73–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 }
72
73 void
74 ComputeEntry(uint256& entry, const uint256 &hash, const std::vector<unsigned char>& vchSig, const CPubKey& pubkey, uint32_t flags)
75 {
76 flags &= ~INVARIANT_FLAGS;
77 CSHA256().Write(nonce.begin(), 32).Write(reinterpret_cast<uint8_t *>(&flags), sizeof(flags)).Write(hash.begin(), 32).Write(&pubkey[0], pubkey.size()).Write(&vchSig[0], vchSig.size()).Finalize(entry.begin());
78 }
79
80 bool
81 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