MCPcopy Create free account
hub / github.com/bcndev/bytecoin / test_get_H

Function test_get_H

tests/crypto/test_crypto.cpp:316–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316PublicKey test_get_H() {
317 PublicKey g = get_G();
318 Hash hash = cn_fast_hash(g.data, sizeof(g.data));
319 PublicKey hash_as_pk;
320 memcpy(hash_as_pk.data, hash.data, 32); // reintrepret hash as a point :)
321 // return hash_as_pk;//to_bytes(bytes_to_bad_point_p3(hash));
322 return to_bytes(P3(hash_as_pk).mul8());
323}
324
325// FIXME
326

Callers

nothing calls this directly

Calls 5

get_GFunction · 0.85
cn_fast_hashFunction · 0.85
to_bytesFunction · 0.85
P3Class · 0.85
mul8Method · 0.80

Tested by

no test coverage detected