Package org.dashj.bls

Class HDKeys


  • public class HDKeys
    extends Object
    • Field Detail

      • swigCMemOwn

        protected transient boolean swigCMemOwn
      • HASH_LEN

        public static final short HASH_LEN
    • Constructor Detail

      • HDKeys

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

        public HDKeys()
    • Method Detail

      • getCPtr

        protected static long getCPtr​(HDKeys obj)
      • finalize

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

        public void delete()
      • keyGen

        public static PrivateKey keyGen​(byte[] seed)
      • iKMToLamportSk

        public static void iKMToLamportSk​(byte[] outputLamportSk,
                                          byte[] ikm,
                                          long ikmLen,
                                          byte[] salt,
                                          long saltLen)
      • parentSkToLamportPK

        public static void parentSkToLamportPK​(byte[] outputLamportPk,
                                               PrivateKey parentSk,
                                               long index)
      • deriveChildSkUnhardened

        public static PrivateKey deriveChildSkUnhardened​(PrivateKey parentSk,
                                                         long index)
      • deriveChildG1Unhardened

        public static G1Element deriveChildG1Unhardened​(G1Element pk,
                                                        long index)
      • deriveChildG2Unhardened

        public static G2Element deriveChildG2Unhardened​(G2Element pk,
                                                        long index)