diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2019-06-05 20:37:12 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2019-06-05 20:37:12 +0800 |
commit | 4ca248a61d99fcc76742b67f73365e8d568b30dc (patch) | |
tree | bfd2cf55a0a69142b003ea47e8b300b9c1b2f7b1 | |
parent | 5acb601b2ddc828a35753986c64b88a803a27407 (diff) | |
download | tangerine-bls-4ca248a61d99fcc76742b67f73365e8d568b30dc.tar.gz tangerine-bls-4ca248a61d99fcc76742b67f73365e8d568b30dc.tar.zst tangerine-bls-4ca248a61d99fcc76742b67f73365e8d568b30dc.zip |
[doc] how to init by C
-rw-r--r-- | readme.md | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -116,6 +116,18 @@ s H(m) in G1; signature of m verify ; e(sQ, H(m)) = e(Q, s H(m)) ``` +### C + +``` +blsInit(MCL_BLS12_381, MCLBN_COMPILED_TIME_VAR); // use BLS12-381 +blsSignatureVerifyOrder(0); // disable to check the order of a point in deserializing +blsPublicKeyVerifyOrder(0); +blsSetETHserialization(1); // obey ETH serialization + +``` + +### C++ + ``` void bls::init(); ``` |