Package org.dashj.bls
Class G2Element
- java.lang.Object
-
- org.dashj.bls.G2Element
-
public class G2Element extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intSIZEprotected booleanswigCMemOwn
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckValid()voiddelete()protected voidfinalize()static G2ElementfromBytes(byte[] bytes)static G2ElementfromBytes(byte[] bytes, boolean fLegacy)static G2ElementfromBytesUnchecked(byte[] bytes)static G2ElementfromBytesUnchecked(byte[] bytes, boolean fLegacy)static G2ElementfromMessage(byte[] message, byte[] dst, int dst_len)static G2ElementfromMessage(byte[] message, byte[] dst, int dst_len, boolean fLegacy)static G2Elementgenerator()protected static longgetCPtr(G2Element obj)booleanisValid()G2Elementnegate()GTElementpair(G1Element a)byte[]serialize()byte[]serialize(boolean fLegacy)
-
-
-
Constructor Detail
-
G2Element
protected G2Element(long cPtr, boolean cMemoryOwn)
-
G2Element
public G2Element()
-
G2Element
public G2Element(G2Element other)
-
-
Method Detail
-
getCPtr
protected static long getCPtr(G2Element obj)
-
delete
public void delete()
-
fromBytes
public static G2Element fromBytes(byte[] bytes, boolean fLegacy)
-
fromBytes
public static G2Element fromBytes(byte[] bytes)
-
fromBytesUnchecked
public static G2Element fromBytesUnchecked(byte[] bytes, boolean fLegacy)
-
fromBytesUnchecked
public static G2Element fromBytesUnchecked(byte[] bytes)
-
fromMessage
public static G2Element fromMessage(byte[] message, byte[] dst, int dst_len, boolean fLegacy)
-
fromMessage
public static G2Element fromMessage(byte[] message, byte[] dst, int dst_len)
-
generator
public static G2Element generator()
-
isValid
public boolean isValid()
-
checkValid
public void checkValid()
-
negate
public G2Element negate()
-
serialize
public byte[] serialize(boolean fLegacy)
-
serialize
public byte[] serialize()
-
-