Caravan Documentation
    Preparing search index...

    Function getRandomChildXpub

    • Given a source xpub, derive a child xpub at a random path using secureSecretPath defaults to depth 4. Useful for creating blinded xpubs or generating random child xpubs (e.g. strands)

      Parameters

      • sourceOrigin: KeyOrigin

        {KeyOrigin}

      • depth: number = 4
      • network: Network = Network.MAINNET

        [Network] - if not provided will just default to the source xpub's network

      Returns KeyOrigin

      • Child xpub and path