From a80959e765f514091d3ccfe256bb540a11522f67 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Sat, 5 Jan 2019 16:07:43 +0900 Subject: add blsVerifyPairing --- include/bls/bls.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/bls') diff --git a/include/bls/bls.h b/include/bls/bls.h index b2c06f2..39cbf40 100644 --- a/include/bls/bls.h +++ b/include/bls/bls.h @@ -141,6 +141,15 @@ BLS_DLL_API int blsPublicKeyIsValidOrder(const blsPublicKey *pub); #ifndef BLS_MINIMUM_API +/* + verify X == sY by checking e(X, sQ) = e(Y, Q) + @param X [in] + @param Y [in] + @param pub [in] pub = sQ + @return 1 if e(X, pub) = e(Y, Q) else 0 +*/ +BLS_DLL_API int blsVerifyPairing(const blsSignature *X, const blsSignature *Y, const blsPublicKey *pub); + /* sign the hash use the low (bitSize of r) - 1 bit of h -- cgit v1.2.3