Caravan Documentation
    Preparing search index...

    Function getRelativeBip32Sequence

    • A utility function to get the relative BIP32 sequence of a child key Given two paths, we want the path difference from the child.

      Parameters

      • parentPath: string

        The path of the parent key from which the child should be derived

      • childPath: string

        The full path of the child derived from the parent

      Returns number[]

      getRelativeBip32Sequence("m/45'/0'/0'", "m/45'/0'/0'/0/0")
      // returns [0, 0]