| 314 | } |
| 315 | |
| 316 | PublicKey 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 |
nothing calls this directly
no test coverage detected