MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetEvenCorrespondingCPubKey

Method GetEvenCorrespondingCPubKey

src/pubkey.cpp:223–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223CPubKey XOnlyPubKey::GetEvenCorrespondingCPubKey() const
224{
225 unsigned char full_key[CPubKey::COMPRESSED_SIZE] = {0x02};
226 std::copy(begin(), end(), full_key + 1);
227 return CPubKey{full_key};
228}
229
230bool XOnlyPubKey::IsFullyValid() const
231{

Callers 5

BOOST_AUTO_TEST_CASEFunction · 0.80
InferXOnlyPubkeyFunction · 0.80
GetPubKeyFunction · 0.80
FromPKBytesMethod · 0.80
FromPKBytesMethod · 0.80

Calls 2

beginFunction · 0.85
endFunction · 0.85

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.64
FromPKBytesMethod · 0.64
FromPKBytesMethod · 0.64