@xo-cash/crypto
    Preparing search index...

    Function convertMnemonicToSeedBytes

    • Converts a BIP39 mnemonic to seed bytes. Recommended to use this to prepare the seed before creating a new instance of the Crypto class.

      Performs full BIP39 validation using the decodeBip39Mnemonic function before deriving the seed:

      • Enforces the minimum word count
      • Validates that all words are in the BIP39 word list
      • Validates the checksum for the mnemonic

      Parameters

      • mnemonic: string

        BIP39 mnemonic phrase (12+ words)

      • Optionalpassphrase: string

        BIP39 passphrase for the mnemonic, supported by the deriveSeedFromBip39Mnemonic function..

      Returns Uint8Array

      Seed bytes

      If mnemonic is not provided

      If mnemonic is invalid or seed derivation fails