Package org.dashj.bls

Class PrivateKey


  • public class PrivateKey
    extends Object
    • Field Detail

      • swigCMemOwn

        protected transient boolean swigCMemOwn
      • PRIVATE_KEY_SIZE

        public static final int PRIVATE_KEY_SIZE
    • Constructor Detail

      • PrivateKey

        protected PrivateKey​(long cPtr,
                             boolean cMemoryOwn)
      • PrivateKey

        public PrivateKey()
    • Method Detail

      • getCPtr

        protected static long getCPtr​(PrivateKey obj)
      • finalize

        protected void finalize()
        Overrides:
        finalize in class Object
      • delete

        public void delete()
      • fromSeedBIP32

        public static PrivateKey fromSeedBIP32​(byte[] seed)
      • randomPrivateKey

        public static PrivateKey randomPrivateKey()
      • fromBytes

        public static PrivateKey fromBytes​(byte[] bytes,
                                           boolean modOrder)
      • fromBytes

        public static PrivateKey fromBytes​(byte[] bytes)
      • getG1Element

        public G1Element getG1Element()
      • getG2Element

        public G2Element getG2Element()
      • isZero

        public boolean isZero()
      • serialize

        public void serialize​(byte[] buffer)
      • serialize

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

        public byte[] serialize()
      • signG2

        public G2Element signG2​(byte[] msg,
                                long len,
                                byte[] dst,
                                long dst_len,
                                boolean fLegacy)
      • signG2

        public G2Element signG2​(byte[] msg,
                                long len,
                                byte[] dst,
                                long dst_len)
      • hasKeyData

        public boolean hasKeyData()