Package org.dashj.bls

Class G2Element


  • public class G2Element
    extends Object
    • Field Detail

      • swigCMemOwn

        protected transient boolean swigCMemOwn
      • SIZE

        public static final int SIZE
    • 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)
      • finalize

        protected void finalize()
        Overrides:
        finalize in class Object
      • 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()
      • serialize

        public byte[] serialize​(boolean fLegacy)
      • serialize

        public byte[] serialize()