Skip to content

Commit

Permalink
fix Fp1 to Fp
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed May 17, 2015
1 parent 48131c2 commit 4bc1660
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions java/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
* set SWIG to the path to swig in make_wrap.bat
* set JAVA_DIR to the path to java in set-java-path.bat.
* Use the follogin commands:

```
> cd java
> make_wrap.bat
```
* bin/bn254_if_wrap.dll is a dll for java.

### Linux
Expand Down Expand Up @@ -84,6 +84,7 @@
* Return the reference to a where this = (a, b).
* Fp getB()
* Return the reference to b where this = (a, b).

#### Fp12
* pairing(Ec2 ec2, Ec1 ec1)
* Set opt_ate_pairing(ec2, ec1) to this.
Expand All @@ -100,7 +101,6 @@
* Set x to this.
* The format of Ec1 is "x_y" or "0" ; x, y are the format of Fp. "0" is the infinity point.
* The format of Ec2 is "x_y" or "0" ; x, y are the format of Fp2.

* Boolean isValid()
* Is (x:y:z) on the curve?
* Boolean isZero()
Expand All @@ -117,9 +117,10 @@
* Set (this - x) to this.
* mul(Mpz& x)
* Set (this * x) to this.
* Fp1 getX()
* Fp getX()
* Return the value of x.
* Fp1 getY()
* Fp getY()
* Return the value of y.
* Fp1 getZ()
* Fp getZ()
* Return the value of z.

0 comments on commit 4bc1660

Please sign in to comment.