Class HDUtils

  • public final class HDUtils
    extends java.lang.Object
    Static utilities used in BIP 32 Hierarchical Deterministic Wallets (HDW).
    • Constructor Detail

      • HDUtils

        public HDUtils()
    • Method Detail

      • hmacSha512

        public static byte[] hmacSha512​(byte[] key,
                                        byte[] data)
      • append

        public static HDPath append​(java.util.List<ChildNumber> path,
                                    ChildNumber childNumber)
        Use HDPath#extend
        Append a derivation level to an existing path
      • concat

        public static HDPath concat​(java.util.List<ChildNumber> path,
                                    java.util.List<ChildNumber> path2)
        Use HDPath#extend
        Concatenate two derivation paths
      • formatPath

        public static java.lang.String formatPath​(java.util.List<ChildNumber> path)
        Use HDPath#toString
        Convert to a string path, starting with "M/"
      • parsePath

        public static HDPath parsePath​(@Nonnull
                                       java.lang.String path)
        Use HDPath.parsePath
        Create an HDPath from a path string.