From 323c2e718a997fd05a87d52efa29431d4827f251 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Mon, 12 Jun 2017 05:01:50 +0900 Subject: add blsGetGeneratorOfG2 --- src/bls_c.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/bls_c.cpp b/src/bls_c.cpp index a6c24e2..4bac71d 100644 --- a/src/bls_c.cpp +++ b/src/bls_c.cpp @@ -712,6 +712,10 @@ int blsGetFieldOrder(char *buf, size_t maxBufSize) return 0; } +void blsGetGeneratorOfG2(blsPublicKey *pub) +{ + *(G2*)pub = bls2::getQ(); +} void blsGetPublicKey(blsPublicKey *pub, const blsSecretKey *sec) { -- cgit v1.2.3