Package org.dashj.bls
Class G1Element
- java.lang.Object
-
- org.dashj.bls.G1Element
-
public class G1Element 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 G1ElementfromBytes(byte[] bytes)static G1ElementfromBytes(byte[] bytes, boolean fLegacy)static G1ElementfromBytesUnchecked(byte[] bytes)static G1ElementfromBytesUnchecked(byte[] bytes, boolean fLegacy)static G1ElementfromMessage(byte[] message, byte[] dst, int dst_len)static G1Elementgenerator()protected static longgetCPtr(G1Element obj)longgetFingerprint()longgetFingerprint(boolean fLegacy)booleanisValid()G1Elementnegate()GTElementpair(G2Element b)byte[]serialize()byte[]serialize(boolean fLegacy)
-
-
-
Constructor Detail
-
G1Element
protected G1Element(long cPtr, boolean cMemoryOwn)
-
G1Element
public G1Element()
-
G1Element
public G1Element(G1Element other)
-
-
Method Detail
-
getCPtr
protected static long getCPtr(G1Element obj)
-
delete
public void delete()
-
fromBytes
public static G1Element fromBytes(byte[] bytes, boolean fLegacy)
-
fromBytes
public static G1Element fromBytes(byte[] bytes)
-
fromBytesUnchecked
public static G1Element fromBytesUnchecked(byte[] bytes, boolean fLegacy)
-
fromBytesUnchecked
public static G1Element fromBytesUnchecked(byte[] bytes)
-
fromMessage
public static G1Element fromMessage(byte[] message, byte[] dst, int dst_len)
-
generator
public static G1Element generator()
-
isValid
public boolean isValid()
-
checkValid
public void checkValid()
-
negate
public G1Element negate()
-
getFingerprint
public long getFingerprint(boolean fLegacy)
-
getFingerprint
public long getFingerprint()
-
serialize
public byte[] serialize(boolean fLegacy)
-
serialize
public byte[] serialize()
-
-