MCPcopy Create free account
hub / github.com/ElementsProject/elements / ComputeEntryECDSA

Method ComputeEntryECDSA

src/script/sigcache.cpp:60–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 void
61 ComputeEntryECDSA(uint256& entry, const uint256 &hash, const std::vector<unsigned char>& vchSig, const CPubKey& pubkey) const
62 {
63 CSHA256 hasher = m_salted_hasher_ecdsa;
64 hasher.Write(hash.begin(), 32).Write(pubkey.data(), pubkey.size()).Write(vchSig.data(), vchSig.size()).Finalize(entry.begin());
65 }
66
67 void
68 ComputeEntrySchnorr(uint256& entry, const uint256 &hash, Span<const unsigned char> sig, const XOnlyPubKey& pubkey) const

Callers 1

VerifyECDSASignatureMethod · 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