Function isValidBIP44Path

  • Validate a BIP-44 derivation path string to ensure it meets the required format. This function checks if the provided path adheres to the BIP-44 standard for Secp256k1. Parse and validate a path that is compliant to BIP-44 in form m/44'/637'/{account_index}'/{change_index}/{address_index} for Secp256k1

    Note that for Secp256k1, the last two components must be non-hardened.

    Parameters

    • path: string

      The path string to validate (e.g. m/44'/637'/0'/0/0).

    Returns boolean