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

Method KeyData

src/test/script_tests.cpp:263–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261 CPubKey pubkey2, pubkey2C;
262
263 KeyData()
264 {
265 key0.Set(vchKey0, vchKey0 + 32, false);
266 key0C.Set(vchKey0, vchKey0 + 32, true);
267 pubkey0 = key0.GetPubKey();
268 pubkey0H = key0.GetPubKey();
269 pubkey0C = key0C.GetPubKey();
270 *const_cast<unsigned char*>(pubkey0H.data()) = 0x06 | (pubkey0H[64] & 1);
271
272 key1.Set(vchKey1, vchKey1 + 32, false);
273 key1C.Set(vchKey1, vchKey1 + 32, true);
274 pubkey1 = key1.GetPubKey();
275 pubkey1C = key1C.GetPubKey();
276
277 key2.Set(vchKey2, vchKey2 + 32, false);
278 key2C.Set(vchKey2, vchKey2 + 32, true);
279 pubkey2 = key2.GetPubKey();
280 pubkey2C = key2C.GetPubKey();
281 }
282};
283
284enum class WitnessMode {

Callers

nothing calls this directly

Calls 3

SetMethod · 0.45
GetPubKeyMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected