MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / KeyData

Method KeyData

src/test/script_tests.cpp:222–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

SetMethod · 0.45
GetPubKeyMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected