@bitcoinerlab/descriptors - v3.0.5
    Preparing search index...

    Function registerLedgerWallet

    • Registers a policy based on a provided descriptor.

      This function will:

      1. Store the policy in ledgerState inside the ledgerManager.
      2. Avoid re-registering if the policy was previously registered.
      3. Skip registration if the policy is considered "standard".

      It's important to understand the nature of the Ledger Policy being registered:

      • While a descriptor might point to a specific output index of a particular change address, the corresponding Ledger Policy abstracts this and represents potential outputs for all addresses (both external and internal).
      • This means that the registered Ledger Policy is a generalized version of the descriptor, not assuming specific values for the keyPath.

      Parameters

      • __namedParameters: { descriptor: string; ledgerManager: LedgerManager; policyName: string }
        • descriptor: string
        • ledgerManager: LedgerManager
        • policyName: string

          The Name we want to assign to this specific policy

      Returns Promise<void>