Caravan Documentation
    Preparing search index...

    Function bip32SequenceToPath

    • Convert a sequence of derivation indices into the corresponding BIP32 derivation path.

      Indices above the [hardening offset]* module:paths.HARDENING_OFFSET will be represented wiith hardened * path segments (using a trailing single-quote).

      Parameters

      • sequence: any

        the derivation indices

      Returns string

      BIP32 derivation path

      import {bip32SequenceToPath} from "@caravan/bitcoin";
      console.log(bip32SequenceToPath([2147483693, 1, 99])); // m/45'/1/99