diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2019-01-05 15:07:43 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2019-01-05 15:07:43 +0800 |
commit | a80959e765f514091d3ccfe256bb540a11522f67 (patch) | |
tree | 4494ce4bf98a901af1fe798debdd77ee2fc044a2 /include/bls | |
parent | 7535cfacbe29215487dd02ad1386826d881d7477 (diff) | |
download | dexon-bls-a80959e765f514091d3ccfe256bb540a11522f67.tar dexon-bls-a80959e765f514091d3ccfe256bb540a11522f67.tar.gz dexon-bls-a80959e765f514091d3ccfe256bb540a11522f67.tar.bz2 dexon-bls-a80959e765f514091d3ccfe256bb540a11522f67.tar.lz dexon-bls-a80959e765f514091d3ccfe256bb540a11522f67.tar.xz dexon-bls-a80959e765f514091d3ccfe256bb540a11522f67.tar.zst dexon-bls-a80959e765f514091d3ccfe256bb540a11522f67.zip |
add blsVerifyPairing
Diffstat (limited to 'include/bls')
-rw-r--r-- | include/bls/bls.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ -142,6 +142,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 return 0 if success else -1 |