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

Method GetCPubKeys

src/pubkey.cpp:200–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198};
199
200std::vector<CPubKey> XOnlyPubKey::GetCPubKeys() const
201{
202 std::vector<CPubKey> out;
203 unsigned char b[33] = {0x02};
204 std::copy(m_keydata.begin(), m_keydata.end(), b + 1);
205 CPubKey fullpubkey;
206 fullpubkey.Set(b, b + 33);
207 out.push_back(fullpubkey);
208 b[0] = 0x03;
209 fullpubkey.Set(b, b + 33);
210 out.push_back(fullpubkey);
211 return out;
212}
213
214std::vector<CKeyID> XOnlyPubKey::GetKeyIDs() const
215{

Callers 1

SignMuSig2Function · 0.80

Calls 4

beginMethod · 0.45
endMethod · 0.45
SetMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected