| Modifier and Type | Method and Description |
|---|---|
Point |
add(Point other)
Add the two points together
|
Point |
copy()
Returns a hard copy of the point
|
byte[] |
data() |
boolean |
equals(Object other)
Checks the equality of two points
|
Point |
getZero()
Get the infinity (zero) point.
|
boolean |
isZero()
Returns true when the point is the zero value of the field
|
Point |
mul(Scalar s)
Multiply the point by the given scalar
|
Point |
negate()
Produces the negative version of the point
|
BN.GT |
pair(Bn256G2Point g2)
Perform the pairing operation on this point and G2.
|
byte[] |
toBytes()
Marshals the point
|
com.google.protobuf.ByteString |
toProto()
Returns the protobuf representation of the point that is the tag
for the first 8 bytes and then the point as byte array
|
String |
toString()
Stringify the point using the hexadecimal shape
|
public Point copy()
public boolean equals(Object other)
public com.google.protobuf.ByteString toProto()
public byte[] toBytes()
public boolean isZero()
public Point negate()
public String toString()
public Point getZero()
public BN.GT pair(Bn256G2Point g2)
g2 - is a point on G2.Copyright © 2019. All rights reserved.