aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2019-06-05 20:37:12 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2019-06-05 20:37:12 +0800
commit4ca248a61d99fcc76742b67f73365e8d568b30dc (patch)
treebfd2cf55a0a69142b003ea47e8b300b9c1b2f7b1
parent5acb601b2ddc828a35753986c64b88a803a27407 (diff)
downloadtangerine-bls-4ca248a61d99fcc76742b67f73365e8d568b30dc.tar.gz
tangerine-bls-4ca248a61d99fcc76742b67f73365e8d568b30dc.tar.zst
tangerine-bls-4ca248a61d99fcc76742b67f73365e8d568b30dc.zip
[doc] how to init by C
-rw-r--r--readme.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/readme.md b/readme.md
index f705f4a..1eeb888 100644
--- a/readme.md
+++ b/readme.md
@@ -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();
```