aboutsummaryrefslogtreecommitdiffstats
path: root/include/bls/bls.h
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-08-13 11:54:24 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-08-13 11:54:24 +0800
commit56dd66510ebc611f8befbd5b22cb061616756491 (patch)
treef04653e9d0de94027b30909e13d6de7aa144bbd8 /include/bls/bls.h
parent9feb40dbffe802f69c21656e7bbc8bf3063b4c4d (diff)
downloaddexon-bls-56dd66510ebc611f8befbd5b22cb061616756491.tar
dexon-bls-56dd66510ebc611f8befbd5b22cb061616756491.tar.gz
dexon-bls-56dd66510ebc611f8befbd5b22cb061616756491.tar.bz2
dexon-bls-56dd66510ebc611f8befbd5b22cb061616756491.tar.lz
dexon-bls-56dd66510ebc611f8befbd5b22cb061616756491.tar.xz
dexon-bls-56dd66510ebc611f8befbd5b22cb061616756491.tar.zst
dexon-bls-56dd66510ebc611f8befbd5b22cb061616756491.zip
add bls api for getFrByteSize and getG1ByteSize
Diffstat (limited to 'include/bls/bls.h')
-rw-r--r--include/bls/bls.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/bls/bls.h b/include/bls/bls.h
index 98d05d5..3e2e719 100644
--- a/include/bls/bls.h
+++ b/include/bls/bls.h
@@ -118,6 +118,12 @@ BLS_DLL_API mclSize blsGetOpUnitSize(void);
BLS_DLL_API int blsGetCurveOrder(char *buf, mclSize maxBufSize);
BLS_DLL_API int blsGetFieldOrder(char *buf, mclSize maxBufSize);
+// return bytes for serialized G1(=Fp)
+BLS_DLL_API int blsGetG1ByteSize(void);
+
+// return bytes for serialized Fr
+BLS_DLL_API int blsGetFrByteSize(void);
+
// get a generator of G2
BLS_DLL_API void blsGetGeneratorOfG2(blsPublicKey *pub);