MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / KeyData

Method KeyData

src/test/script_tests.cpp:221–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219 CPubKey pubkey2, pubkey2C;
220
221 KeyData()
222 {
223
224 key0.Set(vchKey0, vchKey0 + 32, false);
225 key0C.Set(vchKey0, vchKey0 + 32, true);
226 pubkey0 = key0.GetPubKey();
227 pubkey0H = key0.GetPubKey();
228 pubkey0C = key0C.GetPubKey();
229 *const_cast<unsigned char*>(&pubkey0H[0]) = 0x06 | (pubkey0H[64] & 1);
230
231 key1.Set(vchKey1, vchKey1 + 32, false);
232 key1C.Set(vchKey1, vchKey1 + 32, true);
233 pubkey1 = key1.GetPubKey();
234 pubkey1C = key1C.GetPubKey();
235
236 key2.Set(vchKey2, vchKey2 + 32, false);
237 key2C.Set(vchKey2, vchKey2 + 32, true);
238 pubkey2 = key2.GetPubKey();
239 pubkey2C = key2C.GetPubKey();
240 }
241};
242
243

Callers

nothing calls this directly

Calls 2

SetMethod · 0.45
GetPubKeyMethod · 0.45

Tested by

no test coverage detected