aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-03-08 03:43:15 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-03-08 03:43:15 +0800
commit598fcc6ebaddac6795fcdcf17b768fc30fea48d3 (patch)
tree7e794927869b991b40d340cc1ec5224e30eb2201
parent53e4bf42b009276fd50a4b2dcfb17132f63aa08c (diff)
downloaddexon-mcl-598fcc6ebaddac6795fcdcf17b768fc30fea48d3.tar.gz
dexon-mcl-598fcc6ebaddac6795fcdcf17b768fc30fea48d3.tar.zst
dexon-mcl-598fcc6ebaddac6795fcdcf17b768fc30fea48d3.zip
fix typo of doc
-rw-r--r--readme.md21
1 files changed, 11 insertions, 10 deletions
diff --git a/readme.md b/readme.md
index a7dec35..d46b468 100644
--- a/readme.md
+++ b/readme.md
@@ -114,21 +114,22 @@ mcl::bn256::BN::pairing(e, P, Q);
See [test/bn_test.cpp](https://github.com/herumi/mcl/blob/master/test/bn_test.cpp).
-## string format of G1 and G2
+## String format of G1 and G2
G1 and G2 have three elements of Fp (x, y, z) for Jacobi coordinate.
-normalize() method normalize it to affine coordinate (x, y, 1) or (0, 0, 0).
+normalize() method normalizes it to affine coordinate (x, y, 1) or (0, 0, 0).
G1::setCompressedExpression(bool) sets whether uncompressed(false) or compressed(true) format.
+
getStr() method gets
-* "0" ; infinity
-* "1 <x> <y>" ; not compressed format
-* "2 <x>" ; compressed format for even y
-* "3 <x>" ; compressed format for odd y
+* `0` ; infinity
+* `1 <x> <y>` ; not compressed format
+* `2 <x>` ; compressed format for even y
+* `3 <x>` ; compressed format for odd y
-## verify an element in G2
-`G2::isValid()` check that the element is in the curve of G2 and the order of it is r.
-`G2::set()`, `G2::setStr`, `operator<<` also check the order.
-If you check it out of the library, then you can stop it by calling `G2::setOrder(0)`.
+## Verify an element in G2
+`G2::isValid()` checks that the element is in the curve of G2 and the order of it is r.
+`G2::set()`, `G2::setStr` and `operator<<` also check the order.
+If you check it out of the library, then you can stop the verification by calling `G2::setOrder(0)`.
# Benchmark