@bitcoinerlab/descriptors - v2.3.4
    Preparing search index...

    Function pkhBIP32

    • Computes the standard descriptor based on given parameters.

      You can define the output location either by:

      • Providing the full keyPath (e.g., "/0/2"). OR
      • Specifying the change and index values separately (e.g., {change:0, index:2}).

      For ranged indexing, the index can be set as a wildcard '*'. For example:

      • keyPath="/0/*" OR
      • {change:0, index:'*'}.

      Parameters

      • __namedParameters: {
            masterNode: BIP32Interface;
            network?: Network;
            account: number;
            change?: number;
            index?: number | "*";
            keyPath?: string;
            isPublic?: boolean;
        }
        • masterNode: BIP32Interface
        • Optionalnetwork?: Network
          networks.bitcoin
          
        • account: number
        • Optionalchange?: number
        • Optionalindex?: number | "*"
        • OptionalkeyPath?: string
        • OptionalisPublic?: boolean

          Compute an xpub or xprv

          true
          

      Returns string