Function derivePubkeyFromXpub

  • Derives a public key from a given extended public key (xpub).

    Parameters

    • publicExtendedKey: string

      The extended public key (xpub).

    • network: NetworkEnum

      The network type.

    • change: number

      The change index.

    • addressIndex: number

      The address index.

    Returns HDKey

    The derived public key.