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

Method KeyData

src/test/script_tests.cpp:251–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249 CPubKey pubkey2, pubkey2C;
250
251 KeyData()
252 {
253
254 key0.Set(vchKey0, vchKey0 + 32, false);
255 key0C.Set(vchKey0, vchKey0 + 32, true);
256 pubkey0 = key0.GetPubKey();
257 pubkey0H = key0.GetPubKey();
258 pubkey0C = key0C.GetPubKey();
259 *const_cast<unsigned char*>(&pubkey0H[0]) = 0x06 | (pubkey0H[64] & 1);
260
261 key1.Set(vchKey1, vchKey1 + 32, false);
262 key1C.Set(vchKey1, vchKey1 + 32, true);
263 pubkey1 = key1.GetPubKey();
264 pubkey1C = key1C.GetPubKey();
265
266 key2.Set(vchKey2, vchKey2 + 32, false);
267 key2C.Set(vchKey2, vchKey2 + 32, true);
268 pubkey2 = key2.GetPubKey();
269 pubkey2C = key2C.GetPubKey();
270 }
271};
272
273enum class WitnessMode {

Callers

nothing calls this directly

Calls 2

SetMethod · 0.45
GetPubKeyMethod · 0.45

Tested by

no test coverage detected